Get recent transactions
Retrieves all recently mined transactions.
Get recent transactions
Retrieves all recently mined transactions
If using TypeScript, import typings for this response from our types package:
import type { TransactionResults } from '@stacks/stacks-blockchain-api-types';
Query Parameters
limit
integer
max number of transactions to fetch
Example:100
Default: 96
Maximum: 200
offset
integer
index of first transaction to fetch
Example:42000
type
array<string>
Filter by transaction type
Example:"coinbase"
from_address
string
Option to filter results by sender address
to_address
string
Option to filter results by recipient address
sort_by
string
Option to sort results by block height, timestamp, or fee
Example:"burn_block_time"
Default: "block_height"
Value in: "block_height" | "burn_block_time" | "fee"
start_time
integer
Filter by transactions after this timestamp (unix timestamp in seconds)
Example:1704067200
end_time
integer
Filter by transactions before this timestamp (unix timestamp in seconds)
Example:1706745599
contract_id
string
Filter by contract call transactions involving this contract ID
Example:"SP000000000000000000002Q6VF78.pox-4"
function_name
string
Filter by contract call transactions involving this function name
Example:"delegate-stx"
nonce
integer
Filter by transactions with this nonce
Example:123
order
string
Option to sort results in ascending or descending order
Example:"desc"
Default: "desc"
Value in: "asc" | "desc"
unanchored
boolean
Include transaction data from unanchored (i.e. unconfirmed) microblocks
Example:true
Default: false
Status code | Description |
---|---|
200 | List of transactions |
GET request that returns transactions