React Hook that returns a ContractPromise object configured with the active api & chain as well as the given abi and address.

  • Parameters

    • Optionalabi: string | Record<string, unknown> | Abi
    • Optionaladdress: string | AccountId

    Returns {
        address: undefined | string | AccountId;
        contract: undefined | ContractPromise;
    }

    • address: undefined | string | AccountId
    • contract: undefined | ContractPromise