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

    Parameters

    • Optional abi: string | Record<string, unknown> | Abi
    • Optional address: string | AccountId

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

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