API endpoint: https://public.adanothe.com/graphql
Query:
query getValidator($address: String!) {
getValidator(address: $address) {
treasury
nodeAddress
oracleAddress
enode
commissionRate
bondedStake
unbondingStake
unbondingShares
selfBondedStake
selfUnbondingShares
selfUnbondingStakeLocked
liquidContract
liquidSupply
registrationBlock
totalSlashed
jailReleaseBlock
provableFaultCount
consensusKey
state
moniker
keybase
description
website
email
github
twitter
discord
telegram
logo_url
blockValidated
oracleVote
}
}This query is used to retrieve detailed information about a specific validator based on its validator address (address).
Query:
query allValidator($limit: Int, $offset: Int, $filter: ValidatorFilter) {
allValidator(limit: $limit, offset: $offset, filter: $filter) {
validators {
treasury
nodeAddress
oracleAddress
enode
commissionRate
bondedStake
unbondingStake
unbondingShares
selfBondedStake
selfUnbondingShares
selfUnbondingStakeLocked
liquidContract
liquidSupply
registrationBlock
totalSlashed
jailReleaseBlock
provableFaultCount
consensusKey
state
moniker
keybase
description
website
email
github
twitter
discord
telegram
logo_url
blockValidated
oracleVote
}
totalCount
}
}This query is used to retrieve a list of all validators with options to apply a limit (limit), offset (offset), and filter based on the validator state (filter).
filter parameter:
ACTIVECANDIDATEINACTIVE
Query:
query {
network {
blockHeight
epoch
epochBlock
totalSupply
bondedSupply
unbondedSupply
maxValidator
unbondedPercentage
bondedPercentage
unbondingPeriod
blockPeriod
seatPrice
lastEpochTime
reserve
}
}This query is used to retrieve detailed information about the network, including block height, epoch, total supply, bonded and unbonded supply, and other relevant information.
Query:
query {
getCommittee {
addr
votingPower
consensusKey
}
}This query is used to retrieve the list of committee members, including their addresses, voting power, and consensus keys.
Query:
query getBlockDetail($blockHeight: Int!) {
blockDetail(blockHeight: $blockHeight) {
consensus {
difficulty
gasLimit
gasUsed
hash
minerHash
nonce
number
parentHash
size
timestamp
baseFeePerGas
burntFees
priorityFees
totalDifficulty
transactionCount
transactionHashes
}
}
}This query is used to retrieve details of a specific block based on its height (blockHeight), including consensus information and transactions.
Query:
query getOracle($symbol: String!) {
getOracle(symbol: $symbol) {
symbol
price
timestamp
round
success
}
}This query is used to retrieve oracle round data for a specific symbol (symbol). Available oracle symbols include:
AUD-USDCAD-USDEUR-USDGBP-USDJPY-USDSEK-USDATN-USDCNTN-USDCNTN-ATN
Query:
query {
latestRoundData {
symbol
price
timestamp
round
success
}
}This query is used to retrieve the latest oracle round data for all available symbols.
Query:
query getRoundData($symbol: String!, $round: String!) {
getRoundData(symbol: $symbol, round: $round) {
symbol
price
timestamp
round
success
}
}This query is used to retrieve oracle round data based on the symbol (symbol) and round (round).
Query:
query {
oracleParam {
precision
round
symbols
votePeriod
voters
}
}This query is used to retrieve oracle parameters, including precision, round, symbols, vote period, and voters.
Query:
query getDelegators($validatorAddress: String!, $limit: Int, $offset: Int) {
getDelegators(validatorAddress: $validatorAddress, limit: $limit, offset: $offset) {
delegators {
delegator
amount
}
totalCount
}
}This query is used to retrieve the list of delegators for a specific validator based on the validator address (validatorAddress), with options to apply a limit (limit) and offset (offset).
Query:
query getPowertx($validatorAddress: String!, $limit: Int, $offset: Int) {
getPowertx(validatorAddress: $validatorAddress, limit: $limit, offset: $offset) {
transactions {
delegator
selfBonded
amount
block_number
epoch
transaction_hash
timestamp
event_type
}
totalCount
}
}This query is used to retrieve the list of power transactions for a specific validator based on the validator address (validatorAddress), with options to apply a limit (limit) and offset (offset).
Query:
query delegateList($delegatorAddress: String!, $limit: Int, $offset: Int) {
delegateList(delegatorAddress: $delegatorAddress, limit: $limit, offset: $offset) {
delegates {
validator
amount
moniker
unclaimedRewards {
ATN
NTN
}
}
totalCount
}
}This query is used to retrieve the delegate list of a specific delegator based on the delegator address (delegatorAddress), with options to apply a limit (limit) and offset (offset).
Query:
query getAccountBalance($address: String!) {
accountBalance(address: $address) {
address
balances {
symbol
balance
}
}
}This query is used to retrieve the balance of a specific account based on its address (address), including the balance for each token held by the account.
Query:
query getAccountTransactions($address: String!) {
getAccountTransactions(address: $address) {
method
hash
type
block
from
to
value
fee
token
symbol
}
}This query is used to retrieve the list of transactions for a specific account based on its address (address).