Send a transaction from the transaction hex and collected signatures
POST/wallet/p2sh/tx-proposal/sign-and-push
Send a transaction from the transaction hex and collected signatures
Request
Header Parameters
x-wallet-id stringrequired
Defines the key of the wallet on which the request will be executed.
- application/json
Body
required
Transaction hex and signatures
txHex stringrequired
Transaction hex representation.
signatures array
Signatures collected for the transaction.
Responses
- 200
Get tx sent from transaction hex and signatures.
- application/json
- Schema
- success
- no-wallet-id
- invalid-wallet-id
Schema
any
Success
{
"success": true,
"hash": "00000000059dfb65633acacc402c881b128cc7f5c04b6cea537ea2136f1b97fb",
"nonce": 2455281664,
"timestamp": 1594955941,
"version": 1,
"weight": 18.11897634891149,
"parents": [
"00000000556bbfee6d37cc099a17747b06f48ca3d9bf4af85c707aa95ad04b3f",
"00000000e2e3e304e364edebff1c04c95cc9ef282463295f6e417b85fec361dd"
],
"inputs": [
{
"tx_id": "00000000caaa37ab729805b91af2de8174e3ef24410f4effc4ffda3b610eae65",
"index": 1,
"data": "RjBEAiAYR8jc+zqY596QyMp+K3Eag3kQB5aXdfYja19Fa17u0wIgCdhBQpjlBiAawP/9WRAqAzW85CJlBpzq+YVhUALg8IUhAueFQuEkAo+s2m7nj/hnh0nyphcUuxa2LoRBjOsEOHRQ"
},
{
"tx_id": "00000000caaa37ab729805b91af2de8174e3ef24410f4effc4ffda3b610eae65",
"index": 2,
"data": "RzBFAiEAofVXnCKNCEu4GRk7j+wHpQM6qmezRcfxHCe/PcUdbegCIE2nip27ZQtkpkEgNEhycqHM4CkLYMLVUgskphYsd/M9IQLHG6YJxXifQ6eMxPHbINFEJAUvrzKWe9V7AXXW4iywjg=="
}
],
"outputs": [
{
"value": 100,
"token_data": 0,
"script": "dqkUqdK8VisGSJuNItIBRYFfSHfHjPeIrA=="
},
{
"value": 200,
"token_data": 0,
"script": "dqkUISAnpOn9Vo269QBvOfBeWJTLx82IrA=="
}
],
"tokens": []
}
No wallet id parameter
{
"success": false,
"message": "Parameter 'wallet-id' is required."
}
Wallet id parameter is invalid
{
"success": false,
"message": "Invalid wallet-id parameter."
}
Loading...