Okto Embedded WalletUsing Embedded Wallet

Transferring Non-Fungible Tokens

Learn how to transfer NFTs using the Okto SDK.

Methods Overview

MethodsDescription
async transferNftTransfer NFTs based on the provided data
async transferNftWithJobStatusTransfer NFTs and provides job status updates based on the provided data
async getNftOrderDetailsFetches details of a specific NFT order based on the provided query

Transfer NFTs

async transferNft(data) transfers a NFT based on the provided data.

Parameters

ParameterTypeDescription
dataTransferNftData being provided for transferring the NFT
interface TransferNft {
  operation_type: string;
  network_name: string;
  collection_address: string;
  collection_name: string;
  quantity: string;
  recipient_address: string;
  nft_address: string;
}

Response

Success Response

Field NameTypeDescription
resultPromise<TransferNftData>Returns information about the NFT transferred

Transfer NFTs with job status

async transferNftWithJobStatus(data) transfers NFTs with job status updates based on the provided data.

Parameters

ParameterTypeDescription
dataTransferNftData being provided for transferring the tokens

Response

Success Response

Field NameTypeDescription
resultPromise<NftOrderDetails>Returns information about the order

Get NFT order details

async getNftOrderDetails(query) fetches details of a specific NFT order based on the provided query.

Parameters

ParameterTypeDescription
queryPartial<NftOrderDetailsQuery>Query provided for fetching the NFT order details
interface NftOrderDetailsQuery {
  page: number;
  size: number;
  order_id: string;
}

Response

Success Response

Field NameTypeDescription
resultPromise<NftOrderDetails>Returns information about the order

On this page