Skip to content

getContract

Functions that create and return Ethers contract object.

ParamDescription
addressContract address
abiContract ABI object

Usage

import { BcodeSDK } from "@bcode-tech/bcode-sdk";

const fun = () => {
  const sdk = new BcodeSDK({
    apiKey: "your-api-key",
    config: { env: "MUMBAI" },
  });

  sdk.getContract(address, abi);
};

Returns

Ethers contract object