evmos.proto.autogen.py.cosmos.tx.v1beta1
Classes
|
AuthInfo describes the fee and signer modes that are used to sign a transaction. |
|
AuxSignerData is the intermediary format that an auxiliary signer (e.g. a tipper) builds and sends to the fee payer (who will build and broadcast the actual tx). |
|
BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. |
|
BroadcastTxRequest is the request type for the Service.BroadcastTxRequest RPC method. |
|
BroadcastTxResponse is the response type for the Service.BroadcastTx method. |
|
Fee includes the amount of coins paid in fees and the maximum gas to be used by the transaction. |
|
GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs RPC method. |
|
GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. |
|
GetTxRequest is the request type for the Service.GetTx RPC method. |
|
GetTxResponse is the response type for the Service.GetTx method. |
|
GetTxsEventRequest is the request type for the Service.TxsByEvents RPC method. |
|
GetTxsEventResponse is the response type for the Service.TxsByEvents RPC method. |
|
ModeInfo describes the signing mode of a single or nested multisig signer. |
|
Multi is the mode info for a multisig public key |
|
Single is the mode info for a single signer. |
|
OrderBy defines the sorting order |
|
|
|
SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. |
|
SignDocDirectAux is the type used for generating sign bytes for SIGN_MODE_DIRECT_AUX. |
|
SignerInfo describes the public key and signing mode of a single top-level signer. |
|
SimulateRequest is the request type for the Service.Simulate RPC method. |
|
SimulateResponse is the response type for the Service.SimulateRPC method. |
|
Tip is the tip used for meta-transactions. |
|
Tx is the standard type used for broadcasting transactions. |
|
TxBody is the body of a transaction that all signers sign over. |
|
TxDecodeAminoRequest is the request type for the Service.TxDecodeAmino RPC method. |
|
TxDecodeAminoResponse is the response type for the Service.TxDecodeAmino RPC method. |
|
TxDecodeRequest is the request type for the Service.TxDecode RPC method. |
|
TxDecodeResponse is the response type for the Service.TxDecode method. |
|
TxEncodeAminoRequest is the request type for the Service.TxEncodeAmino RPC method. |
|
TxEncodeAminoResponse is the response type for the Service.TxEncodeAmino RPC method. |
|
TxEncodeRequest is the request type for the Service.TxEncode RPC method. |
|
TxEncodeResponse is the response type for the Service.TxEncode method. |
|
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>, tip: ~evmos.proto.autogen.py.cosmos.tx.v1beta1.Tip = <object object>)[source]
Bases:
MessageAuthInfo 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.AuxSignerData(address: str = <object object>, sign_doc: ~evmos.proto.autogen.py.cosmos.tx.v1beta1.SignDocDirectAux = <object object>, mode: ~evmos.proto.autogen.py.cosmos.tx.signing.v1beta1.SignMode = <object object>, sig: bytes = <object object>)[source]
Bases:
MessageAuxSignerData is the intermediary format that an auxiliary signer (e.g. a tipper) builds and sends to the fee payer (who will build and broadcast the actual tx). AuxSignerData is not a valid tx in itself, and will be rejected by the node if sent directly as-is. .. versionadded:: 0.46
- address: str = <object object>
address is the bech32-encoded address of the auxiliary signer. If using AuxSignerData across different chains, the bech32 prefix of the target chain (where the final transaction is broadcasted) should be used.
- sign_doc: SignDocDirectAux = <object object>
sign_doc is the SIGN_MODE_DIRECT_AUX sign doc that the auxiliary signer signs. Note: we use the same sign doc even if we’re signing with LEGACY_AMINO_JSON.
- class evmos.proto.autogen.py.cosmos.tx.v1beta1.BroadcastMode(*values)[source]
Bases:
EnumBroadcastMode 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
use BROADCAST_MODE_SYNC instead, BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x onwards. :type: DEPRECATED
- 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:
MessageBroadcastTxRequest is the request type for the Service.BroadcastTxRequest RPC method.
- mode: BroadcastMode = <object object>
- class evmos.proto.autogen.py.cosmos.tx.v1beta1.BroadcastTxResponse(tx_response: ~evmos.proto.autogen.py.cosmos.base.abci.v1beta1.TxResponse = <object object>)[source]
Bases:
MessageBroadcastTxResponse 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:
MessageFee 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.
- 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:
MessageGetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs RPC method. .. versionadded:: 0.45.2
- 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:
MessageGetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs method. .. versionadded:: 0.45.2
- pagination: PageResponse = <object object>
pagination defines a pagination for the response.
- class evmos.proto.autogen.py.cosmos.tx.v1beta1.GetTxRequest(hash: str = <object object>)[source]
Bases:
MessageGetTxRequest is the request type for the Service.GetTx RPC method.
- 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:
MessageGetTxResponse is the response type for the Service.GetTx method.
- 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>, page: int = <object object>, limit: int = <object object>, query: str = <object object>)[source]
Bases:
MessageGetTxsEventRequest is the request type for the Service.TxsByEvents RPC method.
- events: List[str] = <object object>
events is the list of transaction event type. Deprecated post v0.47.x: use query instead, which should contain a valid events query.
- limit: int = <object object>
limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.
- page: int = <object object>
page is the page number to query, starts at 1. If not provided, will default to first page.
- pagination: PageRequest = <object object>
pagination defines a pagination for the request. Deprecated post v0.46.x: use page and limit instead.
- 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>, total: int = <object object>)[source]
Bases:
MessageGetTxsEventResponse is the response type for the Service.TxsByEvents RPC method.
- pagination: PageResponse = <object object>
pagination defines a pagination for the response. Deprecated post v0.46.x: use total instead.
- tx_responses: List[TxResponse] = <object object>
tx_responses is the list of queried TxResponses.
- 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:
MessageModeInfo 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:
MessageMulti is the mode info for a multisig public key
- bitarray: CompactBitArray = <object object>
bitarray specifies which keys within the multisig are signing
- class evmos.proto.autogen.py.cosmos.tx.v1beta1.ModeInfoSingle(mode: ~evmos.proto.autogen.py.cosmos.tx.signing.v1beta1.SignMode = <object object>)[source]
Bases:
MessageSingle 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
- class evmos.proto.autogen.py.cosmos.tx.v1beta1.OrderBy(*values)[source]
Bases:
EnumOrderBy 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]
- async tx_decode(tx_decode_request: TxDecodeRequest) TxDecodeResponse[source]
- async tx_decode_amino(tx_decode_amino_request: TxDecodeAminoRequest) TxDecodeAminoResponse[source]
- async tx_encode(tx_encode_request: TxEncodeRequest) TxEncodeResponse[source]
- async tx_encode_amino(tx_encode_amino_request: TxEncodeAminoRequest) TxEncodeAminoResponse[source]
- class evmos.proto.autogen.py.cosmos.tx.v1beta1.ServiceStub(channel: Channel, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: Mapping[str, str | bytes] | Collection[Tuple[str, str | bytes]] | None = None)[source]
Bases:
ServiceStub- async broadcast_tx(broadcast_tx_request: BroadcastTxRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) BroadcastTxResponse[source]
- async get_block_with_txs(get_block_with_txs_request: GetBlockWithTxsRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) GetBlockWithTxsResponse[source]
- async get_tx(get_tx_request: GetTxRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) GetTxResponse[source]
- async get_txs_event(get_txs_event_request: GetTxsEventRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) GetTxsEventResponse[source]
- async simulate(simulate_request: SimulateRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) SimulateResponse[source]
- async tx_decode(tx_decode_request: TxDecodeRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) TxDecodeResponse[source]
- async tx_decode_amino(tx_decode_amino_request: TxDecodeAminoRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) TxDecodeAminoResponse[source]
- async tx_encode(tx_encode_request: TxEncodeRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) TxEncodeResponse[source]
- async tx_encode_amino(tx_encode_amino_request: TxEncodeAminoRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) TxEncodeAminoResponse[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:
MessageSignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT.
- auth_info_bytes: bytes = <object object>
auth_info_bytes is a protobuf serialization of an AuthInfo that matches the representation in TxRaw.
- class evmos.proto.autogen.py.cosmos.tx.v1beta1.SignDocDirectAux(body_bytes: bytes = <object object>, public_key: ~betterproto.lib.google.protobuf.Any = <object object>, chain_id: str = <object object>, account_number: int = <object object>, sequence: int = <object object>, tip: ~evmos.proto.autogen.py.cosmos.tx.v1beta1.Tip = <object object>)[source]
Bases:
MessageSignDocDirectAux is the type used for generating sign bytes for SIGN_MODE_DIRECT_AUX. .. versionadded:: 0.46
- account_number: int = <object object>
account_number is the account number of the account in state.
- 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 identifier of the chain this transaction targets. It prevents signed transactions from being used on another chain by an attacker.
- public_key: Any = <object object>
public_key is the public key of the signing account.
- 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:
MessageSignerInfo 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.
- 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:
MessageSimulateRequest is the request type for the Service.Simulate RPC method.
- 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:
MessageSimulateResponse is the response type for the Service.SimulateRPC method.
- class evmos.proto.autogen.py.cosmos.tx.v1beta1.Tip(amount: ~typing.List[~evmos.proto.autogen.py.cosmos.base.v1beta1.Coin] = <object object>, tipper: str = <object object>)[source]
Bases:
MessageTip is the tip used for meta-transactions. .. versionadded:: 0.46
- 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:
MessageTx is the standard type used for broadcasting transactions.
- 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:
MessageTxBody 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
noteinstead (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.
- class evmos.proto.autogen.py.cosmos.tx.v1beta1.TxDecodeAminoRequest(amino_binary: bytes = <object object>)[source]
Bases:
MessageTxDecodeAminoRequest is the request type for the Service.TxDecodeAmino RPC method. .. versionadded:: 0.47
- class evmos.proto.autogen.py.cosmos.tx.v1beta1.TxDecodeAminoResponse(amino_json: str = <object object>)[source]
Bases:
MessageTxDecodeAminoResponse is the response type for the Service.TxDecodeAmino RPC method. .. versionadded:: 0.47
- class evmos.proto.autogen.py.cosmos.tx.v1beta1.TxDecodeRequest(tx_bytes: bytes = <object object>)[source]
Bases:
MessageTxDecodeRequest is the request type for the Service.TxDecode RPC method. .. versionadded:: 0.47
- class evmos.proto.autogen.py.cosmos.tx.v1beta1.TxDecodeResponse(tx: ~evmos.proto.autogen.py.cosmos.tx.v1beta1.Tx = <object object>)[source]
Bases:
MessageTxDecodeResponse is the response type for the Service.TxDecode method. .. versionadded:: 0.47
- class evmos.proto.autogen.py.cosmos.tx.v1beta1.TxEncodeAminoRequest(amino_json: str = <object object>)[source]
Bases:
MessageTxEncodeAminoRequest is the request type for the Service.TxEncodeAmino RPC method. .. versionadded:: 0.47
- class evmos.proto.autogen.py.cosmos.tx.v1beta1.TxEncodeAminoResponse(amino_binary: bytes = <object object>)[source]
Bases:
MessageTxEncodeAminoResponse is the response type for the Service.TxEncodeAmino RPC method. .. versionadded:: 0.47
- class evmos.proto.autogen.py.cosmos.tx.v1beta1.TxEncodeRequest(tx: ~evmos.proto.autogen.py.cosmos.tx.v1beta1.Tx = <object object>)[source]
Bases:
MessageTxEncodeRequest is the request type for the Service.TxEncode RPC method. .. versionadded:: 0.47
- class evmos.proto.autogen.py.cosmos.tx.v1beta1.TxEncodeResponse(tx_bytes: bytes = <object object>)[source]
Bases:
MessageTxEncodeResponse is the response type for the Service.TxEncode method. .. versionadded:: 0.47
- 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:
MessageTxRaw 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 hashsha256(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.