website logo
Join the CommunityContact Us
Navigate through spaces
Main
⌘K
Palm Network Developer Portal
The Palm Network
Submit an Article
Network Details
Validators
Get Started
Get PALM Tokens
Gas Fees
Connect to Palm network
Run a Transaction Node
How To Tutorials
MetaMask Wallet Setup
Deploy NFT Contracts
Verifying NFT Contracts
Mint NFTs with Hardhat
Bridge
Use the Bridge
Integrate With the Bridge
Bridge Component Addresses
Deprecated
Use Supported Tools
Block Explorer
Moralis
The Graph
Covalent API
Docs powered by archbee 
16min

GraphiQL

Overview

GraphiQL is a fantastic tool to help you get information quickly with various queries and gives you the ability to explore a schema using GraphQL in an efficient way.

What is GraphQL?

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.

Query Types

There are 2 main query types in the GraphQL schema for the Palm network:

  1. Query
  2. Subscription

Query | Fetch Data

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!

Example | Transaction

You can use the transaction query to get a transaction's info using a transaction hash.

Example | Block

You can use the block query to get a block's info using the block number.

Subscription | Subscribe to Real-time Data

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.

Example | Token Transfers

GraphQL
|

🏁 Additional Resources

  • Example Queries 
  • Example Query | Retrieve Transaction for a Specific Address
Updated 06 Jan 2023
Did this page help you?
Yes
No
UP NEXT
RPC
Docs powered by archbee 
TABLE OF CONTENTS
Overview
What is GraphQL?
Query Types
Query | Fetch Data
Example | Transaction
Example | Block
Subscription | Subscribe to Real-time Data
Example | Token Transfers
🏁 Additional Resources