Skip to main content

Accounts

A set of queries related to accounts to get your started

Get Account By Id

const axios = require('axios');const apiKey = `<YOUR_ARKHIA_API_KEY>`;const restApiUrl = `<YOUR_ARKHIA_REST_URL>`;const body = { headers: { "x-api-key": apiKey } };getAccountById = async (accountId) => {    try {        const accountUrl = `${restApiUrl}/accounts/${accountId}`;        const response = await axios.get(accountUrl, body);        return response;    } catch(e) {        console.error(e);    }}