• Create a new GenericModule instance for interacting with a smart contract module on chain. This function ensures the module is already deployed on chain otherwise produces an error.

    Throws

    If failing to communicate with the concordium node or module reference does not correspond to a module on chain.

    Returns

    Parameters

    • grpcClient: ConcordiumGRPCClient

      The GRPC client for accessing a node.

    • moduleReference: ModuleReference

      The reference of the deployed smart contract module.

    Returns Promise<ModuleClient>

Generated using TypeDoc