nftTransfer method

Future nftTransfer(
  1. Web3 web3,
  2. String nftTransferContractAddress,
  3. String walletAddress,
  4. String contractAddress,
  5. String receiverAddress,
  6. num tokenId, {
  7. String network = 'fuse',
  8. Map? transactionBody,
})

Implementation

Future<dynamic> nftTransfer(
  Web3 web3,
  String nftTransferContractAddress,
  String walletAddress,
  String contractAddress,
  String receiverAddress,
  num tokenId, {
  String network = 'fuse',
  Map? transactionBody,
}) async {
  Map<String, dynamic> data = await web3.transferNFTOffChain(
    nftTransferContractAddress,
    walletAddress,
    contractAddress,
    receiverAddress,
    tokenId,
    network: network,
    transactionBody: transactionBody,
  );
  Response response = await _dio.post(
    '/v1/relay',
    options: options,
    data: data,
  );
  return response.data;
}