evmos.proto.autogen.py.cosmos.tx.v1beta1

Classes

AuthInfo(signer_infos, fee)

AuthInfo describes the fee and signer modes that are used to sign a transaction.

BroadcastMode(value)

BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method.

BroadcastTxRequest(tx_bytes, mode)

BroadcastTxRequest is the request type for the Service.BroadcastTxRequest RPC method.

BroadcastTxResponse(tx_response)

BroadcastTxResponse is the response type for the Service.BroadcastTx method.

Fee(amount, gas_limit, payer, granter)

Fee includes the amount of coins paid in fees and the maximum gas to be used by the transaction.

GetBlockWithTxsRequest(height, pagination)

GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs RPC method.

GetBlockWithTxsResponse(txs, block_id, ...)

GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method.

GetTxRequest(hash)

GetTxRequest is the request type for the Service.GetTx RPC method.

GetTxResponse(tx, tx_response)

GetTxResponse is the response type for the Service.GetTx method.

GetTxsEventRequest(events, pagination, order_by)

GetTxsEventRequest is the request type for the Service.TxsByEvents RPC method.

GetTxsEventResponse(txs, tx_responses, ...)

GetTxsEventResponse is the response type for the Service.TxsByEvents RPC method.

ModeInfo(single, multi)

ModeInfo describes the signing mode of a single or nested multisig signer.

ModeInfoMulti(bitarray, mode_infos)

Multi is the mode info for a multisig public key

ModeInfoSingle(mode)

Single is the mode info for a single signer.

OrderBy(value)

OrderBy defines the sorting order

ServiceBase()

ServiceStub(channel, *[, timeout, deadline, ...])

SignDoc(body_bytes, auth_info_bytes, ...)

SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT.

SignerInfo(public_key, mode_info, sequence)

SignerInfo describes the public key and signing mode of a single top-level signer.

SimulateRequest(tx, tx_bytes)

SimulateRequest is the request type for the Service.Simulate RPC method.

SimulateResponse(gas_info, result)

SimulateResponse is the response type for the Service.SimulateRPC method.

Tx(body, auth_info, signatures)

Tx is the standard type used for broadcasting transactions.

TxBody(messages, memo, timeout_height, ...)

TxBody is the body of a transaction that all signers sign over.

TxRaw(body_bytes, auth_info_bytes, signatures)

TxRaw is a variant of Tx that pins the signer's exact binary representation of body and auth_info.

class evmos.proto.autogen.py.cosmos.tx.v1beta1.AuthInfo(signer_infos: ~typing.List[~evmos.proto.autogen.py.cosmos.tx.v1beta1.SignerInfo] = <object object>, fee: ~evmos.proto.autogen.py.cosmos.tx.v1beta1.Fee = <object object>)[source]

Bases: Message

AuthInfo describes the fee and signer modes that are used to sign a transaction.

fee: Fee = <object object>

Fee is the fee and gas limit for the transaction. The first signer is the primary signer and the one which pays the fee. The fee can be calculated based on the cost of evaluating the body and doing signature verification of the signers. This can be estimated via simulation.

signer_infos: List[SignerInfo] = <object object>

signer_infos defines the signing modes for the required signers. The number and order of elements must match the required signers from TxBody’s messages. The first element is the primary signer and the one which pays the fee.

class evmos.proto.autogen.py.cosmos.tx.v1beta1.BroadcastMode(value)[source]

Bases: Enum

BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method.

BROADCAST_MODE_ASYNC = 3

BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns immediately.

BROADCAST_MODE_BLOCK = 1

BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for the tx to be committed in a block.

BROADCAST_MODE_SYNC = 2

BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for a CheckTx execution response only.

BROADCAST_MODE_UNSPECIFIED = 0

zero-value for mode ordering

class evmos.proto.autogen.py.cosmos.tx.v1beta1.BroadcastTxRequest(tx_bytes: bytes = <object object>, mode: ~evmos.proto.autogen.py.cosmos.tx.v1beta1.BroadcastMode = <object object>)[source]

Bases: Message

BroadcastTxRequest is the request type for the Service.BroadcastTxRequest RPC method.

mode: BroadcastMode = <object object>
tx_bytes: bytes = <object object>

tx_bytes is the raw transaction.

class evmos.proto.autogen.py.cosmos.tx.v1beta1.BroadcastTxResponse(tx_response: ~evmos.proto.autogen.py.cosmos.base.abci.v1beta1.TxResponse = <object object>)[source]

Bases: Message

BroadcastTxResponse is the response type for the Service.BroadcastTx method.

tx_response: TxResponse = <object object>

tx_response is the queried TxResponses.

