erc721SafeTransferFrom static method
Request data when send erc721 nft.
contractAddress
is nft contract address.
sender
is sender public address.
to
is receiver public address.
tokenId
is nft token id.
Implementation
static Future<String> erc721SafeTransferFrom(
String contractAddress, String sender, String to, String tokenId) async {
var list2 = [sender, to, tokenId];
var list1 = [contractAddress, "erc721_safeTransferFrom", list2];
const method = "particle_abi_encodeFunctionCall";
final params = list1;
return await EvmService.rpc(method, params);
}