Optional
providerOrPrivateKey: `0x${string}` | EIP1193ProviderThe provider or private key to connect to the contract.
Optional
options: Partial<ContractOptions>The Contract instance.
import { createContract } from 'crossbell'
const provider = window.ethereum // the metamask provider
const contract = createContract(provider)
import { createContract } from 'crossbell'
const privateKey = '0xabcdef0123456789012345678901234567890123456789012345678901234'
const contract = createContract(privateKey)
import { createContract } from 'crossbell'
const contract = createContract() // readonly contract
This creates a new Contract instance to interact with.