sdk.erc721base.approve
Home > @openformat/sdk > ERC721Base > approve
ERC721Base.approve() method
Grants approval to another address to transfer ownership of an ERC721 token. approve
Signature:
approve(params: ERC721ApproveParams): Promise<ContractReceipt>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| params | ERC721ApproveParams |
Returns:
Promise<ContractReceipt>
{Promise<ContractReceipt>} - The transaction receipt for the approval operation.
Exceptions
{Error} - Throws an error if the approval operation fails.