latestOpenAPI 3.0.32026-08-224982,0272.8 MB
e445c15e5bee
Wallet
Initiate a transaction
Initiate an unsigned transaction to create a pending approval. This is useful to request funds to be sent from custodial wallets. Use only with custodial wallets.
post/api/v2/{coin}/wallet/{walletId}/tx/initiate
Path parameters
coinstring required
A cryptocurrency symbol or token ticker symbol
Example:btc
A cryptocurrency or token ticker symbol
walletIdstring required
Example:59cd72485007a239fb00282ed480da1f
The wallet ID
Request body
Example request
{
"messages": [
{
"message": "BIP322 test message."
}
],
"feeRate": 10000,
"maxFeeRate": 20000,
"nonce": "2000000",
"unspents": [
"12b147dd8b4f73c01f72bdbf5b589eea614f3de609ffdbdac84852d6505cf8a3:1"
],
"changeAddress": "2MvrwRYBAuRtPTiZ5MyKg42Ke55W3fZJfZS",
"txFormat": "psbt",
"addressType": "p2sh",
"changeAddressType": "p2sh",
"startTime": "1714067129.1020603",
"consolidateId": "59cd72485007a239fb00282ed480da1f",
"trustlines": [
{
"limit": "2000000",
"token": "txlm:BST-GBQTIOS3XGHB7LVYGBKQVJGCZ3R4JL5E4CBSWJ5ALIJUHBKS6263644L"
}
],
"stakingOptions": {
"validator": "2MvrwRYBAuRtPTiZ5MyKg42Ke55W3fZJfZS"
},
"unstakingOptions": {
"unstakeCpuQuantity": "100 EOS",
"unstakeNetQuantity": "100 EOS"
},
"recipients": [
{
"address": "2MvrwRYBAuRtPTiZ5MyKg42Ke55W3fZJfZS"
}
],
"videoApprovers": [
"59cd72485007a239fb00282ed480da1f"
]
}Response
Accepted