Get started

Allbridge Core SDK enables you to onboard cross-chain functionality into your protocol. Follow these instructions to get started using our SDK.

Installation instructions

Using npm:

$ npm install @allbridge/bridge-core-sdk

Using yarn:

$ yarn add @allbridge/bridge-core-sdk

Using pnpm:

$ pnpm add @allbridge/bridge-core-sdk

Initialize the SDK instance with your node RPC URLs

import { AllbridgeCoreSdk, nodeRpcUrlsDefault } from "@allbridge/bridge-core-sdk";
// Connections to blockchains will be made through your rpc-urls passed during initialization
const sdk = new AllbridgeCoreSdk({
  ...nodeRpcUrlsDefault,
  TRX: "your trx-rpc-url",
  ETH: "your eth-rpc-url"
});

Visit our GitHub repository

Last updated