v1

latestOpenAPI 3.1.02026-07-17283353.4 KB
HTTPWalletJSON

Lists all transactions matching the specified labels

post/listActions

Request body

labelsstring[]
labelQueryMode'any' | 'all'
includeLabelsboolean
includeInputsboolean
includeInputSourceLockingScriptsboolean
includeInputUnlockingScriptsboolean
includeOutputsboolean
includeOutputLockingScriptsboolean
limitnumber
offsetnumber
seekPermissionboolean

Example request

{
  "labels": [
    "todo create"
  ],
  "limit": 10
}

Response

The list of actions

totalActionsnumber

Example response

{
  "totalActions": 1,
  "actions": [
    {
      "txid": "ab69c16801e6ea2bb78bde521c6e3654f7e665d0900e4236b5945e47a1482d3c",
      "satoshis": 1,
      "description": "The creation of a token which captures an item of a todo list.",
      "labels": [
        "todo create"
      ],
      "version": 1,
      "inputs": [
        {
          "sourceOutpoint": "50e7365af507f6c862b6ca77cef2571ae63544bcd8e19c3c2abc44b20d0aeb6c.3",
          "sourceSatoshis": 4000,
          "sourceLockingScript": "76a9144f427ee5f3099f0ac571f6b723a628e7b08fb64c88ac",
          "unlockingScript": "47304402200aa56a892e310a7575035fb3c0bcf4...",
          "inputDescription": "spending of a token of some sort",
          "sequenceNumber": 4294967295
        }
      ],
      "outputs": [
        {
          "satoshis": 1000,
          "lockingScript": "76a914dd8b1abde0304820ace0adf1478a3ef2291a833788ac",
          "customInstructions": "invoice5678,keyId2,02ffc4f361307f34a82069edbcbe2c9f4bd5498165549f42bdeb698ffdcab1ea38",
          "tags": [
            "todo create",
            "productivity"
          ],
          "outputDescription": "a special token of some description",
          "basket": "todo token"
        }
      ]
    }
  ]
}