class evmos.proto.autogen.py.cosmos.tx.v1beta1.Fee(amount: ~typing.List[~evmos.proto.autogen.py.cosmos.base.v1beta1.Coin] = <object object>, gas_limit: int = <object object>, payer: str = <object object>, granter: str = <object object>)[source]

Bases: Message

Fee includes the amount of coins paid in fees and the maximum gas to be used by the transaction. The ratio yields an effective “gasprice”, which must be above some miminum to be accepted into the mempool.

amount: List[Coin] = <object object>

amount is the amount of coins to be paid as a fee

gas_limit: int = <object object>

gas_limit is the maximum gas that can be used in transaction processing before an out of gas error occurs

granter: str = <object object>

if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used to pay fees instead of the fee payer’s own balance. If an appropriate fee grant does not exist or the chain does not support fee grants, this will fail

payer: str = <object object>

if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees. the payer must be a tx signer (and thus have signed this field in AuthInfo). setting this field does *not* change the ordering of required signers for the transaction.

class evmos.proto.autogen.py.cosmos.tx.v1beta1.GetBlockWithTxsRequest(height: int = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageRequest = <object object>)[source]

Bases: Message

GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs RPC method. .. versionadded:: 0.45.2

height: int = <object object>

height is the height of the block to query.

pagination: PageRequest = <object object>

pagination defines a pagination for the request.

class evmos.proto.autogen.py.cosmos.tx.v1beta1.GetBlockWithTxsResponse(txs: ~typing.List[~evmos.proto.autogen.py.cosmos.tx.v1beta1.Tx] = <object object>, block_id: ~evmos.proto.autogen.py.tendermint.types.BlockId = <object object>, block: ~evmos.proto.autogen.py.tendermint.types.Block = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageResponse = <object object>)[source]

Bases: Message

GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. .. versionadded:: 0.45.2

block: Block = <object object>
block_id: BlockId = <object object>
pagination: PageResponse = <object object>

pagination defines a pagination for the response.

txs: List[Tx] = <object object>

txs are the transactions in the block.

class evmos.proto.autogen.py.cosmos.tx.v1beta1.GetTxRequest(hash: str = <object object>)[source]

Bases: Message

GetTxRequest is the request type for the Service.GetTx RPC method.

hash: str = <object object>

hash is the tx hash to query, encoded as a hex string.

class evmos.proto.autogen.py.cosmos.tx.v1beta1.GetTxResponse(tx: ~evmos.proto.autogen.py.cosmos.tx.v1beta1.Tx = <object object>, tx_response: ~evmos.proto.autogen.py.cosmos.base.abci.v1beta1.TxResponse = <object object>)[source]

Bases: Message

GetTxResponse is the response type for the Service.GetTx method.

tx: Tx = <object object>

tx is the queried transaction.

tx_response: TxResponse = <object object>

tx_response is the queried TxResponses.

class evmos.proto.autogen.py.cosmos.tx.v1beta1.GetTxsEventRequest(events: ~typing.List[str] = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageRequest = <object object>, order_by: ~evmos.proto.autogen.py.cosmos.tx.v1beta1.OrderBy = <object object>)[source]

Bases: Message

GetTxsEventRequest is the request type for the Service.TxsByEvents RPC method.

events: List[str] = <object object>

events is the list of transaction event type.

order_by: OrderBy = <object object>
pagination: PageRequest = <object object>

pagination defines a pagination for the request.

class evmos.proto.autogen.py.cosmos.tx.v1beta1.GetTxsEventResponse(txs: ~typing.List[~evmos.proto.autogen.py.cosmos.tx.v1beta1.Tx] = <object object>, tx_responses: ~typing.List[~evmos.proto.autogen.py.cosmos.base.abci.v1beta1.TxResponse] = <object object>, pagination: ~evmos.proto.autogen.py.cosmos.base.query.v1beta1.PageResponse = <object object>)[source]

Bases: Message

GetTxsEventResponse is the response type for the Service.TxsByEvents RPC method.

pagination: PageResponse = <object object>

pagination defines a pagination for the response.

tx_responses: List[TxResponse] = <object object>

tx_responses is the list of queried TxResponses.

txs: List[Tx] = <object object>

txs is the list of queried transactions.

class evmos.proto.autogen.py.cosmos.tx.v1beta1.ModeInfo(single: ~evmos.proto.autogen.py.cosmos.tx.v1beta1.ModeInfoSingle = <object object>, multi: ~evmos.proto.autogen.py.cosmos.tx.v1beta1.ModeInfoMulti = <object object>)[source]

Bases: Message

ModeInfo describes the signing mode of a single or nested multisig signer.

multi: ModeInfoMulti = <object object>

multi represents a nested multisig signer

single: ModeInfoSingle = <object object>

single represents a single signer

