Fund Kit Core SDK

Using Aarc's core SDK you can bridge funds and call smart contract on any supported chain from any 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";
  1. Get the API KEY

Get your API key from dashboard.aarc.xyz

  1. Initialise Aarc SDK

let aarcSDK = new AarcCore(
    "YOU_AARC_API_KEY"
);
  1. Calling functions from aarcSDK instance

// performDeposit will bridge funds from one chain to another
await aarcSDK.performDeposit({
  toChainId: base.id,
  fromChainId: arbitrum.id,
  routeType: "Value",
  userAddress: address,
  toTokenAddress: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  fromTokenAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
  senderSigner: signer,
  fromAmount: "1000000",
  recipient: address,
}); 

Last updated