Skip to main content

Withdraw

Withdraw

  • Endpoint: /withdraw
  • Description: Used to withdraw ERC20/ERC721
  • Method: POST
  • Params:
NameTypeRequire?Description
txobject[x]Raw transaction
tx.noncenumber[x]Nonce of transaction
tx.toaddress[x]Address of receiver
tx.assetaddress[x]Address of asset
tx.amountOrTokenIdstring[x]Amount (with decimals) or tokenId
tx.memostring[x]Memo of transaction
tx.withdrawFeestring[x]Fee pay for MiraiBank
tx.feeAssetaddress[x]Asset to pay fee
signaturestring[x]Signature of amountOrTokenId=&asset=&feeAsset=&memo=&nonce=&to=&withdrawFee=
  • Return Values: JSON object
NameTypeDescription
statusboolStatus of request
txobjectTransaction
tx.noncenumberNonce of transaction
tx.txidstringTXID
tx.toaddressAddres of receiver
tx.assetaddressAddress of asset
tx.amountOrTokenIdstringAmount (with decimals) or tokenId
tx.memostringMemo of transaction
tx.withdrawFeestringAmount of fee
tx.feeAssetaddressAsset of fee
tx.typeWITHDRAWType of transaction
miraibankobjectAction from MiraiBank
miraibank.willProcessboolMiraiBank will process or not
miraibank.signaturestring(willProcess == false) Signature from MiraiBank
miraibank.expiredInnumber(willProcess == false) Expired time