Hierarchy (view full)

Constructors

  • This creates a new Contract instance to interact with.

    Parameters

    • providerOrPrivateKey: undefined | `0x${string}` | EIP1193Provider

      The provider or private key to connect to the contract.

    • Optionaloptions: Partial<ContractOptions>

    Returns BaseContract

    The Contract instance.

    import { Contract } from 'crossbell'
    const provider = window.ethereum // the metamask provider
    const contract = new Contract(provider)
    import { Contract } from 'crossbell'
    const privateKey = '0xabcdef0123456789012345678901234567890123456789012345678901234'
    const contract = new Contract(privateKey)
    import { Contract } from 'crossbell'
    const contract = new Contract() // readonly contract

Properties

cbtContract: {}
contract: {}
linklistContract: {}
miraContract: {}
newbieVillaContract: {}
peripheryContract: {}
publicClient: {}
tipsContract: {}
tipsWithConfigContract: {}
tipsWithFeeContract: {}
walletClient: {}

Accessors

MMNEPVFCICPMFPCPTTAAATR