v1

latestOpenAPI 3.0.32026-07-173986194.3 KB

Returns a list of consensus transactions.

get/consensus/transactions

Query parameters

limitinteger

The maximum numbers of items to return.

offsetinteger

The number of items to skip before starting to collect the result set.

blockinteger

A filter on block height.

method'beacon.PVSSCommit' | 'beacon.PVSSReveal' | 'beacon.VRFProve' | 'consensus.Meta' | 'governance.CastVote' | 'governance.SubmitProposal' | 'keymanager.PublishEphemeralSecret' | 'keymanager.PublishMasterSecret' | 'keymanager.UpdatePolicy' | 'registry.DeregisterEntity' | 'registry.ProveFreshness' | 'registry.RegisterEntity' | 'registry.RegisterNode' | 'registry.RegisterRuntime' | 'registry.UnfreezeNode' | 'roothash.Evidence' | 'roothash.ExecutorCommit' | 'roothash.ExecutorProposerTimeout' | 'roothash.SubmitMsg' | 'staking.AddEscrow' | 'staking.Allow' | 'staking.AmendCommissionSchedule' | 'staking.Burn' | 'staking.ReclaimEscrow' | 'staking.Transfer' | 'staking.Withdraw' | 'keymanager/churp.Apply' | 'keymanager/churp.Confirm' | 'keymanager/churp.Create' | 'keymanager/churp.Update' | 'vault.AuthorizeAction' | 'vault.CancelAction' | 'vault.Create'
Example:staking.Transfer

A filter on transaction method.

senderstring

An Oasis-style (bech32) address.

Example:oasis1qpg2xuz46g53737343r20yxeddhlvc2ldqsjh70p

A filter on transaction sender.

relstring

A filter on related accounts.

afterstring date-time

A filter on minimum transaction time, inclusive.

beforestring date-time

A filter on maximum transaction time, exclusive.

Response

A JSON object containing a list of consensus transactions.

total_countinteger required

The total number of records that match the query, i.e. the number of records the query would return with limit=infinity.

is_total_count_clippedboolean required

Whether total_count is clipped for performance reasons.

Example response

{
  "total_count": 412,
  "is_total_count_clipped": true,
  "transactions": [
    {
      "block": 8048956,
      "index": 17,
      "timestamp": "2022-10-15T00:05:34Z",
      "hash": "0d0531d6b8a468c07440182b1cdda517f5a076d69fb2199126a83082ecfc0f41",
      "sender": "oasis1qpg2xuz46g53737343r20yxeddhlvc2ldqsjh70p",
      "fee": "1234567890123456789012",
      "gas_limit": "1234567890123456789012",
      "method": "staking.Transfer"
    }
  ]
}