Keisu GraphQL API Reference
A GraphQL API for on-chain data.
API Endpoints
https://api.keisu.io/blockql Headers
// Authorization Header
X-API-Key: (Your API Key) Documentation directory
Important Disclaimer
This API provides direct access to the underlying database for our Blockchain REST API. Much of the data is encoded and needs processing to be used. For most users, we recommend you use our simplified REST API instead
This API provides direct access to the underlying database for our Blockchain REST API. Much of the data is encoded and needs processing to be used. For most users, we recommend you use our simplified REST API instead
Queries
allBlocks
Description
Reads and enables pagination through a set of Block.
Response
Returns a
BlocksConnection
Arguments
| Name | Description |
|---|---|
first -
Int
|
Only read the first n values of the set. |
last -
Int
|
Only read the last n values of the set. |
offset -
Int
|
Skip the first n values from our after cursor, an alternative to cursor based pagination. May not be used with last. |
before -
Cursor
|
Read all values in the set before (above) this cursor. |
after -
Cursor
|
Read all values in the set after (below) this cursor. |
orderBy -
[BlocksOrderBy!]
|
The method to use when ordering Block. Default = [PRIMARY_KEY_ASC] |
condition -
BlockCondition
|
A condition to be used in determining which values should be returned by the collection. |
Example
Query
query allBlocks(
$first: Int,
$last: Int,
$offset: Int,
$before: Cursor,
$after: Cursor,
$orderBy: [BlocksOrderBy!],
$condition: BlockCondition
) {
allBlocks(
first: $first,
last: $last,
offset: $offset,
before: $before,
after: $after,
orderBy: $orderBy,
condition: $condition
) {
nodes {
...BlockFragment
}
edges {
...BlocksEdgeFragment
}
pageInfo {
...PageInfoFragment
}
totalCount
}
}
Variables
{
"first": 123,
"last": 123,
"offset": 987,
"before": Cursor,
"after": Cursor,
"orderBy": ["PRIMARY_KEY_ASC"],
"condition": BlockCondition
}
Response
{
"data": {
"allBlocks": {
"nodes": [Block],
"edges": [BlocksEdge],
"pageInfo": PageInfo,
"totalCount": 123
}
}
}
allLogs
Description
Reads and enables pagination through a set of Log.
Response
Returns a
LogsConnection
Arguments
| Name | Description |
|---|---|
first -
Int
|
Only read the first n values of the set. |
last -
Int
|
Only read the last n values of the set. |
offset -
Int
|
Skip the first n values from our after cursor, an alternative to cursor based pagination. May not be used with last. |
before -
Cursor
|
Read all values in the set before (above) this cursor. |
after -
Cursor
|
Read all values in the set after (below) this cursor. |
orderBy -
[LogsOrderBy!]
|
The method to use when ordering Log. Default = [PRIMARY_KEY_ASC] |
condition -
LogCondition
|
A condition to be used in determining which values should be returned by the collection. |
Example
Query
query allLogs(
$first: Int,
$last: Int,
$offset: Int,
$before: Cursor,
$after: Cursor,
$orderBy: [LogsOrderBy!],
$condition: LogCondition
) {
allLogs(
first: $first,
last: $last,
offset: $offset,
before: $before,
after: $after,
orderBy: $orderBy,
condition: $condition
) {
nodes {
...LogFragment
}
edges {
...LogsEdgeFragment
}
pageInfo {
...PageInfoFragment
}
totalCount
}
}
Variables
{
"first": 123,
"last": 123,
"offset": 123,
"before": Cursor,
"after": Cursor,
"orderBy": ["PRIMARY_KEY_ASC"],
"condition": LogCondition
}
Response
{
"data": {
"allLogs": {
"nodes": [Log],
"edges": [LogsEdge],
"pageInfo": PageInfo,
"totalCount": 123
}
}
}
allTokenTransfers
Description
Reads and enables pagination through a set of TokenTransfer.
Response
Returns a
TokenTransfersConnection
Arguments
| Name | Description |
|---|---|
first -
Int
|
Only read the first n values of the set. |
last -
Int
|
Only read the last n values of the set. |
offset -
Int
|
Skip the first n values from our after cursor, an alternative to cursor based pagination. May not be used with last. |
before -
Cursor
|
Read all values in the set before (above) this cursor. |
after -
Cursor
|
Read all values in the set after (below) this cursor. |
orderBy -
[TokenTransfersOrderBy!]
|
The method to use when ordering TokenTransfer. Default = [PRIMARY_KEY_ASC] |
condition -
TokenTransferCondition
|
A condition to be used in determining which values should be returned by the collection. |
Example
Query
query allTokenTransfers(
$first: Int,
$last: Int,
$offset: Int,
$before: Cursor,
$after: Cursor,
$orderBy: [TokenTransfersOrderBy!],
$condition: TokenTransferCondition
) {
allTokenTransfers(
first: $first,
last: $last,
offset: $offset,
before: $before,
after: $after,
orderBy: $orderBy,
condition: $condition
) {
nodes {
...TokenTransferFragment
}
edges {
...TokenTransfersEdgeFragment
}
pageInfo {
...PageInfoFragment
}
totalCount
}
}
Variables
{
"first": 987,
"last": 123,
"offset": 123,
"before": Cursor,
"after": Cursor,
"orderBy": ["PRIMARY_KEY_ASC"],
"condition": TokenTransferCondition
}
Response
{
"data": {
"allTokenTransfers": {
"nodes": [TokenTransfer],
"edges": [TokenTransfersEdge],
"pageInfo": PageInfo,
"totalCount": 987
}
}
}
allTransactions
Description
Reads and enables pagination through a set of Transaction.
Response
Returns a
TransactionsConnection
Arguments
| Name | Description |
|---|---|
first -
Int
|
Only read the first n values of the set. |
last -
Int
|
Only read the last n values of the set. |
offset -
Int
|
Skip the first n values from our after cursor, an alternative to cursor based pagination. May not be used with last. |
before -
Cursor
|
Read all values in the set before (above) this cursor. |
after -
Cursor
|
Read all values in the set after (below) this cursor. |
orderBy -
[TransactionsOrderBy!]
|
The method to use when ordering Transaction. Default = [PRIMARY_KEY_ASC] |
condition -
TransactionCondition
|
A condition to be used in determining which values should be returned by the collection. |
Example
Query
query allTransactions(
$first: Int,
$last: Int,
$offset: Int,
$before: Cursor,
$after: Cursor,
$orderBy: [TransactionsOrderBy!],
$condition: TransactionCondition
) {
allTransactions(
first: $first,
last: $last,
offset: $offset,
before: $before,
after: $after,
orderBy: $orderBy,
condition: $condition
) {
nodes {
...TransactionFragment
}
edges {
...TransactionsEdgeFragment
}
pageInfo {
...PageInfoFragment
}
totalCount
}
}
Variables
{
"first": 123,
"last": 987,
"offset": 987,
"before": Cursor,
"after": Cursor,
"orderBy": ["PRIMARY_KEY_ASC"],
"condition": TransactionCondition
}
Response
{
"data": {
"allTransactions": {
"nodes": [Transaction],
"edges": [TransactionsEdge],
"pageInfo": PageInfo,
"totalCount": 123
}
}
}
block
Description
Reads a single Block using its globally unique ID.
Response
Returns a
Block
Arguments
| Name | Description |
|---|---|
nodeId -
ID!
|
The globally unique ID to be used in selecting a single Block. |
Example
Query
query block($nodeId: ID!) {
block(nodeId: $nodeId) {
nodeId
number
hash
parentHash
nonce
sha3Uncles
logsBloom
transactionsRoot
stateRoot
receiptsRoot
miner
difficulty
totalDifficulty
size
extraData
gasLimit
gasUsed
timestamp
transactionCount
baseFeePerGas
}
}
Variables
{"nodeId": 4}
Response
{
"data": {
"block": {
"nodeId": 4,
"number": {},
"hash": "xyz789",
"parentHash": "xyz789",
"nonce": "abc123",
"sha3Uncles": "xyz789",
"logsBloom": "xyz789",
"transactionsRoot": "xyz789",
"stateRoot": "abc123",
"receiptsRoot": "abc123",
"miner": "xyz789",
"difficulty": BigFloat,
"totalDifficulty": BigFloat,
"size": {},
"extraData": "abc123",
"gasLimit": {},
"gasUsed": {},
"timestamp": {},
"transactionCount": {},
"baseFeePerGas": {}
}
}
}
blockByHash
Example
Query
query blockByHash($hash: String!) {
blockByHash(hash: $hash) {
nodeId
number
hash
parentHash
nonce
sha3Uncles
logsBloom
transactionsRoot
stateRoot
receiptsRoot
miner
difficulty
totalDifficulty
size
extraData
gasLimit
gasUsed
timestamp
transactionCount
baseFeePerGas
}
}
Variables
{"hash": "abc123"}
Response
{
"data": {
"blockByHash": {
"nodeId": "4",
"number": {},
"hash": "xyz789",
"parentHash": "abc123",
"nonce": "xyz789",
"sha3Uncles": "xyz789",
"logsBloom": "abc123",
"transactionsRoot": "abc123",
"stateRoot": "abc123",
"receiptsRoot": "xyz789",
"miner": "abc123",
"difficulty": BigFloat,
"totalDifficulty": BigFloat,
"size": {},
"extraData": "xyz789",
"gasLimit": {},
"gasUsed": {},
"timestamp": {},
"transactionCount": {},
"baseFeePerGas": {}
}
}
}
log
Description
Reads a single Log using its globally unique ID.
Response
Returns a
Log
Arguments
| Name | Description |
|---|---|
nodeId -
ID!
|
The globally unique ID to be used in selecting a single Log. |
Example
Query
query log($nodeId: ID!) {
log(nodeId: $nodeId) {
nodeId
logIndex
transactionHash
transactionIndex
address
data
topic0
topic1
topic2
topic3
blockNumber
blockHash
blockTimestamp
}
}
Variables
{"nodeId": "4"}
Response
{
"data": {
"log": {
"nodeId": "4",
"logIndex": {},
"transactionHash": "xyz789",
"transactionIndex": {},
"address": "xyz789",
"data": "xyz789",
"topic0": "xyz789",
"topic1": "xyz789",
"topic2": "xyz789",
"topic3": "abc123",
"blockNumber": {},
"blockHash": "xyz789",
"blockTimestamp": {}
}
}
}
logByTransactionHashAndLogIndex
Example
Query
query logByTransactionHashAndLogIndex(
$transactionHash: String!,
$logIndex: BigInt!
) {
logByTransactionHashAndLogIndex(
transactionHash: $transactionHash,
logIndex: $logIndex
) {
nodeId
logIndex
transactionHash
transactionIndex
address
data
topic0
topic1
topic2
topic3
blockNumber
blockHash
blockTimestamp
}
}
Variables
{
"transactionHash": "abc123",
"logIndex": {}
}
Response
{
"data": {
"logByTransactionHashAndLogIndex": {
"nodeId": 4,
"logIndex": {},
"transactionHash": "xyz789",
"transactionIndex": {},
"address": "xyz789",
"data": "xyz789",
"topic0": "abc123",
"topic1": "xyz789",
"topic2": "abc123",
"topic3": "abc123",
"blockNumber": {},
"blockHash": "xyz789",
"blockTimestamp": {}
}
}
}
node
Description
Fetches an object given its globally unique ID.
nodeId
Description
The root query type must be a Node to work well with Relay 1 mutations. This just resolves to query.
Response
Returns an
ID!
Example
Query
query nodeId {
nodeId
}
Response
{"data": {"nodeId": "4"}}
query
Description
Exposes the root query type nested one level down. This is helpful for Relay 1 which can only query top level fields if they are in a particular form.
Response
Returns a
Query!
Example
Query
query query {
query {
query {
...QueryFragment
}
nodeId
node {
...NodeFragment
}
allBlocks {
...BlocksConnectionFragment
}
allLogs {
...LogsConnectionFragment
}
allTokenTransfers {
...TokenTransfersConnectionFragment
}
allTransactions {
...TransactionsConnectionFragment
}
blockByHash {
...BlockFragment
}
logByTransactionHashAndLogIndex {
...LogFragment
}
tokenTransferByTransactionHashAndLogIndex {
...TokenTransferFragment
}
transactionByHash {
...TransactionFragment
}
block {
...BlockFragment
}
log {
...LogFragment
}
tokenTransfer {
...TokenTransferFragment
}
transaction {
...TransactionFragment
}
}
}
Response
{
"data": {
"query": {
"query": Query,
"nodeId": 4,
"node": Node,
"allBlocks": BlocksConnection,
"allLogs": LogsConnection,
"allTokenTransfers": TokenTransfersConnection,
"allTransactions": TransactionsConnection,
"blockByHash": Block,
"logByTransactionHashAndLogIndex": Log,
"tokenTransferByTransactionHashAndLogIndex": TokenTransfer,
"transactionByHash": Transaction,
"block": Block,
"log": Log,
"tokenTransfer": TokenTransfer,
"transaction": Transaction
}
}
}
tokenTransfer
Description
Reads a single TokenTransfer using its globally unique ID.
Response
Returns a
TokenTransfer
Arguments
| Name | Description |
|---|---|
nodeId -
ID!
|
The globally unique ID to be used in selecting a single TokenTransfer. |
Example
Query
query tokenTransfer($nodeId: ID!) {
tokenTransfer(nodeId: $nodeId) {
nodeId
tokenAddress
fromAddress
toAddress
value
transactionHash
logIndex
blockNumber
blockHash
blockTimestamp
}
}
Variables
{"nodeId": "4"}
Response
{
"data": {
"tokenTransfer": {
"nodeId": "4",
"tokenAddress": "xyz789",
"fromAddress": "abc123",
"toAddress": "xyz789",
"value": BigFloat,
"transactionHash": "xyz789",
"logIndex": {},
"blockNumber": {},
"blockHash": "xyz789",
"blockTimestamp": {}
}
}
}
tokenTransferByTransactionHashAndLogIndex
Response
Returns a
TokenTransfer
Example
Query
query tokenTransferByTransactionHashAndLogIndex(
$transactionHash: String!,
$logIndex: BigInt!
) {
tokenTransferByTransactionHashAndLogIndex(
transactionHash: $transactionHash,
logIndex: $logIndex
) {
nodeId
tokenAddress
fromAddress
toAddress
value
transactionHash
logIndex
blockNumber
blockHash
blockTimestamp
}
}
Variables
{
"transactionHash": "xyz789",
"logIndex": {}
}
Response
{
"data": {
"tokenTransferByTransactionHashAndLogIndex": {
"nodeId": "4",
"tokenAddress": "abc123",
"fromAddress": "xyz789",
"toAddress": "xyz789",
"value": BigFloat,
"transactionHash": "abc123",
"logIndex": {},
"blockNumber": {},
"blockHash": "abc123",
"blockTimestamp": {}
}
}
}
transaction
Description
Reads a single Transaction using its globally unique ID.
Response
Returns a
Transaction
Arguments
| Name | Description |
|---|---|
nodeId -
ID!
|
The globally unique ID to be used in selecting a single Transaction. |
Example
Query
query transaction($nodeId: ID!) {
transaction(nodeId: $nodeId) {
nodeId
hash
nonce
blockHash
blockNumber
transactionIndex
fromAddress
toAddress
value
gas
gasPrice
input
blockTimestamp
maxFeePerGas
maxPriorityFeePerGas
transactionType
receiptCumulativeGasUsed
receiptGasUsed
receiptContractAddress
receiptRoot
receiptStatus
receiptEffectiveGasPrice
}
}
Variables
{"nodeId": "4"}
Response
{
"data": {
"transaction": {
"nodeId": 4,
"hash": "abc123",
"nonce": {},
"blockHash": "xyz789",
"blockNumber": {},
"transactionIndex": {},
"fromAddress": "abc123",
"toAddress": "xyz789",
"value": BigFloat,
"gas": {},
"gasPrice": {},
"input": "xyz789",
"blockTimestamp": {},
"maxFeePerGas": {},
"maxPriorityFeePerGas": {},
"transactionType": {},
"receiptCumulativeGasUsed": {},
"receiptGasUsed": {},
"receiptContractAddress": "abc123",
"receiptRoot": "abc123",
"receiptStatus": {},
"receiptEffectiveGasPrice": {}
}
}
}
transactionByHash
Response
Returns a
Transaction
Arguments
| Name | Description |
|---|---|
hash -
String!
|
Example
Query
query transactionByHash($hash: String!) {
transactionByHash(hash: $hash) {
nodeId
hash
nonce
blockHash
blockNumber
transactionIndex
fromAddress
toAddress
value
gas
gasPrice
input
blockTimestamp
maxFeePerGas
maxPriorityFeePerGas
transactionType
receiptCumulativeGasUsed
receiptGasUsed
receiptContractAddress
receiptRoot
receiptStatus
receiptEffectiveGasPrice
}
}
Variables
{"hash": "abc123"}
Response
{
"data": {
"transactionByHash": {
"nodeId": 4,
"hash": "xyz789",
"nonce": {},
"blockHash": "abc123",
"blockNumber": {},
"transactionIndex": {},
"fromAddress": "abc123",
"toAddress": "xyz789",
"value": BigFloat,
"gas": {},
"gasPrice": {},
"input": "abc123",
"blockTimestamp": {},
"maxFeePerGas": {},
"maxPriorityFeePerGas": {},
"transactionType": {},
"receiptCumulativeGasUsed": {},
"receiptGasUsed": {},
"receiptContractAddress": "xyz789",
"receiptRoot": "abc123",
"receiptStatus": {},
"receiptEffectiveGasPrice": {}
}
}
}
Types
BigFloat
Description
A floating point number that requires more precision than IEEE 754 binary 64
Example
BigFloat
BigInt
Description
A signed eight-byte integer. The upper big integer values are greater than the max value for a JavaScript number. Therefore all big integers will be output as strings and not numbers.
Example
{}
Block
Fields
| Field Name | Description |
|---|---|
nodeId -
ID!
|
A globally unique identifier. Can be used in various places throughout the system to identify this single value. |
number -
BigInt
|
|
hash -
String!
|
|
parentHash -
String
|
|
nonce -
String
|
|
sha3Uncles -
String
|
|
logsBloom -
String
|
|
transactionsRoot -
String
|
|
stateRoot -
String
|
|
receiptsRoot -
String
|
|
miner -
String
|
|
difficulty -
BigFloat
|
|
totalDifficulty -
BigFloat
|
|
size -
BigInt
|
|
extraData -
String
|
|
gasLimit -
BigInt
|
|
gasUsed -
BigInt
|
|
timestamp -
BigInt
|
|
transactionCount -
BigInt
|
|
baseFeePerGas -
BigInt
|
Example
{
"nodeId": 4,
"number": {},
"hash": "abc123",
"parentHash": "xyz789",
"nonce": "xyz789",
"sha3Uncles": "xyz789",
"logsBloom": "abc123",
"transactionsRoot": "xyz789",
"stateRoot": "xyz789",
"receiptsRoot": "abc123",
"miner": "xyz789",
"difficulty": BigFloat,
"totalDifficulty": BigFloat,
"size": {},
"extraData": "abc123",
"gasLimit": {},
"gasUsed": {},
"timestamp": {},
"transactionCount": {},
"baseFeePerGas": {}
}
BlockCondition
Description
A condition to be used against Block object types. All fields are tested for equality and combined with a logical ‘and.’
Fields
| Input Field | Description |
|---|---|
number -
BigInt
|
Checks for equality with the object’s |
hash -
String
|
Checks for equality with the object’s |
parentHash -
String
|
Checks for equality with the object’s |
nonce -
String
|
Checks for equality with the object’s |
sha3Uncles -
String
|
Checks for equality with the object’s |
logsBloom -
String
|
Checks for equality with the object’s |
transactionsRoot -
String
|
Checks for equality with the object’s |
stateRoot -
String
|
Checks for equality with the object’s |
receiptsRoot -
String
|
Checks for equality with the object’s |
miner -
String
|
Checks for equality with the object’s |
difficulty -
BigFloat
|
Checks for equality with the object’s |
totalDifficulty -
BigFloat
|
Checks for equality with the object’s |
size -
BigInt
|
Checks for equality with the object’s |
extraData -
String
|
Checks for equality with the object’s |
gasLimit -
BigInt
|
Checks for equality with the object’s |
gasUsed -
BigInt
|
Checks for equality with the object’s |
timestamp -
BigInt
|
Checks for equality with the object’s |
transactionCount -
BigInt
|
Checks for equality with the object’s |
baseFeePerGas -
BigInt
|
Checks for equality with the object’s |
Example
{
"number": {},
"hash": "abc123",
"parentHash": "xyz789",
"nonce": "abc123",
"sha3Uncles": "abc123",
"logsBloom": "xyz789",
"transactionsRoot": "xyz789",
"stateRoot": "abc123",
"receiptsRoot": "abc123",
"miner": "xyz789",
"difficulty": BigFloat,
"totalDifficulty": BigFloat,
"size": {},
"extraData": "abc123",
"gasLimit": {},
"gasUsed": {},
"timestamp": {},
"transactionCount": {},
"baseFeePerGas": {}
}
BlocksConnection
Description
A connection to a list of Block values.
Fields
| Field Name | Description |
|---|---|
nodes -
[Block]!
|
A list of Block objects. |
edges -
[BlocksEdge!]!
|
A list of edges which contains the Block and cursor to aid in pagination. |
pageInfo -
PageInfo!
|
Information to aid in pagination. |
totalCount -
Int!
|
The count of
all Block you could get from the connection. |
Example
{
"nodes": [Block],
"edges": [BlocksEdge],
"pageInfo": PageInfo,
"totalCount": 987
}
BlocksEdge
BlocksOrderBy
Description
Methods to use when ordering Block.
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
"NATURAL"
Boolean
Description
The Boolean scalar type represents true or false.
Cursor
Description
A location in a connection that can be used for resuming pagination.
Example
Cursor
ID
Description
The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.
Example
"4"
Int
Description
The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
Example
123
Log
Fields
| Field Name | Description |
|---|---|
nodeId -
ID!
|
A globally unique identifier. Can be used in various places throughout the system to identify this single value. |
logIndex -
BigInt!
|
|
transactionHash -
String!
|
|
transactionIndex -
BigInt
|
|
address -
String
|
|
data -
String
|
|
topic0 -
String
|
|
topic1 -
String
|
|
topic2 -
String
|
|
topic3 -
String
|
|
blockNumber -
BigInt
|
|
blockHash -
String
|
|
blockTimestamp -
BigInt
|
Example
{
"nodeId": "4",
"logIndex": {},
"transactionHash": "abc123",
"transactionIndex": {},
"address": "xyz789",
"data": "xyz789",
"topic0": "abc123",
"topic1": "xyz789",
"topic2": "abc123",
"topic3": "abc123",
"blockNumber": {},
"blockHash": "xyz789",
"blockTimestamp": {}
}
LogCondition
Description
A condition to be used against Log object types. All fields are tested for equality and combined with a logical ‘and.’
Fields
| Input Field | Description |
|---|---|
logIndex -
BigInt
|
Checks for equality with the object’s |
transactionHash -
String
|
Checks for equality with the object’s |
transactionIndex -
BigInt
|
Checks for equality with the object’s |
address -
String
|
Checks for equality with the object’s |
data -
String
|
Checks for equality with the object’s |
topic0 -
String
|
Checks for equality with the object’s |
topic1 -
String
|
Checks for equality with the object’s |
topic2 -
String
|
Checks for equality with the object’s |
topic3 -
String
|
Checks for equality with the object’s |
blockNumber -
BigInt
|
Checks for equality with the object’s |
blockHash -
String
|
Checks for equality with the object’s |
blockTimestamp -
BigInt
|
Checks for equality with the object’s |
Example
{
"logIndex": {},
"transactionHash": "xyz789",
"transactionIndex": {},
"address": "xyz789",
"data": "abc123",
"topic0": "xyz789",
"topic1": "xyz789",
"topic2": "abc123",
"topic3": "xyz789",
"blockNumber": {},
"blockHash": "abc123",
"blockTimestamp": {}
}
LogsConnection
Description
A connection to a list of Log values.
Fields
| Field Name | Description |
|---|---|
nodes -
[Log]!
|
A list of Log objects. |
edges -
[LogsEdge!]!
|
A list of edges which contains the Log and cursor to aid in pagination. |
pageInfo -
PageInfo!
|
Information to aid in pagination. |
totalCount -
Int!
|
The count of
all Log you could get from the connection. |
Example
{
"nodes": [Log],
"edges": [LogsEdge],
"pageInfo": PageInfo,
"totalCount": 123
}
LogsEdge
LogsOrderBy
Description
Methods to use when ordering Log.
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
"NATURAL"
Node
Description
An object with a globally unique ID.
Fields
| Field Name | Description |
|---|---|
nodeId -
ID!
|
A globally unique identifier. Can be used in various places throughout the system to identify this single value. |
Possible Types
| Node Types |
|---|
Example
{"nodeId": "4"}
PageInfo
Description
Information about pagination in a connection.
Fields
| Field Name | Description |
|---|---|
hasNextPage -
Boolean!
|
When paginating forwards, are there more items? |
hasPreviousPage -
Boolean!
|
When paginating backwards, are there more items? |
startCursor -
Cursor
|
When paginating backwards, the cursor to continue. |
endCursor -
Cursor
|
When paginating forwards, the cursor to continue. |
Example
{
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": Cursor,
"endCursor": Cursor
}
String
Description
The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
Example
"xyz789"
TokenTransfer
Fields
| Field Name | Description |
|---|---|
nodeId -
ID!
|
A globally unique identifier. Can be used in various places throughout the system to identify this single value. |
tokenAddress -
String
|
|
fromAddress -
String
|
|
toAddress -
String
|
|
value -
BigFloat
|
|
transactionHash -
String!
|
|
logIndex -
BigInt!
|
|
blockNumber -
BigInt
|
|
blockHash -
String
|
|
blockTimestamp -
BigInt
|
Example
{
"nodeId": "4",
"tokenAddress": "abc123",
"fromAddress": "xyz789",
"toAddress": "xyz789",
"value": BigFloat,
"transactionHash": "xyz789",
"logIndex": {},
"blockNumber": {},
"blockHash": "xyz789",
"blockTimestamp": {}
}
TokenTransferCondition
Description
A condition to be used against TokenTransfer object types. All fields are tested for equality and combined with a logical ‘and.’
Fields
| Input Field | Description |
|---|---|
tokenAddress -
String
|
Checks for equality with the object’s |
fromAddress -
String
|
Checks for equality with the object’s |
toAddress -
String
|
Checks for equality with the object’s |
value -
BigFloat
|
Checks for equality with the object’s |
transactionHash -
String
|
Checks for equality with the object’s |
logIndex -
BigInt
|
Checks for equality with the object’s |
blockNumber -
BigInt
|
Checks for equality with the object’s |
blockHash -
String
|
Checks for equality with the object’s |
blockTimestamp -
BigInt
|
Checks for equality with the object’s |
Example
{
"tokenAddress": "xyz789",
"fromAddress": "abc123",
"toAddress": "xyz789",
"value": BigFloat,
"transactionHash": "abc123",
"logIndex": {},
"blockNumber": {},
"blockHash": "abc123",
"blockTimestamp": {}
}
TokenTransfersConnection
Description
A connection to a list of TokenTransfer values.
Fields
| Field Name | Description |
|---|---|
nodes -
[TokenTransfer]!
|
A list of TokenTransfer objects. |
edges -
[TokenTransfersEdge!]!
|
A list of edges which contains the TokenTransfer and cursor to aid in pagination. |
pageInfo -
PageInfo!
|
Information to aid in pagination. |
totalCount -
Int!
|
The count of
all TokenTransfer you could get from the connection. |
Example
{
"nodes": [TokenTransfer],
"edges": [TokenTransfersEdge],
"pageInfo": PageInfo,
"totalCount": 123
}
TokenTransfersEdge
Description
A TokenTransfer edge in the connection.
Fields
| Field Name | Description |
|---|---|
cursor -
Cursor
|
A cursor for use in pagination. |
node -
TokenTransfer
|
The TokenTransfer at the end of the edge. |
Example
{
"cursor": Cursor,
"node": TokenTransfer
}
TokenTransfersOrderBy
Description
Methods to use when ordering TokenTransfer.
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
"NATURAL"
Transaction
Fields
| Field Name | Description |
|---|---|
nodeId -
ID!
|
A globally unique identifier. Can be used in various places throughout the system to identify this single value. |
hash -
String!
|
|
nonce -
BigInt
|
|
blockHash -
String
|
|
blockNumber -
BigInt
|
|
transactionIndex -
BigInt
|
|
fromAddress -
String
|
|
toAddress -
String
|
|
value -
BigFloat
|
|
gas -
BigInt
|
|
gasPrice -
BigInt
|
|
input -
String
|
|
blockTimestamp -
BigInt
|
|
maxFeePerGas -
BigInt
|
|
maxPriorityFeePerGas -
BigInt
|
|
transactionType -
BigInt
|
|
receiptCumulativeGasUsed -
BigInt
|
|
receiptGasUsed -
BigInt
|
|
receiptContractAddress -
String
|
|
receiptRoot -
String
|
|
receiptStatus -
BigInt
|
|
receiptEffectiveGasPrice -
BigInt
|
Example
{
"nodeId": 4,
"hash": "abc123",
"nonce": {},
"blockHash": "abc123",
"blockNumber": {},
"transactionIndex": {},
"fromAddress": "abc123",
"toAddress": "xyz789",
"value": BigFloat,
"gas": {},
"gasPrice": {},
"input": "abc123",
"blockTimestamp": {},
"maxFeePerGas": {},
"maxPriorityFeePerGas": {},
"transactionType": {},
"receiptCumulativeGasUsed": {},
"receiptGasUsed": {},
"receiptContractAddress": "xyz789",
"receiptRoot": "abc123",
"receiptStatus": {},
"receiptEffectiveGasPrice": {}
}
TransactionCondition
Description
A condition to be used against Transaction object types. All fields are tested for equality and combined with a logical ‘and.’
Fields
| Input Field | Description |
|---|---|
hash -
String
|
Checks for equality with the object’s |
nonce -
BigInt
|
Checks for equality with the object’s |
blockHash -
String
|
Checks for equality with the object’s |
blockNumber -
BigInt
|
Checks for equality with the object’s |
transactionIndex -
BigInt
|
Checks for equality with the object’s |
fromAddress -
String
|
Checks for equality with the object’s |
toAddress -
String
|
Checks for equality with the object’s |
value -
BigFloat
|
Checks for equality with the object’s |
gas -
BigInt
|
Checks for equality with the object’s |
gasPrice -
BigInt
|
Checks for equality with the object’s |
input -
String
|
Checks for equality with the object’s |
blockTimestamp -
BigInt
|
Checks for equality with the object’s |
maxFeePerGas -
BigInt
|
Checks for equality with the object’s |
maxPriorityFeePerGas -
BigInt
|
Checks for equality with the object’s |
transactionType -
BigInt
|
Checks for equality with the object’s |
receiptCumulativeGasUsed -
BigInt
|
Checks for equality with the object’s |
receiptGasUsed -
BigInt
|
Checks for equality with the object’s |
receiptContractAddress -
String
|
Checks for equality with the object’s |
receiptRoot -
String
|
Checks for equality with the object’s |
receiptStatus -
BigInt
|
Checks for equality with the object’s |
receiptEffectiveGasPrice -
BigInt
|
Checks for equality with the object’s |
Example
{
"hash": "xyz789",
"nonce": {},
"blockHash": "xyz789",
"blockNumber": {},
"transactionIndex": {},
"fromAddress": "xyz789",
"toAddress": "abc123",
"value": BigFloat,
"gas": {},
"gasPrice": {},
"input": "xyz789",
"blockTimestamp": {},
"maxFeePerGas": {},
"maxPriorityFeePerGas": {},
"transactionType": {},
"receiptCumulativeGasUsed": {},
"receiptGasUsed": {},
"receiptContractAddress": "xyz789",
"receiptRoot": "xyz789",
"receiptStatus": {},
"receiptEffectiveGasPrice": {}
}
TransactionsConnection
Description
A connection to a list of Transaction values.
Fields
| Field Name | Description |
|---|---|
nodes -
[Transaction]!
|
A list of Transaction objects. |
edges -
[TransactionsEdge!]!
|
A list of edges which contains the Transaction and cursor to aid in pagination. |
pageInfo -
PageInfo!
|
Information to aid in pagination. |
totalCount -
Int!
|
The count of
all Transaction you could get from the connection. |
Example
{
"nodes": [Transaction],
"edges": [TransactionsEdge],
"pageInfo": PageInfo,
"totalCount": 123
}
TransactionsEdge
Description
A Transaction edge in the connection.
Fields
| Field Name | Description |
|---|---|
cursor -
Cursor
|
A cursor for use in pagination. |
node -
Transaction
|
The Transaction at the end of the edge. |
Example
{
"cursor": Cursor,
"node": Transaction
}
TransactionsOrderBy
Description
Methods to use when ordering Transaction.
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
"NATURAL"