Transaction Search
Learn how to use the Transaction Search API on Polkadot
Test out our Transaction Search API today with DataHub!
transactions_search
POST
https://polkadot--search.datahub.figment.io/transactions_search
Transaction Search allows users to filter and query by account, event type, and date range.
Request Body
network
string
Network identifier to search in. In this case, polkadot
account
array
The account identifier to look for. This searches for all account IDs which exist inside transaction events.
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, mainnet
epoch
string
Era the transaction occurred,
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 transaction events (see below for full list of parameters)
with_raw
boolean
Include base64 raw rtransaction data in search response. Defaults to false
with_raw_log
boolean
Include base64 raw events from search response. Defaults to false
Transaction Types
List of currently supported sub event types in polkadot-worker are (listed by modules):
Module
Type
balances
balanceset
, deposit
, dustlost
, endowed
, reserverepatriated
, reserved
, transfer
, unreserved
council
approved
, closed
, disapproved
, executed
, proposed
, voted
democracy
cancelled
, delegated
, preimagenoted
, preimagereaped
, proposed
, started
, undelegated
identity
identitycleared
, identitykilled
, identityset
, judgementgiven
, judgementrequested
, judgementunrequested
, registraradded
, subidentityadded
, subidentiyremoved
, subidentityrevoked
indices
indexassigned
, indexfreed
, indexfrozen
multisig
multisigapproval
, multisigcancelled
, multisigexecuted
, newmultisig
proxy
bonded
, reward
, slash
staking
bonded
, reward
, slash
system
extrinsicfailed
, extrinsicsuccess
, killedaccount
, newaccount
technicalcommittee
approved
, closed
, disapproved
, executed
, memberexecuted
, proposed
, voted
tips
newtip
, tipclosed
, tipclosing
, tipretracted
, tipslashed
treasury
proposed
, rejected
utility
batchcompleted
, batchinterrupted
vesting
vestingupdated
, vestingcompleted
List of currently supported extrinsic event types in polkadot-worker are (listed by modules):
Module
Type
authorship
setuncles
babe
planconfigchange
, reportequivocation
, reportequivocationunsigned
balances
forcetransfer
, setbalance
, transfer
, transferall
, transferkeepalive
bounties
acceptcurator
, approvebounty
, awardbounty
, claimbounty
, closebounty
, extendbountyexpiry
, proposecurator
, unassigncurator
claims
attest
, claim
, claimattest
, mintclaim
, moveclaim
council
close
, disapproveproposal
, execute
, propose
, setmembers
, vote
democracy
blacklist
, cancelproposal
, cancelqueued
, cancelreferendum
, clearpublicproposals
, delegate
, emergencycancel
, enactproposal
, externalproposal
, externalpropose
, externalproposedefault
, fasttrack
, noteimminentpreimage
, noteimminentpreimageoperational
, notepreimage
, notepreimageoperational
, propose
, reappreimage
, removeothervote
, removevote
, second
, undelegate
, unlock
, vetoexternal
, vote
electionprovidermultiphase
setemergencyelectionresult
, setminimumuntrustedsource
, submitunsigned
grandpa
notestalled
, reportequivocation
, reportequivocationunsigned
identity
addregistrar
, addsub
, cancelrequest
, clearidentity
, killidentity
, providejudgement
, quitsub
, removesub
, renamesub
, requestjudgement
, setaccountid
, setfee
, setfields
, setidentity
, setsubs
indices
claim
, forcetransfer
, free
, freeze
, transfer
imonline
heartbeat
multisig
approveasmulti
, asmulti
, asmultithreshold1
, cancelasmulti
phragmenelection
cleandefunctvoters
, removemember
, removevoter
, renouncecandidacy
, submitcandidacy
proxy
addproxy
, announce
, anonymous
, killanonymous
, proxy
, proxyannounced
, rejectannouncement
, removeannouncement
, removeproxies
, removeproxy
scheduler
cancel
, cancelnamed
, schedule
, scheduleafter
, schedulenamed
, schedulenamedafter
session
purgekeys
, setkeys
staking
bond
, bondextra
, canceldeferredslash
, chill
, chillother
, forcenewera
, forceneweraalways
, forcenoeras
, forceunstake
, increasevalidatorcount
, kick
, nominate
, payoutstakers
, reapstash
, scalevalidatorcount
, setcontroller
, sethistorydepth
, setinvulnerables
, setvalidatorcount
, unbond
, updatestakinglimits
, validate
, withdrawunbonded
system
fillblock
, killprefix
, killstorage
, remark
, remarkwithevent
, setchangestrieconfig
, setcode
, setcodewithoutchecks
, setheappages
, setstorage
technicalcommittee
close
, disapproveproposal
, execute
, propose
, setmembers
, vote
technicalmembership
addmember
, changekey
, clearprime
, removemember
, resetmembers
, setprime
, swapmember
timestamp
set
tips
closetip
, reportawesome
, retracttip
, slashtip
, tip
, tipnew
treasury
approveproposal
, proposespend
, rejectproposal
utility
asderivative
, batch
, batchall
vesting
forcevestedtransfer
, vest
, vestother
, vestedtransfer
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