← BSV MCPInstall
Wallet

app_sweep_complete

App-only: verify browser signatures and submit the exact previously prepared sweep once.

Read as Markdown

Result

An MCP result containing the operation outcome as text, with structured content where supplied. Check isError before using it; an output schema is shown when registered.

Permissions

This operation can change wallet, account or service state. A connected wallet applies its own permissions. Guarded broadcasts also require broadcasting to be enabled; service authorization is separate from wallet approval.

Inputs and availability

Full catalog · Local Vault · all roles; Local Vault · payment role only; External BRC-100 wallet; Local Vault + sponsor

FieldType / requiredDescription
referencestring
Required
See schema for details.

pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"; format: "uuid"

spendsobject
Required
See schema for details.

Nested fields are required only when their parent object or array item is supplied.

Full input schema
{
  "type": "object",
  "properties": {
    "reference": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "spends": {
      "type": "object",
      "propertyNames": {
        "type": "string",
        "pattern": "^(0|[1-9][0-9]*)$"
      },
      "additionalProperties": {
        "type": "object",
        "properties": {
          "unlockingScript": {
            "type": "string",
            "pattern": "^(?:[0-9a-f]{2}){1,108}$"
          }
        },
        "required": [
          "unlockingScript"
        ]
      }
    }
  },
  "required": [
    "reference",
    "spends"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}