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.

    • Optional options: Partial<ContractOptions>

    Returns BaseContract

    The Contract instance.

    Example: Connect with Metamask

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

    Example: Connect with Private Key

    import { Contract } from 'crossbell'
    const privateKey = '0xabcdef0123456789012345678901234567890123456789012345678901234'
    const contract = new Contract(privateKey)

    Example: Connect with a Readonly Contract

    import { Contract } from 'crossbell'
    const contract = new Contract() // readonly contract

Properties

cbtContract: {}

Type declaration

    contract: {}

    Type declaration

      linklistContract: {}

      Type declaration

        miraContract: {}

        Type declaration

          newbieVillaContract: {}

          Type declaration

            peripheryContract: {}

            Type declaration

              publicClient: {}

              Type declaration

                tipsContract: {}

                Type declaration

                  tipsWithConfigContract: {}

                  Type declaration

                    tipsWithFeeContract: {}

                    Type declaration

                      walletClient: {}

                      Type declaration

                        Accessors

                        Generated using TypeDoc