Skip to content

v2.2.0

Compare
Choose a tag to compare
@wpdas wpdas released this 12 Aug 19:30
· 9 commits to main since this release
63823dd

Example of usage:

import naxios, { isClient } from "@wpdas/naxios";

const naxiosInstance = new naxios({
  contractId: CONTRACT_ID,
  network: 'mainnet',
});

/**
 * NEAR RPC API
 */
const rpcApi = naxiosInstance.rpcApi();

rpcApi
    .query({
      request_type: "view_account",
      finality: "final",
      account_id: "wendersonpires.near",
    })
    .then((data) => console.log("Account data:", data))
    .catch((err) => console.log(err));