Function useRegisteredContract

  • React Hook that returns a ContractPromise object configured with the active api & chain with the given deployment contract id which is looked up from the deployments registry.

    Parameters

    • contractId: string
    • Optional networkId: string

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

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