Home

CHANGED METHODS

v4.0.7
Base URL
https://stacks.nownodes.ioNOWNodes Stacks RPC endpoint

Changes to existing RPC methods between stacks-node 4.0.5 and 4.0.7 (4.0.6 + 4.0.7). Newly added methods are not listed.

Summary:

  • GET /v3/sortitions - new response field canonical.
  • GET /v2/accounts/{principal} - documented PoX-5 semantics of locked and unlock_height; response format unchanged.
  • GET /v3/tenures/{block_id} - response size now leaves room for HTTP chunk framing (4.0.7 fix); response format unchanged.

Authentication

api-keyAuthapiKey

API Key: api-key in header

API CHANGES 4.0.5 > 4.0.7

Blocks

Fetch information about evaluated burnchain blocks (i.e., sortitions).

GET
https://stacks.nownodes.io/v3/sortitions/{lookup_kind}/{lookup}

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Changed in 4.0.6: every sortition object in the response now contains the canonical field.

canonical shows whether the sortition is on the node's canonical burnchain fork. false means a burnchain fork orphaned it, which voids everything the tenure it elected produced. Nodes older than 4.0.6 do not return the field; clients must treat its absence as "unknown", not as true or false.

Request parameters and all other response fields are unchanged.

Parameters

lookup_kindstringpath

One of consensus, burn_height, burn, latest_and_last. If not given, the most recent burn block processed is returned.

lookupstringpath

The value to use for the lookup if lookup_kind is consensus, burn_height, or burn

Response

200OK

Information for the burn block or, in the case of latest_and_last, multiple burn blocks

Fetch a sequence of Nakamoto blocks in a tenure

GET
https://stacks.nownodes.io/v3/tenures/{block_id}

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Changed in 4.0.7 (bug fix): a response could previously hold up to 16 MiB of blocks, but the receiving side counted HTTP chunk framing against the same limit and dropped the connection, so tenures larger than ~16 MiB could not be downloaded. The node now leaves room for chunk framing, so its responses can always be read in full.

Request parameters and the response format are unchanged.

Parameters

block_idstringrequiredpath

The tenure-start block ID of the tenure to query

Response

200OK

Nakamoto blocks of the tenure (binary)

Accounts

Get account info

GET
https://stacks.nownodes.io/v2/accounts/{principal}

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Changed in 4.0.6 (documentation only): the meaning of balance, locked and unlock_height under PoX-5 is now documented. Request parameters and the response format are unchanged.

Under PoX-5, unstake keeps the amount locked and moves unlock_height to the first Bitcoin block of the next reward cycle. STX paired with a protocol bond stays locked until the bond ends. When the burn block height of the queried tip reaches unlock_height, the amount moves into balance with no transaction.

Parameters

principalstringrequiredpath

Stacks address or a Contract identifier (e.g. SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0.get-info)

Response

200OK

Success