Created
February 9, 2024 20:11
-
-
Save dmulvi/e71ea032955583858ff99ab1e1b28d8d to your computer and use it in GitHub Desktop.
Transfer an NFT from a Crossmint custodial wallet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const options = { | |
method: "POST", | |
headers: { | |
"X-API-KEY": "YOUR_API_KEY", | |
"Content-Type": "application/json", | |
}, | |
body: JSON.stringify({ | |
chain: "polygon", | |
contractAddress: "0x_CONTRACT_ADDRESS", | |
from: "0x_FROM_ADDRESS", | |
to: "0x_TO_ADDRESS", | |
tokenId: "123", | |
}), | |
}; | |
fetch("https://staging.crossmint.com/api/v1-alpha1/wallets/transfer", options) | |
.then((response) => response.json()) | |
.then((response) => console.log(response)) | |
.catch((err) => console.error(err)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment