PUT: Transfer Token
Transfers a token owned by the contract to the address.
The id returned in the response can be used to check the status of the transfer (see Transfer Status)
https://api.hypermint.com/v1/nft-contract/:contractId/transfer
Transfer Tokens
Initiates a token transfer from tokens owned by a contract
Parameters
Header
Parameter | Description |
---|---|
HM_ACCESS_KEY | HyperMint Access Key |
HM_ACCESS_KEY_SECRET | HyperMint Access Key Secret |
Body
Parameter | Type | Required | Description |
---|---|---|---|
address | string | Y | valid wallet address that the transfer should be initiated to |
tokenId | number | Y | The Id of the token you wish to transfer |
amount | number | N | The amount of token you would wish to transfer (ERC1155 only) |
Response
Code | Meaning |
---|---|
🟢 200: OK | Responds with an interaction ID which can be used to check the status of the transaction |
🟠 404: Not Found | The token does not exist |
🟠 404: Not Found | Contract does not exist or you do not have permission |
🟠 400: Bad Request | The contract has been disabled by an administrator |
🟠 400: Bad Request | The contract has not been deployed |
🟠 400: Bad Request | The wallet address provided is not valid |
🟠 400: Bad Request | Insufficient token balance |
interface TransferResponse {
id: string;
}
Feedback
Something not quite right, unclear or can't find what you are looking for? Please let us know at support.moonpay.com and we will get back to you as soon as we can.
Updated 8 months ago