Send Transactions
Overview
For advanced transaction flows, once a transaction receives all the required signatures from wallet co-signers it becomes a half-signed transaction. To obtain the second half of the signature, you must send the half-signed transaction to BitGo, so BitGo can sign using the BitGo key.
Prerequisites
Note: If your access token doesn't have a spending limit, it will lock on a regular basis, preventing you from sending a transaction. If your access token is locked, Unlock Session to proceed.
Steps
1 2 3 4 5 6 7 8 9
let params = { txHex: '010000000179b0b5ad6641de8fed13270395e52515236c922d1dd5bee3a9dae68c3cbbf57d0100000000ffffffff0240420f000000000017a914f600974688ccdf5e72ce3f2b187afabbf4f1d3ec878e7835000000000017a9140c0a513cb9d8e46113c57aa46ae42d1bad29063d8700000000', otp: '0000000', }; wallet.submitTransaction(params).then(function (transaction) { // print transaction status console.dir(transaction); });
Note: Half-signed transaction endpoints can be used to send Fiat between trading wallets. The recipient address must be whitelisted to send from trading wallets.
Step Result
BitGo uses the BitGo key to sign the half-signed transaction in a hardware security module (HSM), creating a fully-signed transaction. Using a BitGo node, Bitgo broadcasts the transaction to the network for confirmation.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
{ "transfer": { "coin": "tbtc", "id": "59cd72485007a239fb00282ed480da1f", "wallet": "2NBYMZ9QYufZZTmgXbXKJ8Mh5oMNEpNHVm6", "enterprise": "62c5ae8174ac860007aff138a2d74df7", "txid": "b8a828b98dbf32d9fd1875cbace9640ceb8c82626716b4a64203fdc79bb46d26", "height": 0, "heightId": "string", "date": "2019-08-24T14:15:22Z", "type": "send", "value": 0, "valueString": "string", "baseValue": 0, "baseValueString": "string", "feeString": "string", "payGoFee": 0, "payGoFeeString": "string", "usd": 0, "usdRate": 0, "state": "confirmed", "tags": [ "59cd72485007a239fb00282ed480da1f" ], "history": [ { "date": "2019-08-24T14:15:22Z", "user": "59cd72485007a239fb00282ed480da1f", "action": "created", "comment": "string" } ], "comment": "string", "vSize": 0, "nSegwitInputs": 0, "coinSpecific": {}, "sequenceId": "string", "entries": [ { "address": "2NAUwNgXaoFj2VVnSEvNLGuez8CfdU2UCMZ", "wallet": "string", "value": 0, "valueString": "string", "isChange": true, "isPayGo": true, "token": "omg" } ], "usersNotified": true }, "txid": "string", "tx": "string", "status": "confirmed" }
Next Steps
Await for transaction confirmation on the blockchain.