Executes a transaction template.
POST/wallet/tx-template/build
Executes a transaction template.
Request
Query Parameters
debug boolean
Turn debug on. Optional parameter to log more data when the template is built.
sign boolean
If we should sign and prepare the transaction to be sent.
Header Parameters
x-wallet-id stringrequired
Defines the key of the wallet on which the request will be executed.
- application/json
Body
array
required
A transaction template in JSON format.
Array [
]
Responses
- 200
Success confirmation or handled error
- application/json
- Schema
- success
- wallet-not-ready
- invalid-instruction
- invalid-argument
- no-wallet-id
- invalid-wallet-id
Schema
any
Success
{
"success": true,
"txHex": "00020101000006e698232a0b3929aaf3ea269f3985c408d2ec3a012b8a6ab30c6a8df6bc0100000000006401001976a914dee13cb4a58c5ae606ee79380d140bf786bab51388ac010c417069446f6373546f6b656e05417069544b0000000000000000000000000000000000"
}
Wallet is not ready yet
{
"success": false,
"message": "Wallet is not ready.",
"state": 1
}
Using an instruction that does not exist
{
"success": false,
"details": [
"0.type is Invalid discriminator value. Expected 'input/raw' | 'input/utxo' | 'input/authority' | 'output/raw' | 'output/data' | 'output/token' | 'output/authority' | 'action/shuffle' | 'action/change' | 'action/complete' | 'action/config' | 'action/setvar'"
]
}
Invalid argument in instruction
{
"success": false,
"details": [
"0.name is Required"
]
}
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...