class evmos.proto.autogen.py.cosmos.tx.v1beta1.ModeInfoMulti(bitarray: ~evmos.proto.autogen.py.cosmos.crypto.multisig.v1beta1.CompactBitArray = <object object>, mode_infos: ~typing.List[~evmos.proto.autogen.py.cosmos.tx.v1beta1.ModeInfo] = <object object>)[source]

Bases: Message

Multi is the mode info for a multisig public key

bitarray: CompactBitArray = <object object>

bitarray specifies which keys within the multisig are signing

mode_infos: List[ModeInfo] = <object object>

mode_infos is the corresponding modes of the signers of the multisig which could include nested multisig public keys

class evmos.proto.autogen.py.cosmos.tx.v1beta1.ModeInfoSingle(mode: ~evmos.proto.autogen.py.cosmos.tx.signing.v1beta1.SignMode = <object object>)[source]

Bases: Message

Single is the mode info for a single signer. It is structured as a message to allow for additional fields such as locale for SIGN_MODE_TEXTUAL in the future

mode: SignMode = <object object>

mode is the signing mode of the single signer

class evmos.proto.autogen.py.cosmos.tx.v1beta1.OrderBy(value)[source]

Bases: Enum

OrderBy defines the sorting order

ORDER_BY_ASC = 1

ORDER_BY_ASC defines ascending order

ORDER_BY_DESC = 2

ORDER_BY_DESC defines descending order

ORDER_BY_UNSPECIFIED = 0

ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case.

class evmos.proto.autogen.py.cosmos.tx.v1beta1.ServiceBase[source]

Bases: ServiceBase

async broadcast_tx(broadcast_tx_request: BroadcastTxRequest) BroadcastTxResponse[source]
async get_block_with_txs(get_block_with_txs_request: GetBlockWithTxsRequest) GetBlockWithTxsResponse[source]
async get_tx(get_tx_request: GetTxRequest) GetTxResponse[source]
async get_txs_event(get_txs_event_request: GetTxsEventRequest) GetTxsEventResponse[source]
async simulate(simulate_request: SimulateRequest) SimulateResponse[source]
class evmos.proto.autogen.py.cosmos.tx.v1beta1.ServiceStub(channel: Channel, *, timeout: Optional[float] = None, deadline: Optional[Deadline] = None, metadata: Optional[Union[Mapping[str, Union[str, bytes]], Collection[Tuple[str, Union[str, bytes]]]]] = None)[source]

Bases: ServiceStub

async broadcast_tx(broadcast_tx_request: BroadcastTxRequest, *, timeout: Optional[float] = None, deadline: Optional[Deadline] = None, metadata: Optional[MetadataLike] = None) BroadcastTxResponse[source]
async get_block_with_txs(get_block_with_txs_request: GetBlockWithTxsRequest, *, timeout: Optional[float] = None, deadline: Optional[Deadline] = None, metadata: Optional[MetadataLike] = None) GetBlockWithTxsResponse[source]
async get_tx(get_tx_request: GetTxRequest, *, timeout: Optional[float] = None, deadline: Optional[Deadline] = None, metadata: Optional[MetadataLike] = None) GetTxResponse[source]
async get_txs_event(get_txs_event_request: GetTxsEventRequest, *, timeout: Optional[float] = None, deadline: Optional[Deadline] = None, metadata: Optional[MetadataLike] = None) GetTxsEventResponse[source]
async simulate(simulate_request: SimulateRequest, *, timeout: Optional[float] = None, deadline: Optional[Deadline] = None, metadata: Optional[MetadataLike] = None) SimulateResponse[source]
class evmos.proto.autogen.py.cosmos.tx.v1beta1.SignDoc(body_bytes: bytes = <object object>, auth_info_bytes: bytes = <object object>, chain_id: str = <object object>, account_number: int = <object object>)[source]

Bases: Message

SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT.

account_number: int = <object object>

account_number is the account number of the account in state

auth_info_bytes: bytes = <object object>

auth_info_bytes is a protobuf serialization of an AuthInfo that matches the representation in TxRaw.

body_bytes: bytes = <object object>

body_bytes is protobuf serialization of a TxBody that matches the representation in TxRaw.

chain_id: str = <object object>

chain_id is the unique identifier of the chain this transaction targets. It prevents signed transactions from being used on another chain by an attacker

class evmos.proto.autogen.py.cosmos.tx.v1beta1.SignerInfo(public_key: ~betterproto.lib.google.protobuf.Any = <object object>, mode_info: ~evmos.proto.autogen.py.cosmos.tx.v1beta1.ModeInfo = <object object>, sequence: int = <object object>)[source]

Bases: Message

SignerInfo describes the public key and signing mode of a single top-level signer.

mode_info: ModeInfo = <object object>

