Skip to main content

Get Events Config

Retrieve the current items and config available.

Request
POST https://api.arkhia.io/events/hedera/settings/:item/:config/:x-api-key

HEADERS
x-api-secret | string | The Api Secret retrieved from an Arkhia project

PARAMETERS
item | string | `contract` or `ethtopic`
config | string | `events`
x-api-key | string | The Api Key retrieved from an Arkhia project

BODY PAYLOAD
item_id | string | `contract` or `account` -> hedera_item_id , `ethtopic` as an eth topic
network_id | number | `295` (mainnet) or `296` (testnet)
Response
  • config_type : Type of configuration fetched.
  • config_object : Events configuration and the one to be updated.
 {
status: true,
response: {
{
item_id: '0.0.3931201',
network_id: 295,
item_type: 'contract',
config_type: 'events',
config_object: [
{
eventId: '0.0.3931201_Event_1',
eventName: '0.0.3931201_event_1',
eventRules: []
}
],
config_object_template: '<link_here_soon>'
}
}
}

Code sample

Get Node Status

const axios = require('axios');const restApiUrl = `https://api.arkhia.io/events/hedera/settings/contract/events/<YOUR_ARKHIA_API_KEY>`;const apiSecret = `<YOUR_ARKHIA_API_SECRET>`;const headers = { headers: { "x-api-secret": apiSecret } };getUniqueConfig= async () => {    try {        const response = await axios.post(restApiUrl, { scoutSettings: bodyPayload }, headers);        return response;    } catch(e) {        console.error(e);    }}