@thruputchain/client
    Preparing search index...

    Interface SignedOperationType<TBody>

    Signing helpers bound to one payload type.

    interface SignedOperationType<TBody> {
        typeDef: ContractTypeDef;
        typeName: string;
        encodeBody(body: TBody): Uint8Array;
        preimage(request: SignedOperationRequest<TBody>): Uint8Array;
        sign(
            signer: Signer,
            request: SignedOperationRequest<TBody>,
        ): Promise<SignedOperation>;
    }

    Type Parameters

    • TBody
    Index

    Properties

    typeDef: ContractTypeDef

    The payload type's spec definition, as bound into every preimage.

    typeName: string

    Declared name of the payload type: the declared segment of its spec id. SignedOperationType.typeDef carries the full id.

    Methods

    • CXS-encode a payload value the way the contract decodes it.

      Parameters

      Returns Uint8Array