Get started

PixelBridge 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:

Copy

$ npm install @PixelBridge/bridge-core-sdk

Using yarn:

Copy

$ yarn add @PixelBridge/bridge-core-sdk

Using pnpm:

Copy

$ pnpm add @PixelBridge/bridge-core-sdk

Initialize the SDK instance with your node RPC URLs

Copy

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

Last updated