The spaces daemon implements JSON-RPC 2.0. Send POST requests to http://127.0.0.1:7225 (mainnet default).

getserverinfo

Get server status including network, sync progress, and chain tip.

ParameterTypeRequiredDescription
(none)This method takes no parameters.
{
  "jsonrpc": "2.0",
  "method": "getserverinfo",
  "params": [],
  "id": 1
}

getspace

Get full space output by space name or hash. Returns Option<FullSpaceOut>.

ParameterTypeRequiredDescription
space_or_hashstringYesA space name (e.g. "@example") or hex hash.
{
  "jsonrpc": "2.0",
  "method": "getspace",
  "params": ["@example"],
  "id": 1
}

getspaceowner

Get the outpoint that owns a space. Returns Option<OutPoint>.

ParameterTypeRequiredDescription
space_or_hashstringYesA space name (e.g. "@example") or hex hash.
{
  "jsonrpc": "2.0",
  "method": "getspaceowner",
  "params": ["@example"],
  "id": 1
}

getspaceout

Get a space output by outpoint. Returns Option<SpaceOut>.

ParameterTypeRequiredDescription
outpointstringYesAn outpoint in txid:vout format.
{
  "jsonrpc": "2.0",
  "method": "getspaceout",
  "params": ["a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2:0"],
  "id": 1
}

getnum

Get full num output by numeric id or num id. Returns Option<FullNumOut>.

ParameterTypeRequiredDescription
subjectstringYesA numeric id (e.g. "#1-2-3").
{
  "jsonrpc": "2.0",
  "method": "getnum",
  "params": ["#1-2-3"],
  "id": 1
}

getnumowner

Get the outpoint that owns a num. Returns Option<OutPoint>.

ParameterTypeRequiredDescription
subjectstringYesA numeric id (e.g. "#1-2-3").
{
  "jsonrpc": "2.0",
  "method": "getnumowner",
  "params": ["#1-2-3"],
  "id": 1
}

getnumout

Get a num output by outpoint. Returns Option<NumOut>.

ParameterTypeRequiredDescription
outpointstringYesAn outpoint in txid:vout format.
{
  "jsonrpc": "2.0",
  "method": "getnumout",
  "params": ["a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2:0"],
  "id": 1
}

getcommitment

Get commitment for a subject, optionally at a specific root. Returns Option<Commitment>.

ParameterTypeRequiredDescription
subjectstringYesThe subject to look up (e.g. "@example" or "#1-2-3").
rootstringNoAn optional root hash to query at a specific state.
{
  "jsonrpc": "2.0",
  "method": "getcommitment",
  "params": ["@example"],
  "id": 1
}

getdelegation

Get the operator num id delegated for a subject. Returns Option<NumId>.

ParameterTypeRequiredDescription
subjectstringYesThe subject to look up (e.g. "@example").
{
  "jsonrpc": "2.0",
  "method": "getdelegation",
  "params": ["@example"],
  "id": 1
}

getdelegator

Get the subject that a num is operating for. Returns Option<SLabel>.

ParameterTypeRequiredDescription
subjectstringYesThe operator num (e.g. "#1-2-3").
{
  "jsonrpc": "2.0",
  "method": "getdelegator",
  "params": ["#1-2-3"],
  "id": 1
}

estimatebid

Estimate minimum bid to enter a rollout at target. Returns u64.

ParameterTypeRequiredDescription
targetintegerYesThe target rollout position.
{
  "jsonrpc": "2.0",
  "method": "estimatebid",
  "params": [10],
  "id": 1
}

getrollout

Get rollout entries for target. Returns Vec<RolloutEntry>.

ParameterTypeRequiredDescription
targetintegerYesThe target rollout position.
{
  "jsonrpc": "2.0",
  "method": "getrollout",
  "params": [10],
  "id": 1
}

getblockmeta

Get spaces block metadata by height or hash. Returns BlockMetaWithHash. Requires the --block-index flag.

ParameterTypeRequiredDescription
height_or_hashinteger or stringYesA block height (integer) or block hash (hex string).
{
  "jsonrpc": "2.0",
  "method": "getblockmeta",
  "params": [850000],
  "id": 1
}

getnumblockmeta

Get nums block metadata by height or hash. Returns NumBlockMetaWithHash.

ParameterTypeRequiredDescription
height_or_hashinteger or stringYesA block height (integer) or block hash (hex string).
{
  "jsonrpc": "2.0",
  "method": "getnumblockmeta",
  "params": [850000],
  "id": 1
}

gettxmeta

Get transaction metadata by txid. Returns Option<TxEntry>.

ParameterTypeRequiredDescription
txidstringYesThe transaction id (hex string).
{
  "jsonrpc": "2.0",
  "method": "gettxmeta",
  "params": ["a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2"],
  "id": 1
}

checkpackage

Simulate transactions and return changesets. Returns Vec<Option<TxChangeSet>>.

ParameterTypeRequiredDescription
txsstring[]YesAn array of raw transaction hex strings.
{
  "jsonrpc": "2.0",
  "method": "checkpackage",
  "params": [["0200000001..."]],
  "id": 1
}

getfallback

Get fallback data and parsed SIP-7 records. Returns Option<FallbackResponse>.

ParameterTypeRequiredDescription
subjectstringYesA subject identifier (@space, #numeric, num1...).
{
  "jsonrpc": "2.0",
  "method": "getfallback",
  "params": ["@example"],
  "id": 1
}

verifylisting

Verify a sale listing is valid. Returns ().

ParameterTypeRequiredDescription
listingobjectYesAn object with space (string), price (integer, sats), and seller_psbt (string, base64).
{
  "jsonrpc": "2.0",
  "method": "verifylisting",
  "params": [{"space": "@example", "price": 100000, "seller_psbt": "cHNidP8B..."}],
  "id": 1
}

verifyschnorr

Verify a schnorr signature. Returns bool.

ParameterTypeRequiredDescription
subjectstringYesThe subject whose key is used for verification.
messagestringYesThe message as a hex string.
signaturestringYesThe schnorr signature as a hex string.
{
  "jsonrpc": "2.0",
  "method": "verifyschnorr",
  "params": ["@example", "deadbeef...", "a1b2c3d4..."],
  "id": 1
}

buildchainproof

Build chain proof for verifying state. Returns ChainProofResult.

ParameterTypeRequiredDescription
requestobjectYesAn object with a keys array of subjects to prove.
prefer_recentboolNoIf true, prefer the most recent proof.
{
  "jsonrpc": "2.0",
  "method": "buildchainproof",
  "params": [{"keys": ["@example"]}, true],
  "id": 1
}

getrootanchors

Get all root anchors for chain proof verification. Returns Vec<RootAnchor>.

ParameterTypeRequiredDescription
(none)This method takes no parameters.
{
  "jsonrpc": "2.0",
  "method": "getrootanchors",
  "params": [],
  "id": 1
}