walletERC1155Transfer
POST/api/v1/recipes/wallets/transfer-erc1155/
Transfer ERC1155 between two wallets
Request
- application/json
Body
required
The wallet contractId
The address of the ERC1155 contract.
The tokenId of the ERC1155 at the contract.
The address of the receiver.
The amount of ERC1155 to transfer.
Responses
- 201
- 400
- 404
- 503
Default Response
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [false
]
Possible values: [201
]
data objectrequired
Possible values: [TO_BE_SENT
, FAILED_TO_SEND
, SENT
, CONFIRMED
, FAILED
]
{
"error": false,
"statusCode": 201,
"data": {
"id": "string",
"hash": "string",
"from": "string",
"to": "string",
"value": "string",
"blockchainId": 0,
"vaultId": "string",
"contractId": "string",
"status": "TO_BE_SENT"
}
}
Default Response
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [true
]
Possible values: [400
]
Possible values: [errors.recipe.invalidAmount
, errors.recipe.invalidTokenId
, errors.contract.invalidArgs
, errors.contract.invalidValue
, errors.insufficientFunds
, errors.failedToEstimateTransaction
]
{
"error": true,
"statusCode": 400,
"code": "errors.recipe.invalidAmount",
"data": {}
}
Default Response
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [true
]
Possible values: [404
]
Possible values: [errors.recipe.invalidWalletContractId
, errors.contract.notFound
, errors.contract.notDeployed
, errors.vault.notFound
, errors.contract.functionNotFound
]
{
"error": true,
"statusCode": 404,
"code": "errors.recipe.invalidWalletContractId",
"data": {}
}
Default Response
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [true
]
Possible values: [503
]
Possible values: [errors.contract.failedToSend
]
{
"error": true,
"statusCode": 503,
"code": "errors.contract.failedToSend",
"data": {}
}