🔒 Transfer API

Transfer NFTs from Crossmint's custodial wallet into another wallet with Crossmint's Whitelabel API

📘

White Label / Enterprise Access Required

Crossmint Whitelabel is offered as an enterprise solution and requires evaluation of your use case before approval. Reach out to reach out to sales to get started.

import fetch from 'node-fetch';

const body = {
  "chain": "ethereum|polygon|solana", // specify one of three
  "tokenId": "string",
  "fromAddress": "<CURRENT_WALLET_ADDRESS>",
  "toAddress": "<NEW_WALLET_ADDRESS>",
  "tokenMintAddress": "<CONTRACT_ADDRESS>"
}

const response = await fetch(`https://www.crossmint.io/api/v1-alpha1/transfer`, {
    method: 'post',
    body: JSON.stringify(body),
    headers: {
      'X-API-KEY': '<YOUR_API_KEY>',
      'X-CLIENT-ID': '<YOUR_CLIENT_ID>'
    }
});

const data = await response.json();
const contractAddress = data.address;
curl 'https://www.crossmint.io/api/v1-alpha1/transfer' \
  -X 'POST' \
  -H 'X-API-KEY: <YOUR_API_KEY>' \
  -H 'X-CLIENT-ID: <YOUR_CLIENT_ID>' \
  -d '{
    "chain": "ethereum",
    "tokenId": "string",
    "fromAddress": "string",
    "toAddress": "string",
    "tokenMintAddress": "string"
  }'