GraphiQL
GraphiQL is a fantastic tool to help you get information quickly with various GraphiQL and gives you the ability to explore a schema using GraphQL in an efficient way.
GraphQL is an open-source data query and manipulation language for APIs, and a runtime for fulfilling queries with existing data that provides a powerful and flexible approach to developing web APIs.
There are 2 main query types in the GraphQL schema for the Palm network:
- Query
- Subscription
Query Types | Details | Fields | Arguments |
address | Gets an address by | contractCode: Data fetchedCoinBalance: Wei fetchedCoinBalanceBlockNumber: Int hash: AddressHash smartContract: SmartContract transactions( after: String before: String count: Int first: Int last: Int): TransactionConnection | |
addresses | Gets addresses by address hash type | same as above ^ | |
block | Gets a block by number. | consensus: Boolean difficulty: Decimal gasLimit: Decimal gasUsed: Decimal hash: FullHash minerHash: AddressHash nonce: NonceHash number: Int parentHash: FullHash size: Int timestamp: DateTime totalDifficulty: Decimal | |
tokenTransfers | Gets token transfers by token contract address hash. | | after: String before: String count: Int first: Int last: Int tokenContractAddressHash: AddressHash! |
You can use the transaction query to get a transaction's info using a transaction hash.
You can use the block query to get a block's info using the block number.
Subscriptions are useful for notified your client in realtime when the back-end data changes. Unlike queries, subscriptions are long lasting operations that can change their result over time because they maintain an active connection with your GraphQL server.