Wallet
Build a transaction
Changed onBuild a transaction from the wallet using provided options. Use only with multisignature wallets. For MPC wallets, use Create transaction request. If you want to build, sign, and send all in one call, use Send transaction.
post/api/v2/{coin}/wallet/{walletId}/tx/build
Request
- Base URLhttps://developers.bitgo.com
- URLhttps://developers.bitgo.com/api/v2/{coin}/wallet/{walletId}/tx/build
- Authnone declared
Path parameters
coinstring required
A cryptocurrency or token ticker symbol.
Example:btc
walletIdstring required
Example:59cd72485007a239fb00282ed480da1f
The wallet ID.
Query parameters
destinationTagstring
Required when sending to a BitGo wallet.
Request body
Example request
{
"messages": [
{
"message": "BIP322 test message."
}
],
"feeRate": 10000,
"maxFeeRate": 20000,
"feeMultiplier": 1.5,
"gasPrice": "2000000",
"eip1559": {
"maxPriorityFeePerGas": "2000000",
"maxFeePerGas": "2000000"
},
"gasLimit": "2000000",
"minValue": "2000000",
"maxValue": "2000000",
"nonce": "2000000",
"unspents": [
"12b147dd8b4f73c01f72bdbf5b589eea614f3de609ffdbdac84852d6505cf8a3:1"
],
"changeAddress": "2MvrwRYBAuRtPTiZ5MyKg42Ke55W3fZJfZS",
"txFormat": "psbt",
"unifiedRecipientPreference": "shielded",
"changeAddressType": "p2sh",
"consolidateId": "59cd72485007a239fb00282ed480da1f",
"trustlines": [
{
"token": "txlm:BST-GBQTIOS3XGHB7LVYGBKQVJGCZ3R4JL5E4CBSWJ5ALIJUHBKS6263644L",
"limit": "2000000"
}
],
"stakingOptions": {
"amount": "2000000",
"validator": "2MvrwRYBAuRtPTiZ5MyKg42Ke55W3fZJfZS"
},
"recipients": [
{
"amount": "2000000",
"address": "2MvrwRYBAuRtPTiZ5MyKg42Ke55W3fZJfZS"
}
]
}Response
OK
Changes
- info
added the new optional request property
///// - info
added the new optional request property
/////
- info
- info
added the new optional request property
///// - info
added the new optional request property
/////
- info