RPC API (old)
Introduction
# for mainnet, replace `testnet` with `mainnet`
https://api.testnet.hiro.so/Stacks Node RPC API endpoints
Transaction ID of successful post of a raw tx to the node's mempool.
e161978626f216b2141b156ade10501207ae535fa365a13ef5d7a7c9310a09f2Pattern: ^[0-9a-f]{64}$Bad request
Internal Server Error
Standard Stacks address (e.g. SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0).
Must be 28-41 characters long using Stacks base58check format.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0Pattern: ^[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41}$Contract name. Must start with a letter and can contain letters, numbers, hyphens, and underscores. Maximum length is 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$^([a-zA-Z0-9_]|[-!?+<>=/*]){1,128}$Success
Bad request
Not found
Internal Server Error
Standard Stacks address (e.g. SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0).
Must be 28-41 characters long using Stacks base58check format.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0Pattern: ^[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41}$Contract name. Must start with a letter and can contain letters, numbers, hyphens, and underscores. Maximum length is 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$Contract interface
Bad request
Not found
Internal Server Error
Standard Stacks address (e.g. SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0).
Must be 28-41 characters long using Stacks base58check format.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0Pattern: ^[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41}$Contract name. Must start with a letter and can contain letters, numbers, hyphens, and underscores. Maximum length is 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$Success
Bad request
Not found
Internal Server Error
Standard Stacks address (e.g. SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0).
Must be 28-41 characters long using Stacks base58check format.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0Pattern: ^[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41}$Contract name. Must start with a letter and can contain letters, numbers, hyphens, and underscores. Maximum length is 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$^([a-zA-Z0-9_]|[-!?+<>=/*]){1,128}$Describes representation of a Type-0 Stacks 2.0 transaction. https://github.com/stacksgov/sips/blob/main/sips/sip-005/sip-005-blocks-and-transactions.md#type-0-transferring-an-asset
The simulated tx-sender
The simulated sponsor address
An array of hex serialized Clarity values
Function executed successfully
The result of a read-only function call.
Bad request
Not found
Internal Server Error
Plain-text secret value that must exactly equal the node's
configured password, which is set as connection_options.auth_token
in the node's configuration file.
Standard Stacks address (e.g. SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0).
Must be 28-41 characters long using Stacks base58check format.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0Pattern: ^[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41}$Contract name. Must start with a letter and can contain letters, numbers, hyphens, and underscores. Maximum length is 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$^([a-zA-Z0-9_]|[-!?+<>=/*]){1,128}$Describes representation of a Type-0 Stacks 2.0 transaction. https://github.com/stacksgov/sips/blob/main/sips/sip-005/sip-005-blocks-and-transactions.md#type-0-transferring-an-asset
The simulated tx-sender
The simulated sponsor address
An array of hex serialized Clarity values
Function executed successfully
The result of a read-only function call.
Bad request
Unauthorized. Invalid or missing authentication token.
Not found
Timeout
Internal Server Error
POST request for estimated fee
Estimated fees for the transaction
Fee estimation error
Internal Server Error
Standard Stacks address (e.g. SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0).
Must be 28-41 characters long using Stacks base58check format.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0Pattern: ^[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41}$Contract name. Must start with a letter and can contain letters, numbers, hyphens, and underscores. Maximum length is 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$Stacks address of the trait-defining contract.
SP2Z1K16238380NBP4T38A4G10A90Q03JJ2C2003Pattern: ^[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41}$Contract name of the trait-defining contract.
some-traitPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$some-traitPattern: ^([a-zA-Z0-9_]|[-!?+<>=/*]){1,128}$Success
Bad request
Not found
Standard Stacks address (e.g. SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0).
Must be 28-41 characters long using Stacks base58check format.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0Pattern: ^[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41}$Contract name. Must start with a letter and can contain letters, numbers, hyphens, and underscores. Maximum length is 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$Metadata key
Success
Bad request
Not found
Internal Server Error
Standard Stacks address (e.g. SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0).
Must be 28-41 characters long using Stacks base58check format.
SP31DA6FTSJX2WGTZ69SFY11BH51NZMB0ZW97B5P0Pattern: ^[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{28,41}$Contract name. Must start with a letter and can contain letters, numbers, hyphens, and underscores. Maximum length is 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$^([a-zA-Z0-9_]|[-!?+<>=/*]){1,128}$Success
Bad request
Not found
Internal Server Error
Plain-text secret value that must exactly equal the node's
configured password, which is set as connection_options.auth_token
in the node's configuration file.
Hex-encoded block data
Chain ID for the block
Block proposal has been accepted for processing. The result will be returned via the event observer.
Bad Request
Unauthorized. Invalid or missing authentication token.
There is an ongoing proposal validation being processed, the new request cannot be accepted until the prior request has been processed.
Internal Server Error
The block's height
The raw SIP-003-encoded block will be returned.
Bad request
Not found
Internal Server Error
The tenure-start block ID of the tenure to query
The block ID hash of the highest block in this tenure that is already known to the caller. Neither the corresponding block nor any of its ancestors will be served. This is used to fetch tenure blocks that the caller does not have.
SIP-003-encoded Nakamoto blocks, concatenated together
SIP-003-encoded Nakamoto blocks, concatenated together
The hex-encoded consensus hash of the tenure to query (40 hexadecimal characters, without 0x prefix)
^[0-9a-f]{40}$List of Stacks blocks in the tenure
Bad request
Not found
Internal Server Error
The hex-encoded Bitcoin block hash of the tenure to query (64 hexadecimal characters, without 0x prefix)
^[0-9a-f]{64}$List of Stacks blocks in the tenure
Bad request
Not found
Internal Server Error
The Bitcoin block height of the tenure to query
List of Stacks blocks in the tenure
Bad request
Not found
Internal Server Error
Hex-encoded consensus hash (40 characters)
^(0x)?[0-9a-f]{40}$Sortition information for the consensus hash
Bad request
Not found
Internal Server Error
Hex-encoded burn header hash (64 characters)
^(0x)?[0-9a-f]{64}$Sortition information for the burn header hash
Bad request
Not found
Internal Server Error
Hex-encoded compressed Secp256k1 public key of signer
^0[23][0-9a-f]{64}$Reward cycle number
Number of blocks signed
Number of blocks signed
Transaction ID (64 hexadecimal characters)
^[0-9a-f]{64}$Transaction JSON with index_block_hash, transaction body and result
Not found
Internal Server Error
Transaction indexing not enabled
Hex-encoded index block hash (64 characters)
^[0-9a-f]{64}$max 8 pages per request
1,2,3Pattern: ^[0-9]+(,[0-9]+){0,7}$Attachment inventory bitfield
Bad request
Not found
Hex-encoded Stacks block ID (64 characters)
^[0-9a-f]{64}$Stream of confirmed microblocks
Not found
Internal Server Error
Hex-encoded microblock hash (64 characters)
^[0-9a-f]{64}$The microblock data
Bad request
Not found
Internal Server Error
Hex-encoded parent block ID (64 characters)
^[0-9a-f]{64}$Starting sequence number (0-65535)
Stream of unconfirmed microblocks
Bad request
Not found
Internal Server Error
Index-block hash of the accepted microblock
32-byte block-header hash (hex)
^[0-9a-f]{64}$Bad request
Not found
Internal Server Error
Contract name. Must start with a letter and can contain letters, numbers, hyphens, and underscores. Maximum length is 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$Slot ID
StackerDB chunk data
Not found
Internal Server Error
Contract name. Must start with a letter and can contain letters, numbers, hyphens, and underscores. Maximum length is 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$Slot ID
Specific slot version
StackerDB chunk data
Bad request
Not found
Internal Server Error
Contract name. Must start with a letter and can contain letters, numbers, hyphens, and underscores. Maximum length is 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$StackerDB metadata
Bad request
Not found
Internal Server Error
Contract name. Must start with a letter and can contain letters, numbers, hyphens, and underscores. Maximum length is 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$Slot identifier
Slot version (lamport clock)
Hex-encoded signature from the stacker
^[0-9a-f]{130}$Hex-encoded chunk data
^[0-9a-f]*$Chunk submission result (both success and failure cases)
Bad request
Not found
Internal Server Error
Contract name. Must start with a letter and can contain letters, numbers, hyphens, and underscores. Maximum length is 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$List of StackerDB replicas
Bad request
Not found
Internal Server Error
Contract name. Must start with a letter and can contain letters, numbers, hyphens, and underscores. Maximum length is 40 characters for new contracts. Legacy contracts may have names up to 128 characters.
get-infoPattern: ^[a-zA-Z]([a-zA-Z0-9]|[-_]){0,127}$Variable name
The data variable value
Bad request
Not found
Hex-encoded block ID (64 characters)
^[0-9a-f]{64}$The block data
Bad request
Not found
Internal Server Error
Starting consensus hash (40 hexadecimal characters, without 0x prefix)
^[0-9a-f]{40}$Stopping consensus hash (40 hexadecimal characters, without 0x prefix)
^[0-9a-f]{40}$Ordered list of tenure fork events from stop back to (and including) start
Bad request
Not found
Internal Server Error
Consensus hash (40 characters)
^[0-9a-f]{40}$Tenure tip block information
JSON encoding of StacksBlockHeaderTypes returned by /v3/tenures/tip.
Exactly one variant property will be present: either Epoch2 or Nakamoto.
Bad request
Not found
Internal Server Error
Transaction ID (64 hexadecimal characters)
^[0-9a-f]{64}$Unconfirmed transaction details
Bad request
Not found
Internal Server Error
Consensus hash (40 hex characters)
^[0-9a-f]{40}$Binary-encoded Stacks block
Block upload result
Bad request
Not found
Internal Server Error
Transaction ID to start pagination from
^[0-9a-f]{64}$Binary SIP-003 encoding of MemPoolSyncData
(BloomFilter or TxTags variants).
Transaction IDs
Stream of missing transactions
Binary stream of transactions and pagination data. The stream contains serialized transactions followed by a page ID for continuation.
Bad request
Internal Server Error
Plain-text secret value that must exactly equal the node's
configured password, which is set as connection_options.auth_token
in the node's configuration file.
If set to "1" the node will broadcast the uploaded block to peers.
When present the request must include a valid Authorization header.
Binary SIP-003 encoding of a NakamotoBlock
Block upload result.
Bad request
Unauthorized. Invalid or missing authentication token.
Internal Server Error
Plain-text secret value that must exactly equal the node's
configured password, which is set as connection_options.auth_token
in the node's configuration file.
The block ID hash
^[0-9a-f]{64}$Content of the replayed block
Bad request
Unauthorized. Invalid or missing authentication token.
Not found
Internal Server Error
Last updated
Was this helpful?