approveNFTToken method
Future<ISendUserOperationResponse>
approveNFTToken(
- EthereumAddress nftContractAddress,
- EthereumAddress spender,
- BigInt tokenId, [
- TxOptions? options,
Approves a spender
to transfer or withdraw a specific NFT tokenId
on behalf of the user.
nftContractAddress
- Address of the token contract.
spender
- Address which will spend the tokens.
tokenId
- NFT token ID of item in the collection to approve.
options
- Additional transaction options.
Implementation
Future<ISendUserOperationResponse> approveNFTToken(
EthereumAddress nftContractAddress,
EthereumAddress spender,
BigInt tokenId, [
TxOptions? options,
]) {
return _executeTokenOperation(
nftContractAddress,
spender,
tokenId,
ContractsUtils.encodeERC721ApproveCall,
options,
);
}