Skip to content

Latest commit

 

History

History
256 lines (206 loc) · 4.36 KB

QUERIES.md

File metadata and controls

256 lines (206 loc) · 4.36 KB

Queries

balances

TODO docs

balances(
  where: BalancesFilter
  order: BalancesOrder
  orderDesc: Boolean
  limit: Int): [Balances]

TODO docs

blockEvents(
  where: BlockEventsFilter
  order: BlockEventsOrder
  orderDesc: Boolean
  limit: Int): [BlockEvents]

TODO docs

blockEventsFailed(
  where: BlockEventsFailedFilter
  order: BlockEventsFailedOrder
  orderDesc: Boolean
  limit: Int): [BlockEventsFailed]

TODO docs

delegations(
  where: DelegationsFilter
  order: DelegationsOrder
  orderDesc: Boolean
  limit: Int): [Delegations]

Query Example - delegations

{
  # TODO missing fields: where, order
  delegations(orderDesc: true, limit: 3) {
    validatorAddress
    delegatorAddress
    shares
    balance
    block
    blockTs
  }
}

Response Example - delegations

{
  "data": {
    "delegations": [
      {
        "validatorAddress": "nibivaloper1d7zygazerfwx4l362tnpcp0ramzm97xvv9ryxr",
        "delegatorAddress": "nibi1zaavvzxez0elundtn32qnk9lkm8kmcsz44g7xl",
        "shares": 6,
        "balance": "{\"amount\":6,\"denom\":\"unibi\"}",
        "block": 791341,
        "blockTs": "2023-02-22T22:12:18.507059+00:00"
      },
      {
        "validatorAddress": "nibivaloper1d7zygazerfwx4l362tnpcp0ramzm97xvv9ryxr",
        "delegatorAddress": "nibi1d7zygazerfwx4l362tnpcp0ramzm97xv97dlj7",
        "shares": 500000000,
        "balance": "{\"amount\":500000000,\"denom\":\"unibi\"}",
        "block": 791341,
        "blockTs": "2023-02-22T22:12:18.507059+00:00"
      },
      {
        "validatorAddress": "nibivaloper1d7zygazerfwx4l362tnpcp0ramzm97xvv9ryxr",
        "delegatorAddress": "nibi1jle8khj3aennq24zx6g93aam9rt0fqhgyp4h52",
        "shares": 52,
        "balance": "{\"amount\":52,\"denom\":\"unibi\"}",
        "block": 791341,
        "blockTs": "2023-02-22T22:12:18.507059+00:00"
      }
    ]
  }
}

fundingRates

TODO docs

fundingRates(
  where: FundingRatesFilter
  order: FundingRatesOrder
  orderDesc: Boolean
  limit: Int): [FundingRates]

liquidations

TODO docs

liquidations(
  where: LiquidationsFilter
  order: LiquidationsOrder
  orderDesc: Boolean
  limit: Int): [Liquidations]

oraclePrices

TODO docs

oraclePrices(
  where: OraclePricesFilter
  order: OraclePricesOrder
  orderDesc: Boolean
  limit: Int): [OraclePrices]

positionChanges

TODO docs

positionChanges(
  where: PositionChangesFilter
  order: PositionChangesOrder
  orderDesc: Boolean
  limit: Int): [PositionChanges]

positions

TODO docs

positions(
  where: PositionsFilter
  order: PositionsOrder
  orderDesc: Boolean
  limit: Int): [Positions]

statsVolume

TODO docs

statsVolume(
  where: StatsVolumeFilter
  order: StatsVolumeOrder
  orderDesc: Boolean
  limit: Int): [StatsVolume]

transfers

TODO docs

transfers(
  where: TransfersFilter
  order: TransfersOrder
  orderDesc: Boolean
  limit: Int): [Transfers]

txMessages

TODO docs

txMessages(
  where: TxMessagesFilter
  order: TxMessagesOrder
  orderDesc: Boolean
  limit: Int): [TxMessages]

txMessagesFailed

TODO docs

txMessagesFailed(
  where: TxMessagesFailedFilter
  order: TxMessagesFailedOrder
  orderDesc: Boolean
  limit: Int): [TxMessagesFailed]

unbondings

TODO docs

unbondings(
  where: UnbondingsFilter
  order: UnbondingsOrder
  orderDesc: Boolean
  limit: Int): [Unbondings]

validators

TODO docs

validators(
  where: ValidatorsFilter
  order: ValidatorsOrder
  orderDesc: Boolean
  limit: Int): [Validators]

vpoolConfigs

TODO docs

vpoolConfigs(
  where: VpoolConfigsFilter
  order: VpoolConfigsOrder
  orderDesc: Boolean
  limit: Int): [VpoolConfigs]