Chain Explorer API
Last updated
Last updated
Liberland is running a chain indexer & explorer with publicly available GraphQL API. This API allows fetching & filtering historical information about the chain, especially data about past events and extrinsics (transactions).
For interacting with the API, you can use one of many or run raw HTTP queries.
API & GraphQL Playground endpoints:
Liberland Mainnet: https://archive.mainnet.liberland.org/
Bastiat (Liberland Testnet): https://archive.testchain.liberland.org/graphql
Visit the to see up-to-date reference schema and docs.
Queries can use first
param to limit the amount of returned entries and after
param to get next page of data. Use hasNextPage
and endCursor
values of pageInfo
entity to populate them. You can also use totalCount
value to know total number of entries.
assetTransfer
All transfers of any -based assets. Includes LLM (which is asset 1
), but not LLD. Contains following values:
id
- unique identifier of this transfer - based on blockNumber
and eventIndex
fromId
- Address of the account that sent the asset
toId
- Address of the account that received the asset
value
- Amount of the asset transferred. Subject to decimals config of given asset (so value 1000000000000
for LLM asset means 1 LLM
)
blockId
- Hash of the block containing this transfer
blockNumber
- Number of the block containing this transfer
extrinsicIndex
- Index of the extrinsic in the block that caused this transfer. May be null if transfer wasn't done by extrinsic.
eventIndex
- Index of the transfer event in the block.
block
- Additional details about the block, including timestamp.
merit
All transfers of the LLM token. Contains following values:
id
- unique identifier of this transfer - based on blockNumber
and eventIndex
fromId
- Address of the account that sent the asset
toId
- Address of the account that received the asset
value
- Amount of the asset transferred. Subject to decimals config of given asset (so value 1000000000000
for LLM asset means 1 LLM
)
blockId
- Hash of the block containing this transfer
blockNumber
- Number of the block containing this transfer
extrinsicIndex
- Index of the extrinsic in the block that caused this transfer. May be null if transfer wasn't done by extrinsic.
eventIndex
- Index of the transfer event in the block.
block
- Additional details about the block, including timestamp.
transfer
All transfers of the LLD token. Doesn't include actions like staking or transaction fees. Contains following values:
id
- unique identifier of this transfer - based on blockNumber
and eventIndex
fromId
- Address of the account that sent the asset
toId
- Address of the account that received the asset
value
- Amount of the asset transferred. Subject to decimals (so value 1000000000000
for means 1 LLD
)
blockId
- Hash of the block containing this transfer
blockNumber
- Number of the block containing this transfer
extrinsicIndex
- Index of the extrinsic in the block that caused this transfer. May be null if transfer wasn't done by extrinsic.
eventIndex
- Index of the transfer event in the block.
block
- Additional details about the block, including timestamp.
staking
LLD staking events. Contains following values:
id
- unique identifier of this staking event - based on blockNumber
and eventIndex
userId
- Address of the account that this event refers to
value
- Amount of the asset transferred. Subject to decimals (so value 1000000000000
for means 1 LLD
)
method
- Method that triggered this event. Possible values:
Bonded
- User staked LLD
Withdrawn
- User unstaked LLD
Rewarded
- User got rewarded with interest
blockId
- Hash of the block containing this transfer
blockNumber
- Number of the block containing this transfer
extrinsicIndex
- Index of the extrinsic in the block that caused this transfer. May be null if transfer wasn't done by extrinsic.
eventIndex
- Index of the transfer event in the block.
block
- Additional details about the block, including timestamp.
Includes paging, fetches 50 entries per page.
URL: https://archive.mainnet.liberland.org/
Method: POST
Payload:
To fetch next page, pass endCursor
from previous call as cursor
variable.
URL: https://archive.mainnet.liberland.org/
Method: POST
Payload:
To fetch next page, pass endCursor
from previous call as cursor
variable.
URL: https://archive.mainnet.liberland.org/
Method: POST
Payload:
To fetch next page, pass endCursor
from previous call as cursor
variable.
URL: https://archive.mainnet.liberland.org/
Method: POST
Payload:
To fetch next page, pass endCursor
from previous call as cursor
variable.
URL: https://archive.mainnet.liberland.org/
Method: POST
Payload:
To fetch next page, pass endCursor
from previous call as cursor
variable.
asset
- ID of the asset being transferred. See .