BSV blockchainBSV blockchain

listOutputs

POST/listOutputs

Lists the spendable outputs kept within a specific basket

Body application/json

basketstring
tagsstring[]
tagQueryMode"all" | "any"
include"locking scripts" | "entire transactions"
includeCustomInstructionsboolean
includeTagsboolean
includeLabelsboolean
limitnumber
offsetnumber
seekPermissionboolean

Response

The list of outputs

totalOutputsnumber
BEEFnumber[]
outputsobject[]
Show outputs properties
satoshisnumber
lockingScriptstring
spendableboolean
customInstructionsstring
tagsstring[]
outpointstring
labelsstring[]

Invalid input

Internal server error

Request
curl -X POST "http://localhost:3321/listOutputs" \
  -H "Content-Type: application/json" \
  -d '{
  "basket": "string",
  "tags": [
    "string"
  ],
  "tagQueryMode": "all",
  "include": "locking scripts",
  "includeCustomInstructions": true,
  "includeTags": true,
  "includeLabels": true,
  "limit": 0,
  "offset": 0,
  "seekPermission": true
}'
Response
{
  "totalOutputs": 0,
  "BEEF": [
    0
  ],
  "outputs": [
    {
      "satoshis": 0,
      "lockingScript": "string",
      "spendable": true,
      "customInstructions": "string",
      "tags": [
        "string"
      ],
      "outpoint": "string",
      "labels": [
        "string"
      ]
    }
  ]
}