- APIs
- Stacks Blockchain API
- Mempool Transactions
Get mempool transactions
Retrieves all transactions that have been recently broadcast to the mempool. These are pending transactions awaiting confirmation.
GET
Parameters
Query Parameters
sender_address
string STX Address
recipient_address
string STX Address
address
string STX Address
order_by
string Option to sort results by transaction age, size, or fee rate.
order
string Results order
unanchored
boolean Include data from unanchored (i.e. unconfirmed) microblocks
offset
integer Result offset
limit
integer Results per page
exclude_function_args
boolean Exclude function_args from contract call responses for smaller transaction sizes.
Status code | Description |
---|---|
200 | List of mempool transactions |
4XX | Default Response |
cURL
curl -L \"https://api.hiro.so/extended/v1/tx/mempool?sender_address=SP318Q55DEKHRXJK696033DQN5C54D9K2EE6DHRWP&recipient_address=SP318Q55DEKHRXJK696033DQN5C54D9K2EE6DHRWP&address=SP318Q55DEKHRXJK696033DQN5C54D9K2EE6DHRWP&order_by={order_by}&order={order}&unanchored=true&offset={offset}&limit={limit}&exclude_function_args={exclude_function_args}" \-H 'Accept: application/json'
Response
{"limit": 20,"offset": 0,"total": 1,"results": [{"tx_id": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef","nonce": 1,"fee_rate": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef","sender_address": "SP318Q55DEKHRXJK696033DQN5C54D9K2EE6DHRWP","sponsor_nonce": 0,"sponsored": false,"sponsor_address": "string","post_condition_mode": "allow","post_conditions": [{"principal": {"type_id": "principal_origin"},"condition_code": "sent_equal_to","amount": "string","type": "stx"}],"anchor_mode": "on_chain_only","tx_status": "pending","replaced_by_tx_id": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef","receipt_time": 0,"receipt_time_iso": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef","tx_type": "token_transfer","token_transfer": {"recipient_address": "string","amount": "string","memo": ""}}]}