🔒 Transfer API

Transfer NFTs from one custodial wallet into another 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.com/api/v1-alpha1/transfer`, {
    method: 'post',
    body: JSON.stringify(body),
    headers: {
      'X-CLIENT-SECRET': '<YOUR_CLIENT_SECRET>',
      'X-PROJECT-ID': '<YOUR_PROJECT_ID>'
    }
});

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