getContract
Functions that create and return Ethers contract object.
Param | Description |
---|---|
address | Contract address |
abi | Contract 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