SDK

Aarc's core SDK lets you bridge funds and call smart contracts cross-chain.

Getting Started

  1. Install the package and other dependencies.

npm i @aarc-xyz/core
  1. Import the package.

import { AarcCore } from "@aarc-xyz/core-viem";
  1. Get the API KEY

Get your API key from dashboard.aarc.xyz

  1. Initialize Aarc SDK

let aarcCoreSDK = new AarcCore(
    "YOU_AARC_API_KEY"
);
  1. Generate a deposit address to enable bridging and custom user operations on the destination chain.

 const depositData = await aarcCoreSDK.getDepositAddress(payload); 

Last updated