Withdraw
Withdraw
- Endpoint: /withdraw
- Description: Used to withdraw ERC20/ERC721
- Method:
POST
- Params:
Name | Type | Require? | Description |
---|---|---|---|
tx | object | [x] | Raw transaction |
tx .nonce | number | [x] | Nonce of transaction |
tx .to | address | [x] | Address of receiver |
tx .asset | address | [x] | Address of asset |
tx .amountOrTokenId | string | [x] | Amount (with decimals) or tokenId |
tx .memo | string | [x] | Memo of transaction |
tx .withdrawFee | string | [x] | Fee pay for MiraiBank |
tx .feeAsset | address | [x] | Asset to pay fee |
signature | string | [x] | Signature of amountOrTokenId=&asset=&feeAsset=&memo=&nonce=&to=&withdrawFee= |
- Return Values:
JSON object
Name | Type | Description |
---|---|---|
status | bool | Status of request |
tx | object | Transaction |
tx .nonce | number | Nonce of transaction |
tx .txid | string | TXID |
tx .to | address | Addres of receiver |
tx .asset | address | Address of asset |
tx .amountOrTokenId | string | Amount (with decimals) or tokenId |
tx .memo | string | Memo of transaction |
tx .withdrawFee | string | Amount of fee |
tx .feeAsset | address | Asset of fee |
tx .type | WITHDRAW | Type of transaction |
miraibank | object | Action from MiraiBank |
miraibank .willProcess | bool | MiraiBank will process or not |
miraibank .signature | string | (willProcess == false ) Signature from MiraiBank |
miraibank .expiredIn | number | (willProcess == false ) Expired time |