Transaction Search
Learn how to use the Transaction Search API on Cosmos
Test out our Transaction Search API today with DataHub!
transactions_search
POST
https://cosmos--search.datahub.figment.io/transactions_search
Transaction Search allows users to filter and query by account, transaction type, and date range. Users can also search by memo field and logs.
Request Body
network
string
Network identifier to search in. In this case, cosmos
account
array
The account identifier to look for. This searches for all account IDs which exist in transaction, including senders, recipients, validators, feeders, etc.
after_height
integer
Gets all transactions bigger than given height. Has to be bigger than BeforeHeight
after_time
string
The time of transaction (if not given by chain API, the same as block)
before_height
integer
Gets all transactions lower than given height. Has to be lesser than AfterHeight
before_time
string
The time of transaction (if not given by the chain API, the same as block)
block_hash
string
The hash of block to get transaction from
chain_ids
array
ChainID to search in. In this case, cosmoshub-3
epoch
string
Epoch of the transaction
hash
string
The hash of the transaction
height
integer
Height of the transactions to get
limit
integer
Limit how many transaction records to get in one request (default: 100, maximum: 1000)
memo
string
Sets full text search for memo field
offset
integer
Offset the next X number of records
receiver
array
Looks for transactions that include given account IDs
sender
array
Looks for transactions that include given account IDs
type
array
The list of types of transactions (see below for full list of parameters)
with_raw
boolean
Include base64 raw request in search response
with_raw_log
boolean
Include base64 raw log from search response. Defaults to false
Transaction Types
List of currently supporter transaction types in cosmos-worker are (listed by modules):
Module
Type
bank
multisend
, send
crisis
verify_invariant
distribution
withdraw_validator_commission
, set_withdraw_address
, withdraw_delegator_reward
, fund_community_pool
evidence
submit_evidence
gov
deposit
, vote
, submit_proposal
slashing
unjail
staking
begin_unbonding
, edit_validator
, create_validator
, delegate
, begin_redelegate
internal
error
Example Request
Example Response
If you need help with this API or simply want to share with other builders, you can join our community today!
Last updated