Skip to main content

Transactions

A set of queries related to transactions to get your started

Get Latest Transactions

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

Get Transactions 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 } };getTransactionsById = async (transactionId) => {    try {        const transactionsUrl = `${restApiUrl}/transactions/${transactionId}`;        const response = await axios.get(transactionsUrl, body);        return response;    } catch(e) {        console.error(e);    }}