Function useRegisteredTypedContract

React Hook that returns a type-safe contract object by typechain-polkadot, configured with the active api & chain for the given deployment contract id which is looked up from the deployments registry.

  • Type Parameters

    • T

    Parameters

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

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