NFT
JavaScript NFT Functions
Buy with fiat
Description
Returns a url of a widget where the user can buy a Token NFT a credit / debit card see the NFT Checkout integration guidelines for more details about this feature.
Parameters
Name | Type | Required | Description |
---|---|---|---|
nftID | String | ✔️ | The ID of the NFT, the widget will collect the data to present the NFT from the backend |
data | Record<any, any> | Extra data that diffuses to the backend | |
toWalletAddress | String | The wallet address that the NFT will be send to, If the wallet was created by tweed the wallet address will be populated automatically. |
Return type
Example of usage
Get balance
Description
Returns a list of NFTs owned by the user's wallet for multiple blockchains
Parameters
Name | Type | Required | Default | Description |
---|---|---|---|---|
blockchainIds | String[] | defaultBlockchainIds | Blockchain ids |
Return type
Usage Example
Response Example
Get transactions
Description
Returns a list of NFT transactions for multiple blockchains
Parameters
Name | Type | Required | Default | Description |
---|---|---|---|---|
blockchainIds | String[] | defaultBlockchainIds | Blockchain ids |
Return type
Usage Example
Response Example
Send to user
Description
Sends the NFT to another user on the platform by its user ID. The user will get a Sign Transaction widget to approve the transaction.
Parameters
Name | Type | Required | Default | Description |
---|---|---|---|---|
blockchainId | String | ✔️ | Blockchain | |
tokenAddress | String | ✔️ | NFT contract address | |
tokenId | String | ✔️ | NFT token id | |
userId | String | ✔️ | Id of user to send crypto to |
Return type
Usage Example
Send to wallet
Description
Send the NFT to another wallet by its wallet address. The user will get a Sign Transaction widget to approve the transaction.
Parameters
Name | Type | Required | Default | Description |
---|---|---|---|---|
blockchainId | String | ✔️ | Blockchain | |
tokenAddress | String | ✔️ | NFT contract address | |
tokenId | String | ✔️ | NFT token id | |
walletAddress | String | ✔️ | Address of wallet to send NFT to |
Return type
Usage Example
Last updated