v1
latestOpenAPI 3.1.02026-07-17283353.4 KBHTTPWalletJSON
Creates a new Bitcoin transaction
post/createAction
Request body
Example request
{
"description": "human readable purpose of this action",
"inputBEEF": [
1,
1,
1,
1
],
"inputs": [
{
"outpoint": "ef01fee61a0d00090280027a0ec9df2e605fa46a903dfa1bd249b96aa3001490.0",
"inputDescription": "why this token is being spent",
"unlockingScript": "47304402200aa56a892e310a7575035fb3c0bcf466bbc16e97dae197cc1d40412313f94b89022011944d2b1b0fa72dbe7893c400624a0652a6efcc40d459216c0e00d5d135f7fc412103820b289317fa9ba995ca05bc084a77ae6077dbb424206424d92b51653521bb90",
"unlockingScriptLength": 106,
"sequenceNumber": 4294967295
}
],
"outputs": [
{
"lockingScript": "76a914978bf440c1ae52331b2e95b641c0041debaa87ce88ac",
"satoshis": 1234,
"outputDescription": "why this token is being created",
"basket": "todo token",
"customInstructions": "invoice1234,keyId1,03820b289317fa9ba995ca05bc084a77ae6077dbb424206424d92b51653521bb90",
"tags": [
"todo",
"productivity"
]
}
],
"version": 1,
"labels": [
"todo create"
],
"options": {
"noSendChange": [
"11df9f39662e276dc2f637f063919ce3ca86cbc2d55ee8d661408d22b1f49018.0"
],
"sendWith": [
"c2d37dd0575766e4deedf7ba072ad35b87e9223af01d2829a81960ba7164f606"
]
}
}Response
The created transaction result
Example response
{
"txid": "16bed6368b8b1542cd6eb87f5bc20dc830b41a2258dde40438a75fa701d24e9a",
"tx": [
1,
1,
1,
1
],
"noSendChange": [
"11df9f39662e276dc2f637f063919ce3ca86cbc2d55ee8d661408d22b1f49018.0"
],
"sendWithResults": [
{
"txid": "a0084f73e13afdcc284cc810b4d22af004a38dcf404d8ddbe43ac9fb1a77a4be"
}
],
"signableTransaction": {
"tx": [
1,
1,
1,
1
],
"reference": "C1HST7xvPKzh66npoiJ5fKwnLtnH3xxQ4ylxaGBTTOA="
}
}