Transactions API
This document describes the available query parameters for filtering transactions via the /v2/transactions endpoint.
Authentication
This endpoint requires API key authentication with the TransactionViewer role. Contact Superstate for an API key.
Sending a request
For information on how to send a request, please see the API key section on the API page.
Example
import { superstateApiKeyRequest, TransactionStatus } from '@superstateinc/api-key-request';
const transactions = await superstateApiKeyRequest({
apiKey: SUPERSTATE_API_KEY,
apiSecret: SUPERSTATE_API_SECRET,
endpoint: "/v2/transactions",
method: "GET",
queryParams: {
from_timestamp: "2024-10-01T00:00:00Z",
transaction_status: TransactionStatus.Pending,
transaction_type: "Purchase,Redeem",
},
});
console.log(transactions);Query parameters
transaction_status
Filter transactions by their current status.
Type
string
Required
No
Allowed Values
Pending, PaymentPending, Completed
Status Descriptions:
Pending- Transaction has been initiated but not yet completedPaymentPending- Payment has been initiated (e.g., USDC transfer) but awaiting confirmation (approximately 12 blocks)Completed- Transaction has been fully processed
Example:
transaction_type
Filter transactions by one or more transaction types. Multiple types can be specified as a comma-separated list.
Type
string (comma-separated list)
Required
No
Important: Comma-separated values must NOT contain spaces, otherwise HMAC signatures will not match.
Allowed Values:
General
OnchainTransfer, Tokenize, Bridge, ProtocolTransfer, AdminAdjustment
Funds
UsdPurchase, UsdcPurchase, Purchase, Redeem, Burn, ProtocolMint, ProtocolRedeem, MintRequest, RedemptionRequest
Equities
Issuance, Vest, Unlock, Release, Lockup, TaTransfer, BookEntryTransfer, BookEntryBuyback, DipPurchase, OnchainDeFiLpIssuance, OnchainDeFiLpBurn
Example:
from_timestamp
Filter transactions created on or after this UTC timestamp.
Type
string (ISO 8601 datetime)
Required
No
Example:
until_timestamp
Filter transactions created on or before this UTC timestamp.
Type
string (ISO 8601 datetime)
Required
No
Example:
from_price_timestamp
Filter transactions with a price timestamp on or after this UTC timestamp.
Type
string (ISO 8601 datetime)
Required
No
Note: Only transactions that have a price_timestamp value will be included when this filter is applied.
Example:
until_price_timestamp
Filter transactions with a price timestamp on or before this UTC timestamp.
Type
string (ISO 8601 datetime)
Required
No
Note: Only transactions that have a price_timestamp value will be included when this filter is applied.
Example:
transaction_hash
Filter transactions by a specific blockchain transaction hash.
Type
string
Required
No
Example:
from_address
Filter transactions by the source/sender blockchain address.
Type
string (blockchain address)
Required
No
Example:
to_address
Filter transactions by the destination/recipient blockchain address.
Type
string (blockchain address)
Required
No
Example:
source_chain_id
Filter transactions by the source blockchain chain ID.
Type
integer
Required
No
Common Chain IDs:
1- Ethereum Mainnet11155111- Base900- Solana MainnetBeta (internal representation chain ID)901- Solana Devnet (internal representation chain ID)
Example:
destination_chain_id
Filter transactions by the destination blockchain chain ID.
Type
integer
Required
No
Example:
source_chain_name
Filter transactions by the source blockchain name.
Type
string
Required
No
Example:
destination_chain_name
Filter transactions by the destination blockchain name.
Type
string
Required
No
Example:
dip_market_id
Filter transactions by a specific DIP (Direct Issuance Program) market ID.
Type
string (UUID)
Required
No
Example:
entity_id
Filter transactions to only those associated with a specific entity.
Type
integer
Required
No
Note: This filter is applied within the scope of the API key's permissions. An organization-scoped API key can filter by any entity within that organization.
Example:
subaccount_id
Filter transactions to only those associated with a specific subaccount.
Type
integer
Required
No
Example:
Combining filters
Multiple filters can be combined in a single request. All filters are applied using AND logic.
Example - Get all completed purchases in Q4 2024:
Example - Get transactions for a specific entity on Ethereum:
Response
Returns an array of TransactionV2 objects sorted by created_at in descending order (newest first).
Error responses
400
Invalid request parameters
401
Unauthorized - invalid or missing API key
500
Internal server error
Last updated