Polkadot Apps
    Preparing search index...

    Type Alias Contract<C>

    Contract: {
        [K in keyof C["methods"]]: {
            prepare: (
                ...args: [...C["methods"][K]["args"], opts?: PrepareOptions],
            ) => BatchableCall;
            query: (
                ...args: [...C["methods"][K]["args"], opts?: QueryOptions],
            ) => Promise<QueryResult<C["methods"][K]["response"]>>;
            tx: (
                ...args: [...C["methods"][K]["args"], opts?: TxOptions],
            ) => Promise<TxResult>;
        }
    }

    A typed contract handle where each ABI method exposes .query() and .tx().

    Both accept the method's positional arguments followed by an optional options object as the last argument.

    Type Parameters