Options
All
  • Public
  • Public/Protected
  • All
Menu

Module lib/proto/cosmos/tx/v1beta1/service

Index

Type aliases

DeepPartial

DeepPartial<T>: T extends Builtin ? T : T extends infer U[] ? DeepPartial<U>[] : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {[ K in keyof T]: DeepPartial<T[K]> } : Partial<T>

Type parameters

  • T

Variables

BroadcastTxRequest

BroadcastTxRequest: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

BroadcastTxResponse

BroadcastTxResponse: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

GetTxRequest

GetTxRequest: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

GetTxResponse

GetTxResponse: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
    • decode(input: Uint8Array | Reader, length?: number): GetTxResponse
  • encode: function
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { tx?: { body?: { messages?: { typeUrl?: string | undefined; value?: Uint8Array | undefined; }[] | undefined; memo?: string | undefined; timeoutHeight?: number | undefined; extensionOptions?: { ...; }[] | undefined; nonCriticalExtensionOptions?: { ...; }[] | undefined; } | undefined; authInfo?: { ...; } | undefined; signat...; txResponse?: { height?: number | undefined; txhash?: string | undefined; codespace?: string | undefined; code?: number | undefined; data?: string | undefined; rawLog?: string | undefined; logs?: { ...; }[] | undefined; ... 4 more ...; timestamp?: string | undefined; } }): GetTxResponse
    • Parameters

      • object: { tx?: { body?: { messages?: { typeUrl?: string | undefined; value?: Uint8Array | undefined; }[] | undefined; memo?: string | undefined; timeoutHeight?: number | undefined; extensionOptions?: { ...; }[] | undefined; nonCriticalExtensionOptions?: { ...; }[] | undefined; } | undefined; authInfo?: { ...; } | undefined; signat...; txResponse?: { height?: number | undefined; txhash?: string | undefined; codespace?: string | undefined; code?: number | undefined; data?: string | undefined; rawLog?: string | undefined; logs?: { ...; }[] | undefined; ... 4 more ...; timestamp?: string | undefined; } }
        • Optional tx?: { body?: { messages?: { typeUrl?: string | undefined; value?: Uint8Array | undefined; }[] | undefined; memo?: string | undefined; timeoutHeight?: number | undefined; extensionOptions?: { ...; }[] | undefined; nonCriticalExtensionOptions?: { ...; }[] | undefined; } | undefined; authInfo?: { ...; } | undefined; signat...

          tx is the queried transaction.

        • Optional txResponse?: { height?: number | undefined; txhash?: string | undefined; codespace?: string | undefined; code?: number | undefined; data?: string | undefined; rawLog?: string | undefined; logs?: { ...; }[] | undefined; ... 4 more ...; timestamp?: string | undefined; }

          tx_response is the queried TxResponses.

      Returns GetTxResponse

  • toJSON: function

GetTxsEventRequest

GetTxsEventRequest: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

GetTxsEventResponse

GetTxsEventResponse: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
  • encode: function
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { pagination?: { nextKey?: Uint8Array | undefined; total?: number | undefined; }; txResponses?: { height?: number | undefined; txhash?: string | undefined; codespace?: string | undefined; code?: number | undefined; data?: string | undefined; rawLog?: string | undefined; logs?: { ...; }[] | undefined; ... 4 more ...; timestamp?: string | undefined; }[]; txs?: { body?: { messages?: { typeUrl?: string | undefined; value?: Uint8Array | undefined; }[] | undefined; memo?: string | undefined; timeoutHeight?: number | undefined; extensionOptions?: { ...; }[] | undefined; nonCriticalExtensionOptions?: { ...; }[] | undefined; } | undefined; authInfo?: { ...; } | undefined; signat...[] }): GetTxsEventResponse
    • Parameters

      • object: { pagination?: { nextKey?: Uint8Array | undefined; total?: number | undefined; }; txResponses?: { height?: number | undefined; txhash?: string | undefined; codespace?: string | undefined; code?: number | undefined; data?: string | undefined; rawLog?: string | undefined; logs?: { ...; }[] | undefined; ... 4 more ...; timestamp?: string | undefined; }[]; txs?: { body?: { messages?: { typeUrl?: string | undefined; value?: Uint8Array | undefined; }[] | undefined; memo?: string | undefined; timeoutHeight?: number | undefined; extensionOptions?: { ...; }[] | undefined; nonCriticalExtensionOptions?: { ...; }[] | undefined; } | undefined; authInfo?: { ...; } | undefined; signat...[] }
        • Optional pagination?: { nextKey?: Uint8Array | undefined; total?: number | undefined; }

          pagination defines an pagination for the response.

        • Optional txResponses?: { height?: number | undefined; txhash?: string | undefined; codespace?: string | undefined; code?: number | undefined; data?: string | undefined; rawLog?: string | undefined; logs?: { ...; }[] | undefined; ... 4 more ...; timestamp?: string | undefined; }[]

          tx_responses is the list of queried TxResponses.

        • Optional txs?: { body?: { messages?: { typeUrl?: string | undefined; value?: Uint8Array | undefined; }[] | undefined; memo?: string | undefined; timeoutHeight?: number | undefined; extensionOptions?: { ...; }[] | undefined; nonCriticalExtensionOptions?: { ...; }[] | undefined; } | undefined; authInfo?: { ...; } | undefined; signat...[]

          txs is the list of queried transactions.

      Returns GetTxsEventResponse

  • toJSON: function

SimulateRequest

SimulateRequest: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
  • encode: function
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { tx?: { body?: { messages?: { typeUrl?: string | undefined; value?: Uint8Array | undefined; }[] | undefined; memo?: string | undefined; timeoutHeight?: number | undefined; extensionOptions?: { ...; }[] | undefined; nonCriticalExtensionOptions?: { ...; }[] | undefined; } | undefined; authInfo?: { ...; } | undefined; signat... }): SimulateRequest
    • Parameters

      • object: { tx?: { body?: { messages?: { typeUrl?: string | undefined; value?: Uint8Array | undefined; }[] | undefined; memo?: string | undefined; timeoutHeight?: number | undefined; extensionOptions?: { ...; }[] | undefined; nonCriticalExtensionOptions?: { ...; }[] | undefined; } | undefined; authInfo?: { ...; } | undefined; signat... }
        • Optional tx?: { body?: { messages?: { typeUrl?: string | undefined; value?: Uint8Array | undefined; }[] | undefined; memo?: string | undefined; timeoutHeight?: number | undefined; extensionOptions?: { ...; }[] | undefined; nonCriticalExtensionOptions?: { ...; }[] | undefined; } | undefined; authInfo?: { ...; } | undefined; signat...

          tx is the transaction to simulate.

      Returns SimulateRequest

  • toJSON: function

SimulateResponse

SimulateResponse: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
  • encode: function
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { gasInfo?: { gasWanted?: number | undefined; gasUsed?: number | undefined; }; result?: { data?: Uint8Array | undefined; log?: string | undefined; events?: { type?: string | undefined; attributes?: { key?: Uint8Array | undefined; value?: Uint8Array | undefined; index?: boolean | undefined; }[] | undefined; }[] | undefined; } }): SimulateResponse
    • Parameters

      • object: { gasInfo?: { gasWanted?: number | undefined; gasUsed?: number | undefined; }; result?: { data?: Uint8Array | undefined; log?: string | undefined; events?: { type?: string | undefined; attributes?: { key?: Uint8Array | undefined; value?: Uint8Array | undefined; index?: boolean | undefined; }[] | undefined; }[] | undefined; } }
        • Optional gasInfo?: { gasWanted?: number | undefined; gasUsed?: number | undefined; }

          gas_info is the information about gas used in the simulation.

        • Optional result?: { data?: Uint8Array | undefined; log?: string | undefined; events?: { type?: string | undefined; attributes?: { key?: Uint8Array | undefined; value?: Uint8Array | undefined; index?: boolean | undefined; }[] | undefined; }[] | undefined; }

          result is the result of the simulation.

      Returns SimulateResponse

  • toJSON: function

Const protobufPackage

protobufPackage: "cosmos.tx.v1beta1" = 'cosmos.tx.v1beta1'

Functions

broadcastModeFromJSON

broadcastModeToJSON

orderByFromJSON

  • orderByFromJSON(object: any): OrderBy

orderByToJSON

  • orderByToJSON(object: OrderBy): string

Generated using TypeDoc