Accounts (Coming soon)
Get Hedera account information using Arkhia's GraphQl service.
info
To get your GraphQl URL and API Key, please refer to the Getting Started Docs:
AccountInfo using ID
info
You can adjust the query body to select the specific fields that you want to fetch. The following example will be fetching all possible account info fields
- Node.js (Axios)
- Curl
var axios = require('axios');var data = JSON.stringify({ query: `{ account(input: { entityId: { shard: 0, realm: 0, num: 98}}) { alias autoRenewAccount { entityId { shard realm num } } autoRenewPeriod balance createdTimestamp declineReward deleted entityId { shard realm num } expirationTimestamp id key maxAutomaticTokenAssociations memo nonce obtainer { entityId { shard realm num } } pendingReward receiverSigRequired stakedAccount { entityId { shard realm num } } stakePeriodStart timestamp { from to } type }}`, variables: {}});var config = { method: 'post',maxBodyLength: Infinity, url: '<YOUR_GRAPHQL_URL>', headers: { 'x-api-key': '<YOUR_API_KEY>', 'Content-Type': 'application/json' }, data : data};axios(config).then(function (response) { console.log(JSON.stringify(response.data));}).catch(function (error) { console.log(error);});
curl --location '<YOUR_GRAPHQL_URL>' \--header 'x-api-key: <YOUR_API_KEY>' \--header 'Content-Type: application/json' \--data '{"query":"{\n account(input: {\n entityId: {\n shard: 0, realm: 0, num: 98}}) {\n alias\n autoRenewAccount {\n entityId {\n shard\n realm\n num\n }\n }\n autoRenewPeriod\n balance\n createdTimestamp\n declineReward\n deleted\n entityId {\n shard\n realm\n num\n }\n expirationTimestamp\n id\n key\n maxAutomaticTokenAssociations\n memo\n nonce\n obtainer {\n entityId {\n shard\n realm\n num\n }\n }\n pendingReward\n receiverSigRequired\n stakedAccount {\n entityId {\n shard\n realm\n num\n }\n }\n stakePeriodStart\n timestamp {\n from\n to\n }\n type\n }\n}","variables":{}}'