mode_info describes the signing mode of the signer and is a nested structure to support nested multisig pubkey’s

public_key: Any = <object object>

public_key is the public key of the signer. It is optional for accounts that already exist in state. If unset, the verifier can use the required signer address for this position and lookup the public key.

sequence: int = <object object>

sequence is the sequence of the account, which describes the number of committed transactions signed by a given address. It is used to prevent replay attacks.

class evmos.proto.autogen.py.cosmos.tx.v1beta1.SimulateRequest(tx: ~evmos.proto.autogen.py.cosmos.tx.v1beta1.Tx = <object object>, tx_bytes: bytes = <object object>)[source]

Bases: Message

SimulateRequest is the request type for the Service.Simulate RPC method.

tx: Tx = <object object>

tx is the transaction to simulate. Deprecated. Send raw tx bytes instead.

tx_bytes: bytes = <object object>

tx_bytes is the raw transaction. .. versionadded:: 0.43

class evmos.proto.autogen.py.cosmos.tx.v1beta1.SimulateResponse(gas_info: ~evmos.proto.autogen.py.cosmos.base.abci.v1beta1.GasInfo = <object object>, result: ~evmos.proto.autogen.py.cosmos.base.abci.v1beta1.Result = <object object>)[source]

Bases: Message

SimulateResponse is the response type for the Service.SimulateRPC method.

gas_info: GasInfo = <object object>

gas_info is the information about gas used in the simulation.

result: Result = <object object>

result is the result of the simulation.

class evmos.proto.autogen.py.cosmos.tx.v1beta1.Tx(body: ~evmos.proto.autogen.py.cosmos.tx.v1beta1.TxBody = <object object>, auth_info: ~evmos.proto.autogen.py.cosmos.tx.v1beta1.AuthInfo = <object object>, signatures: ~typing.List[bytes] = <object object>)[source]

Bases: Message

Tx is the standard type used for broadcasting transactions.

auth_info: AuthInfo = <object object>

auth_info is the authorization related content of the transaction, specifically signers, signer modes and fee

body: TxBody = <object object>

body is the processable content of the transaction

signatures: List[bytes] = <object object>

signatures is a list of signatures that matches the length and order of AuthInfo’s signer_infos to allow connecting signature meta information like public key and signing mode by position.

class evmos.proto.autogen.py.cosmos.tx.v1beta1.TxBody(messages: ~typing.List[~betterproto.lib.google.protobuf.Any] = <object object>, memo: str = <object object>, timeout_height: int = <object object>, extension_options: ~typing.List[~betterproto.lib.google.protobuf.Any] = <object object>, non_critical_extension_options: ~typing.List[~betterproto.lib.google.protobuf.Any] = <object object>)[source]

Bases: Message

TxBody is the body of a transaction that all signers sign over.

extension_options: List[Any] = <object object>

extension_options are arbitrary options that can be added by chains when the default options are not sufficient. If any of these are present and can’t be handled, the transaction will be rejected

memo: str = <object object>

memo is any arbitrary note/comment to be added to the transaction. WARNING: in clients, any publicly exposed text should not be called memo, but should be called note instead (see https://github.com/cosmos/cosmos-sdk/issues/9122).

messages: List[Any] = <object object>

messages is a list of messages to be executed. The required signers of those messages define the number and order of elements in AuthInfo’s signer_infos and Tx’s signatures. Each required signer address is added to the list only the first time it occurs. By convention, the first required signer (usually from the first message) is referred to as the primary signer and pays the fee for the whole transaction.

non_critical_extension_options: List[Any] = <object object>

extension_options are arbitrary options that can be added by chains when the default options are not sufficient. If any of these are present and can’t be handled, they will be ignored

timeout_height: int = <object object>

timeout is the block height after which this transaction will not be processed by the chain

class evmos.proto.autogen.py.cosmos.tx.v1beta1.TxRaw(body_bytes: bytes = <object object>, auth_info_bytes: bytes = <object object>, signatures: ~typing.List[bytes] = <object object>)[source]

Bases: Message

TxRaw is a variant of Tx that pins the signer’s exact binary representation of body and auth_info. This is used for signing, broadcasting and verification. The binary serialize(tx: TxRaw) is stored in Tendermint and the hash sha256(serialize(tx: TxRaw)) becomes the “txhash”, commonly used as the transaction ID.

auth_info_bytes: bytes = <object object>

auth_info_bytes is a protobuf serialization of an AuthInfo that matches the representation in SignDoc.

body_bytes: bytes = <object object>

body_bytes is a protobuf serialization of a TxBody that matches the representation in SignDoc.

signatures: List[bytes] = <object object>

signatures is a list of signatures that matches the length and order of AuthInfo’s signer_infos to allow connecting signature meta information like public key and signing mode by position.