This guide will walk you through the process of transferring NFTs from your wallet using the Crossmint transactions API.

Prerequisites

Check out our Quickstart for Ethereum or Solana to prepare the following:

  • API Key: Your Crossmint API key with the scope wallets:transactions.create.
  • Wallet Locator: The locator of the wallet you want to transfer the NFT from.
  • NFT Details: The contract address and token ID of the NFT you want to transfer.

Sending the Transaction

We will use the Create Transaction API.

First, we need to prepare the transaction data that will encode the transferFrom function call for the NFT contract:

Now we can create the transaction using the encoded data: