v1

latestOpenAPI 3.1.02026-07-17283353.4 KB
HTTPWalletJSON

Signs a transaction previously created using `createAction`

post/signAction

Request body

spendsobject
referencestring

Example request

{
  "spends": {
    "0": {
      "unlockingScript": "47304402206ba4a1c0aa4e1ba7f2cd79de36...",
      "sequenceNumber": 4294967295
    },
    "1": {
      "unlockingScript": "473044022031d6c05d21ea4ee96da0fa17ea...",
      "sequenceNumber": 4294967295
    }
  },
  "reference": "C1HST7xvPKzh66npoiJ5fKwnLtnH3xxQ4ylxaGBTTOA=",
  "options": {
    "sendWith": [
      "c2d37dd0575766e4deedf7ba072ad35b87e9223af01d2829a81960ba7164f606"
    ]
  }
}

Response

The signed transaction result

txidstring
txnumber[]

Example response

{
  "txid": "cd8345f101b2c6163921d9ff08526d88aa24cb68456f546eec935c6485155838",
  "tx": [
    1,
    1,
    1,
    1
  ],
  "sendWithResults": [
    {
      "txid": "a0084f73e13afdcc284cc810b4d22af004a38dcf404d8ddbe43ac9fb1a77a4be"
    }
  ]
}