NAME
Google::Cloud::Universalledger::V1::Types - Compiled Protocol Buffers messages for google/cloud/universalledger/v1/types.proto
SYNOPSIS
use Google::Cloud::Universalledger::V1::Types;
my $msg = Google::Cloud::Universalledger::V1::Types::ClientTransaction->new({
operational => $operational,
transfer_platform_operator_transaction => $transfer_platform_operator_transaction,
create_currency_operator_transaction => $create_currency_operator_transaction,
transfer_currency_operator_transaction => $transfer_currency_operator_transaction,
});
# Read or update a field
my $val = $msg->operational();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Universalledger::V1::Types::ClientTransaction->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/universalledger/v1/types.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Universalledger::V1::Types::ClientTransaction
Represents a transaction initiated by a client.
Inherits from Protobuf::Message.
Accessors
$msg->operational()/$msg->operational($value)Type:
Message(Google::Protobuf::Any::Any)Optional. An operational transaction message. Note this can only be sent by the platform operator. Should be any one of:
<!-- clang-format off --> - [CreateSnapshot][google.cloud.universalledger.v1.CreateSnapshot] <!-- clang-format on -->
$msg->transfer_platform_operator_transaction()/$msg->transfer_platform_operator_transaction($value)Type:
Message(Google::Cloud::Universalledger::V1::Transactions::TransferPlatformOperator)Optional. Message for transferring the platform operator role to a new account.
$msg->create_currency_operator_transaction()/$msg->create_currency_operator_transaction($value)Type:
Message(Google::Cloud::Universalledger::V1::Transactions::CreateCurrencyOperator)Optional. Message for creating a new currency operator.
$msg->transfer_currency_operator_transaction()/$msg->transfer_currency_operator_transaction($value)Type:
Message(Google::Cloud::Universalledger::V1::Transactions::TransferCurrencyOperator)Optional. Message for transferring the currency operator role to a new account.
$msg->create_clearinghouse_transaction()/$msg->create_clearinghouse_transaction($value)Type:
Message(Google::Cloud::Universalledger::V1::Transactions::CreateClearinghouse)Optional. Message for creating a new clearinghouse.
$msg->create_account_manager_transaction()/$msg->create_account_manager_transaction($value)Type:
Message(Google::Cloud::Universalledger::V1::Transactions::CreateAccountManager)Optional. Message for creating a new account manager.
$msg->create_token_manager_transaction()/$msg->create_token_manager_transaction($value)Type:
Message(Google::Cloud::Universalledger::V1::Transactions::CreateTokenManager)Optional. Message for creating a new token manager associated to the currency of the operator sending the request.
$msg->increase_token_issuance_limit_transaction()/$msg->increase_token_issuance_limit_transaction($value)Type:
Message(Google::Cloud::Universalledger::V1::Transactions::IncreaseTokenIssuanceLimit)Optional. Notifies the network that the target account has deposited reserve funds and increases its token issuance limit.
$msg->decrease_token_issuance_limit_transaction()/$msg->decrease_token_issuance_limit_transaction($value)Type:
Message(Google::Cloud::Universalledger::V1::Transactions::DecreaseTokenIssuanceLimit)Optional. Notifies the network that the target account wishes to withdraw reserve funds and decreases its token issuance limit.
$msg->settlement_request_transaction()/$msg->settlement_request_transaction($value)Type:
Message(Google::Cloud::Universalledger::V1::Transactions::SettlementRequest)Optional. Message for initiating a settlement operation.
$msg->mint_transaction()/$msg->mint_transaction($value)Type:
Message(Google::Cloud::Universalledger::V1::Transactions::Mint)Optional. Message for minting currency tokens and transferring them to an account.
$msg->burn_transaction()/$msg->burn_transaction($value)Type:
Message(Google::Cloud::Universalledger::V1::Transactions::Burn)Optional. Message for burning currency tokens from an account.
$msg->create_account_transaction()/$msg->create_account_transaction($value)Type:
Message(Google::Cloud::Universalledger::V1::Transactions::CreateAccount)Optional. Message for creating a new user account.
$msg->deactivate_account_transaction()/$msg->deactivate_account_transaction($value)Type:
Message(Google::Cloud::Universalledger::V1::Transactions::DeactivateAccount)Optional. Message for deactivating a user account.
$msg->activate_account_transaction()/$msg->activate_account_transaction($value)Type:
Message(Google::Cloud::Universalledger::V1::Transactions::ActivateAccount)Optional. Message for activating a user account.
$msg->add_roles_transaction()/$msg->add_roles_transaction($value)Type:
Message(Google::Cloud::Universalledger::V1::Transactions::AddRoles)Optional. Message for adding roles to an account.
$msg->remove_roles_transaction()/$msg->remove_roles_transaction($value)Type:
Message(Google::Cloud::Universalledger::V1::Transactions::RemoveRoles)Optional. Message for removing roles from an account.
$msg->change_account_manager_transaction()/$msg->change_account_manager_transaction($value)Type:
Message(Google::Cloud::Universalledger::V1::Transactions::ChangeAccountManager)Optional. Message for changing the account manager of an account.
$msg->transfer_transaction()/$msg->transfer_transaction($value)Type:
Message(Google::Cloud::Universalledger::V1::Transactions::Transfer)Optional. Message for transferring tokens from one user account to another.
$msg->create_contract_transaction()/$msg->create_contract_transaction($value)Type:
Message(Google::Cloud::Universalledger::V1::Transactions::CreateContract)Optional. Message for creating a new contract on the ledger.
$msg->grant_contract_permissions_transaction()/$msg->grant_contract_permissions_transaction($value)Type:
Message(Google::Cloud::Universalledger::V1::Transactions::GrantContractPermissions)Optional. Message for granting permissions to a contract.
$msg->invoke_contract_method_transaction()/$msg->invoke_contract_method_transaction($value)Type:
Message(Google::Cloud::Universalledger::V1::Transactions::InvokeContractMethod)Optional. Message for invoking the execution of a contract method.
$msg->create_contract_token_manager_transaction()/$msg->create_contract_token_manager_transaction($value)Type:
Message(Google::Cloud::Universalledger::V1::Transactions::CreateContractTokenManager)Optional. Message for creating a new token manager associated to the currency of the operator sending the request.
$msg->transfer_contract_token_manager_transaction()/$msg->transfer_contract_token_manager_transaction($value)Type:
Message(Google::Cloud::Universalledger::V1::Transactions::TransferContractTokenManager)Optional. Message for transferring the token manager role for a currency from one account to another.
$msg->remove_signing_public_key_transaction()/$msg->remove_signing_public_key_transaction($value)Type:
Message(Google::Cloud::Universalledger::V1::Transactions::RemoveSigningPublicKey)Optional. Message for removing an account signing key.
$msg->replace_signing_public_key_transaction()/$msg->replace_signing_public_key_transaction($value)Type:
Message(Google::Cloud::Universalledger::V1::Transactions::ReplaceSigningPublicKey)Optional. Message for replacing an account signing key.
$msg->chain()/$msg->chain($value)Type:
Message(Google::Cloud::Universalledger::V1::Types::TransactionChain)Optional. Message for a transaction chain including multiple transaction units to execute in sequence.
$msg->sender_id()/$msg->sender_id($value)Type:
StringRequired. The ID of the account that is sending this transaction.
$msg->other_signatory_ids()/$msg->other_signatory_ids($value)Type:
StringOptional. The IDs of accounts that, in addition to the sender, have signed this transaction.
$msg->sequence_number()/$msg->sequence_number($value)Type:
Int64Required. A unique, monotonically increasing number, starting from 0.
This number must be increased by one for each transaction previously submitted to the network by the same transaction sender.
Note this does not include any transaction units that may have been submitted as part of a chain, which must not set a sequence number. But it does include the sender of the transaction chain itself.
$msg->chained_unit()/$msg->chained_unit($value)Type:
BoolMust be set to true if this client transaction is part of a transaction chain. Otherwise, it must be set to false.
This is necessary to prevent a signed transaction intended to be part of a chain from being submitted on its own.
$msg->network()/$msg->network($value)Type:
StringRequired. The name of the network this transaction is intended for, such as `user-testing`. The transaction will be rejected if the name does not match that of the network processing the transaction.
Google::Cloud::Universalledger::V1::Types::SignedTransaction
A transaction with attached signatures. To submit a transaction, this message should be serialized and included in a [SubmitTransactionRequest][google.cloud.universalledger.v1.SubmitTransactionRequest].
Inherits from Protobuf::Message.
Accessors
$msg->serialized_client_transaction()/$msg->serialized_client_transaction($value)Type:
BytesRequired. A serialized [ClientTransaction][google.cloud.universalledger.v1.ClientTransaction] with the transaction details.
$msg->sender_signature()/$msg->sender_signature($value)Type:
BytesRequired. The signature of the transaction sender.
The signature should be computed by signing the `serialized_client_transaction` bytes with their own private key.
For a transaction chain, the bytes to be signed are computed as the concatenation of:
- A digest of the serialized client transaction of the entire chain. - A digest of the serialized signed transaction of each unit in the chain, in the order they appear in the chain.
The digests are computed using SHA-256.
$msg->sender_signing_key_slot()/$msg->sender_signing_key_slot($value)Type:
Enum(Google::Cloud::Universalledger::V1::KeySlot)Optional. The key slot of the sender used to sign the transaction. Uses the primary slot of the sender account if not specified.
$msg->other_signatures()/$msg->other_signatures($value)Type:
BytesOptional. The signatures of accounts listed as additional transaction signatories. The number and order of these signatures must match the `signatories` field in the [ClientTransaction][google.cloud.universalledger.v1.ClientTransaction].
The bytes to be signed are the same as those for the `sender_signature`, which each signatory should sign with their own private key.
The number and identity of additional signatories depends on the particular transaction kind. For a transaction chain, one signature is needed for each account appearing either as the sender or as a signatory of a unit in the chain.
$msg->other_signing_key_slots()/$msg->other_signing_key_slots($value)Type:
Enum(Google::Cloud::Universalledger::V1::KeySlot)Optional. The key slots of the accounts listed as additional transaction signatories. If set, the number and order of these key slots must match the `other_signatures` field in the [SignedTransaction][google.cloud.universalledger.v1.SignedTransaction]. Defaults to the primary slot of each account if not specified.
Google::Cloud::Universalledger::V1::Types::TransactionChain
A transaction chain including multiple transaction units to execute in sequence.
The units will be executed sequentially, in the order they are listed. If all of the units succeed, their cumulative effects will be committed atomically to the world state. Otherwise, if any of them fails, the whole chain will be failed and none of its effects will be applied.
Inherits from Protobuf::Message.
Accessors
$msg->units()/$msg->units($value)Type:
BytesThe individual units of the chain. Each unit must be a serialized [SignedTransaction][google.cloud.universalledger.v1.SignedTransaction].
Note that the serialized bytes are required in order to determine the bytes to be signed for the chain itself.
Google::Cloud::Universalledger::V1::Types::MerkleTree
A Merkle tree with a cryptographic digest of the root node.
Inherits from Protobuf::Message.
Accessors
$msg->root_digest_hex()/$msg->root_digest_hex($value)Type:
StringOutput only. The hexadecimal representation of the digest of the root node. Format: A 64-character hexadecimal string.
$msg->num_transactions()/$msg->num_transactions($value)Type:
Int64Output only. The number of transactions in the tree.
Google::Cloud::Universalledger::V1::Types::RoundCertificate
Certificate of the execution of a round by a specific validator.
Inherits from Protobuf::Message.
Accessors
$msg->round_id()/$msg->round_id($value)Type:
Int64Output only. The ID of the round for which the certificate is for.
$msg->validator_id()/$msg->validator_id($value)Type:
StringOutput only. The human readable validator identifier. This is used to look up the public key against which the `validator_signatures` is verified.
$msg->round_state_checksum_hex()/$msg->round_state_checksum_hex($value)Type:
StringOutput only. The hex representation of the homomorphic digest over the world state after the effects of this round are applied.
$msg->round_delta_checksum_hex()/$msg->round_delta_checksum_hex($value)Type:
StringOutput only. The hex representation of the homomorphic digest over the aggregated transaction effects of this round.
$msg->merkle_tree()/$msg->merkle_tree($value)Type:
Message(Google::Cloud::Universalledger::V1::Types::MerkleTree)Output only. Merkle tree having this round as root node and transaction batches (executed in the round) as the leaves.
$msg->validator_signatures()/$msg->validator_signatures($value)Type:
BytesOptional. The signature of the validator. This is signed over the digest of the preceding payload of this record.
$msg->is_finalized()/$msg->is_finalized($value)Type:
BoolOutput only. Boolean to indicate if the round is finalized, i.e., whether a sufficient quorum of validators have certified this round with the same certificate.
Google::Cloud::Universalledger::V1::Types::TransactionEffect
Represents an update by some transaction to the world state.
If it has a `delta_val`, it is assumed to be a delta (an integer offset) applied to the previously stored value on a given key. In that case, `new_val` and `old_val` should be empty.
Otherwise, it is assumed to have at least one of `old_val` or `new_val` (or both). An empty `old_val` indicates the value was inserted. An empty `new_val` indicates the value was deleted.
Inherits from Protobuf::Message.
Accessors
$msg->key()/$msg->key($value)Type:
BytesOutput only. The key in the world state that was updated.
$msg->old_val()/$msg->old_val($value)Type:
BytesOutput only. The value of the key before the transaction was executed.
$msg->new_val()/$msg->new_val($value)Type:
BytesOutput only. The value of the key after the transaction was executed.
$msg->delta_val()/$msg->delta_val($value)Type:
Int64Output only. An integer offset that was applied to the previously stored value.
Google::Cloud::Universalledger::V1::Types::TransactionStatus
Represents the status of a transaction execution.
Inherits from Protobuf::Message.
Accessors
$msg->code()/$msg->code($value)Type:
Int32Output only. The status code, a numeric value whose meaning is defined by the corresponding [gRPC status code](https://github.com/grpc/grpc/blob/master/doc/statuscodes.md).
$msg->message()/$msg->message($value)Type:
BytesOutput only. The error message, if any. Set only if code is not `OK`. This is a string encoded as utf-8 bytes. Stored as bytes to prevent any issues with the determinism of the encoding.
Google::Cloud::Universalledger::V1::Types::TransactionEffects
Effects of the execution of a transaction.
Inherits from Protobuf::Message.
Accessors
$msg->status()/$msg->status($value)Type:
Message(Google::Cloud::Universalledger::V1::Types::TransactionStatus)Output only. The resulting status of the transaction execution.
$msg->effects()/$msg->effects($value)Type:
Message(Google::Cloud::Universalledger::V1::Types::TransactionEffect)Output only. Deprecated: Query the network state instead to determine any changes to the world state. The effects of the transaction in the world state.
Google::Cloud::Universalledger::V1::Types::TransactionEvent
An event produced by a transaction.
Inherits from Protobuf::Message.
Accessors
$msg->type()/$msg->type($value)Type:
StringOutput only. The type of event. A special event of type `transaction_output` contains the outputs produced by the transaction—for example, the account ID of a newly created account.
$msg->attributes()/$msg->attributes($value)Type:
Message(Google::Cloud::Universalledger::V1::Types::TransactionEvent::EventAttribute)Output only. The event attributes as arbitrary key-value pairs.
Google::Cloud::Universalledger::V1::Types::TransactionCertificate
Certificate of the execution of a specific transaction in a round.
Inherits from Protobuf::Message.
Accessors
$msg->transaction_digest_hex()/$msg->transaction_digest_hex($value)Type:
StringOutput only. The ID of the transaction this certificate is for.
$msg->round_id()/$msg->round_id($value)Type:
Int64Output only. The ID of the execution round at which this transaction was executed in.
$msg->transaction_effects()/$msg->transaction_effects($value)Type:
Message(Google::Cloud::Universalledger::V1::Types::TransactionEffects)Output only. The effects from the transaction execution.
$msg->events()/$msg->events($value)Type:
Message(Google::Cloud::Universalledger::V1::Types::TransactionEvent)Output only. Events produced by the transaction.
$msg->transaction_effects_state_checksum_hex()/$msg->transaction_effects_state_checksum_hex($value)Type:
StringOutput only. Homomorphic checksum of the effects. A 2048 byte value encoded as a hexadecimal string.
$msg->certification_results_digest_hex()/$msg->certification_results_digest_hex($value)Type:
StringOutput only. The cryptographic digest of all the previous fields in sequence. Used to build a Merkle tree for the proof of inclusion.
Google::Cloud::Universalledger::V1::Types::ProofOfInclusion
Certificate of the inclusion of the effects of a transaction in the world state.
Inherits from Protobuf::Message.
Accessors
$msg->transaction_certificate()/$msg->transaction_certificate($value)Type:
Message(Google::Cloud::Universalledger::V1::Types::TransactionCertificate)Output only. Certificate of the inclusion of the transaction effects in a specific round.
$msg->round_certificate()/$msg->round_certificate($value)Type:
Message(Google::Cloud::Universalledger::V1::Types::RoundCertificate)Output only. Certificate of the execution of the round.
$msg->path_to_round_root()/$msg->path_to_round_root($value)Type:
Message(Google::Cloud::Universalledger::V1::Types::ProofOfInclusion::MerkleTreeNode)Output only. Cryptographic proof of inclusion of the transaction effects in the execution round.
It is given as a path from a given leaf (a transaction digest) to the root of the execution round. The path is represented as a list of (left child, right child) pairs, and the first pair is the left and right children of the given leaf's parent node. For example, assuming the Merkle tree was built with eight leaf digests `[t0, t1, t2, t3, t4, t5, t6, t7]`, having the following structure:
_____root_digest____ | | __ h20__ __h21__ | | | | h10 h11 h12 h13 | | | | | | | | t0 t1 t2 t3 t4 t5 t6 t7In here, `path_to_round_root` for `t0` will contain: `[(t0, t1), (h10, h11), (h20, h21)]`.
One can consecutively compute SHA-256 digests of each path node to verify that the digest of the path produces the same value as the `round_certificate.merkle_tree.root_digest_hex`. Thus, verifying that the leaf was included in the round's Merkle tree.
Google::Cloud::Universalledger::V1::Types::TransactionAttempt
The state of an attempted transaction submission.
Inherits from Protobuf::Message.
Accessors
$msg->status()/$msg->status($value)Type:
Enum(Google::Cloud::Universalledger::V1::TransactionAttempt::TransactionStatus)Output only. The current status of the transaction attempt.
$msg->proof_of_inclusion()/$msg->proof_of_inclusion($value)Type:
Message(Google::Cloud::Universalledger::V1::Types::ProofOfInclusion)Output only. Certificate of the inclusion of the transaction effects in the world state. Only provided if status is `FINALIZED`.
$msg->status_events()/$msg->status_events($value)Type:
Message(Google::Cloud::Universalledger::V1::StatusEvent::StatusEvent)Output only. The ordered status events recorded for the transaction attempt.
Enum: TransactionAttempt::TransactionStatus
TRANSACTION_STATUS_UNSPECIFIED=>0PENDING=>1FINALIZED=>2
Google::Cloud::Universalledger::V1::Types::SignedQueryRequest
A signed query request from the client.
Inherits from Protobuf::Message.
Accessors
$msg->serialized_client_query()/$msg->serialized_client_query($value)Type:
BytesRequired. A protobuf serialized [ClientQuery][google.cloud.universalledger.v1.ClientQuery] to query the Universal Ledger network.
$msg->sender_signature()/$msg->sender_signature($value)Type:
BytesOptional. The signature of the sender of the query request, computed over the `serialized_client_query` bytes. If this field is omitted, the query is treated as anonymous, and only public information will be returned.
The signature is verified by the server only if the sender identifier is provided in the [ClientQuery][google.cloud.universalledger.v1.ClientQuery]. The signature is rejected if expiry time in the serialized [ClientQuery][google.cloud.universalledger.v1.ClientQuery] is missing, is in the past, or more than 5 minutes in the future.
$msg->sender_signing_key_slot()/$msg->sender_signing_key_slot($value)Type:
Enum(Google::Cloud::Universalledger::V1::KeySlot)Optional. The key slot of the sender used to sign the query request. Uses the primary slot of the sender account if not specified.
Google::Cloud::Universalledger::V1::Types::ClientQuery
Represents a query request from a client.
Inherits from Protobuf::Message.
Accessors
$msg->account_query()/$msg->account_query($value)Type:
Message(Google::Cloud::Universalledger::V1::Types::AccountQuery)Optional. Query for the details of an account.
$msg->transaction_state_query()/$msg->transaction_state_query($value)Type:
Message(Google::Cloud::Universalledger::V1::Types::TransactionStateQuery)Optional. Query for the state of a transaction.
$msg->sender_id()/$msg->sender_id($value)Type:
StringOptional. The sender of the query request.
$msg->expire_time()/$msg->expire_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Optional. The time at which the query will expire. This helps to limit the exposure to replay attacks. This field is required if the [SignedQueryRequest][google.cloud.universalledger.v1.SignedQueryRequest] contains a signature and is optional otherwise. The expiration time must be in the future and at most 5 minutes from the current time, that is `now <= expire_time <= now + 5 min`.
Google::Cloud::Universalledger::V1::Types::AccountQuery
A request to query information about an account.
Inherits from Protobuf::Message.
Accessors
$msg->account_id()/$msg->account_id($value)Type:
StringRequired. The ID of the account to get information about.
$msg->round_id()/$msg->round_id($value)Type:
Int64Optional. The ID of the execution round (similar to block "height") at which to request data. The returned account information will be accurate for the world state at this execution round. If unspecified, uses the latest finalized round as known by the serving validator. The state at a given round ID is always consistent and canonical.
Google::Cloud::Universalledger::V1::Types::TransactionStateQuery
A request to query the state of a transaction.
Inherits from Protobuf::Message.
Accessors
$msg->transaction_digest_hex()/$msg->transaction_digest_hex($value)Type:
StringRequired. The transaction ID to get the state of.
Google::Cloud::Universalledger::V1::Types::TransactionState
The state of a transaction.
Inherits from Protobuf::Message.
Accessors
$msg->transaction_attempts()/$msg->transaction_attempts($value)Type:
Message(Google::Cloud::Universalledger::V1::Types::TransactionAttempt)One entry per each known submission of the transaction to the validator handling the request.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Universalledger::V1::Types::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.