Sui gRPC Message Definitions
Complete field-level reference for all Sui Full Node gRPC message types.
See also: Message Definitions |
Enum & Scalar Types |
Methods
CircomG1
A G1 point.
| Field | Type | Label | Description |
| e0 | string | optional | base10 encoded Bn254FieldElement |
| e1 | string | optional | base10 encoded Bn254FieldElement |
| e2 | string | optional | base10 encoded Bn254FieldElement |
CircomG2
A G2 point.
| Field | Type | Label | Description |
| e00 | string | optional | base10 encoded Bn254FieldElement |
| e01 | string | optional | base10 encoded Bn254FieldElement |
| e10 | string | optional | base10 encoded Bn254FieldElement |
| e11 | string | optional | base10 encoded Bn254FieldElement |
| e20 | string | optional | base10 encoded Bn254FieldElement |
| e21 | string | optional | base10 encoded Bn254FieldElement |
MultisigAggregatedSignature
Aggregated signature from members of a multisig committee.
| Field | Type | Label | Description |
| signatures | MultisigMemberSignature | repeated | The plain signatures encoded with signature scheme.
The signatures must be in the same order as they are listed in the committee. |
| bitmap | uint32 | optional | Bitmap indicating which committee members contributed to the
signature. |
| legacy_bitmap | bytes | optional | If present, means this signature's on-chain format uses the old
legacy multisig format. |
| committee | MultisigCommittee | optional | The committee to use to validate this signature. |
MultisigCommittee
A multisig committee.
| Field | Type | Label | Description |
| members | MultisigMember | repeated | A list of committee members and their corresponding weight. |
| threshold | uint32 | optional | The threshold of signatures needed to validate a signature from
this committee. |
MultisigMember
A member in a multisig committee.
| Field | Type | Label | Description |
| public_key | MultisigMemberPublicKey | optional | The public key of the committee member. |
| weight | uint32 | optional | The weight of this member's signature. |
MultisigMemberPublicKey
Set of valid public keys for multisig committee members.
| Field | Type | Label | Description |
| scheme | SignatureScheme | optional | The signature scheme of this public key. |
| public_key | bytes | optional | Public key bytes if scheme is ed25519 | secp256k1 | secp256r1 | passkey | mldsa65. |
| zklogin | ZkLoginPublicIdentifier | optional | A zkLogin public identifier for `ZKLOGIN` or `ZKLOGIN_V2`. |
MultisigMemberSignature
A signature from a member of a multisig committee.
| Field | Type | Label | Description |
| scheme | SignatureScheme | optional | The signature scheme of this signature. |
| signature | bytes | optional | Signature bytes if scheme is ed25519 | secp256k1 | secp256r1 | mldsa65. |
| zklogin | ZkLoginAuthenticator | optional | The zklogin authenticator if scheme is `ZKLOGIN`. |
| passkey | PasskeyAuthenticator | optional | The passkey authenticator if scheme is `PASSKEY`. |
| zklogin_v2 | ZkLoginAuthenticatorV2 | optional | The zkLogin V2 authenticator if scheme is `ZKLOGIN_V2`. |
PasskeyAuthenticator
A passkey authenticator.
See
[struct.PasskeyAuthenticator](https://mystenlabs.github.io/sui-rust-sdk/sui_sdk_types/struct.PasskeyAuthenticator.html#bcs)
for more information on the requirements on the shape of the
`client_data_json` field.
| Field | Type | Label | Description |
| authenticator_data | bytes | optional | Opaque authenticator data for this passkey signature.
See [Authenticator Data](https://www.w3.org/TR/webauthn-2/#sctn-authenticator-data) for
more information on this field. |
| client_data_json | string | optional | Structured, unparsed, JSON for this passkey signature.
See [CollectedClientData](https://www.w3.org/TR/webauthn-2/#dictdef-collectedclientdata)
for more information on this field. |
| signature | SimpleSignature | optional | A secp256r1 signature. |
SimpleSignature
Either an ed25519, secp256k1, secp256r1 or mldsa65 signature
| Field | Type | Label | Description |
| scheme | SignatureScheme | optional | The signature scheme of this signature. |
| signature | bytes | optional | Signature bytes |
| public_key | bytes | optional | Public key bytes |
UserSignature
A signature from a user.
| Field | Type | Label | Description |
| bcs | Bcs | optional | This signature serialized as as BCS.
When provided as input this will support both the form that is length
prefixed as well as not length prefixed. |
| scheme | SignatureScheme | optional | The signature scheme of this signature. |
| simple | SimpleSignature | | Simple signature if scheme is ed25519 | secp256k1 | secp256r1 | mldsa65. |
| multisig | MultisigAggregatedSignature | | The multisig aggregated signature if scheme is `MULTISIG`. |
| zklogin | ZkLoginAuthenticator | | The zklogin authenticator if scheme is `ZKLOGIN`. |
| passkey | PasskeyAuthenticator | | The passkey authenticator if scheme is `PASSKEY`. |
| zklogin_v2 | ZkLoginAuthenticatorV2 | | The zkLogin V2 authenticator if scheme is `ZKLOGIN_V2`. |
ValidatorAggregatedSignature
An aggregated signature from multiple validators.
| Field | Type | Label | Description |
| epoch | uint64 | optional | The epoch when this signature was produced.
This can be used to lookup the `ValidatorCommittee` from this epoch
to verify this signature. |
| signature | bytes | optional | The 48-byte Bls12381 aggregated signature. |
| bitmap | bytes | optional | Bitmap indicating which members of the committee contributed to
this signature. |
ValidatorCommittee
The validator set for a particular epoch.
ValidatorCommitteeMember
A member of a validator committee.
| Field | Type | Label | Description |
| public_key | bytes | optional | The 96-byte Bls12381 public key for this validator. |
| weight | uint64 | optional | voting weight this validator possesses. |
ZkLoginAuthenticator
A zklogin authenticator.
| Field | Type | Label | Description |
| inputs | ZkLoginInputs | optional | Zklogin proof and inputs required to perform proof verification. |
| max_epoch | uint64 | optional | Maximum epoch for which the proof is valid. |
| signature | SimpleSignature | optional | User signature with the public key attested to by the provided proof. |
| public_identifier | ZkLoginPublicIdentifier | optional | The public identifier (similar to a public key) for this zklogin authenticator |
| jwk_id | JwkId | optional | The id of the JWK used to authorize this zklogin authenticator |
ZkLoginAuthenticatorV2
A zkLogin V2 authenticator.
| Field | Type | Label | Description |
| inputs | ZkLoginInputsV2 | optional | Proof and inputs required for verification. |
| max_epoch | uint64 | optional | Maximum epoch for which the proof is valid. |
| signature | SimpleSignature | optional | User signature with the public key attested to by the proof. |
| public_identifier | ZkLoginPublicIdentifier | optional | The authenticator's public identifier. |
| jwk_id | JwkId | optional | The ID of the JWK used to authorize this authenticator. |
ZkLoginClaim
A claim of the iss in a zklogin proof.
| Field | Type | Label | Description |
| value | string | optional | |
| index_mod_4 | uint32 | optional | |
A zklogin groth16 proof and the required inputs to perform proof verification.
| Field | Type | Label | Description |
| proof_points | ZkLoginProof | optional | |
| iss_base64_details | ZkLoginClaim | optional | |
| header_base64 | string | optional | |
| address_seed | string | optional | base10 encoded Bn254FieldElement |
Proof and inputs for the zkLogin V2 circuit.
| Field | Type | Label | Description |
| proof_points | ZkLoginProof | optional | |
| ext_iss | string | optional | The decoded extended issuer claim. |
| header_base64 | string | optional | |
| address_seed | bytes | optional | The full 32-byte address seed. |
ZkLoginProof
A zklogin groth16 proof.
ZkLoginPublicIdentifier
Public key equivalent for zklogin authenticators.
| Field | Type | Label | Description |
| iss | string | optional | |
| address_seed | string | optional | base10 encoded Bn254FieldElement |
AccumulatorWrite
| Field | Type | Label | Description |
| address | string | optional | |
| accumulator_type | string | optional | |
| operation | AccumulatorOperation | optional | |
| value_kind | AccumulatorValue | optional | |
| integer_value | uint64 | optional | Set when the accumulator value is an integer (value_kind = INTEGER). |
| integer_tuple | uint64 | repeated | Set, with len 2, when the accumulator value is an integer tuple
(value_kind = INTEGER_TUPLE). |
| event_digest_value | EventDigestEntry | repeated | Set when the accumulator value is an event digest list (value_kind = EVENT_DIGEST).
Contains a non-empty list of (event_index, digest) pairs representing
authenticated event stream entries within a transaction. |
ChangedObject
Input/output state of an object that was changed during execution.
| Field | Type | Label | Description |
| object_id | string | optional | ID of the object. |
| input_state | InputObjectState | optional | |
| input_version | uint64 | optional | Version of the object before this transaction executed. |
| input_digest | string | optional | Digest of the object before this transaction executed. |
| input_owner | Owner | optional | Owner of the object before this transaction executed. |
| output_state | OutputObjectState | optional | |
| output_version | uint64 | optional | Version of the object after this transaction executed. |
| output_digest | string | optional | Digest of the object after this transaction executed. |
| output_owner | Owner | optional | Owner of the object after this transaction executed. |
| accumulator_write | AccumulatorWrite | optional | The contents of the accumulator write when `output_state` is `OUTPUT_OBJECT_STATE_ACCUMULATOR_WRITE` |
| id_operation | IdOperation | optional | What happened to an `ObjectId` during execution. |
| object_type | string | optional | Type information is not provided by the effects structure but is instead
provided by an indexing layer |
EventDigestEntry
An entry in an event digest accumulator value.
| Field | Type | Label | Description |
| event_index | uint64 | optional | Index of the event within its transaction. |
| digest | string | optional | Digest of the event. |
TransactionEffects
The effects of executing a transaction.
| Field | Type | Label | Description |
| bcs | Bcs | optional | This TransactionEffects serialized as BCS. |
| digest | string | optional | The digest of this TransactionEffects. |
| version | int32 | optional | Version of this TransactionEffects. |
| status | ExecutionStatus | optional | The status of the execution. |
| epoch | uint64 | optional | The epoch when this transaction was executed. |
| gas_used | GasCostSummary | optional | The gas used by this transaction. |
| transaction_digest | string | optional | The transaction digest. |
| gas_object | ChangedObject | optional | Information about the gas object. Also present in the `changed_objects` vector.
System transactions that don't require gas will leave this as `None`. |
| events_digest | string | optional | The digest of the events emitted during execution,
can be `None` if the transaction does not emit any event. |
| dependencies | string | repeated | The set of transaction digests this transaction depends on. |
| lamport_version | uint64 | optional | The version number of all the written objects (excluding packages) by this transaction. |
| changed_objects | ChangedObject | repeated | Objects whose state are changed by this transaction. |
| unchanged_consensus_objects | UnchangedConsensusObject | repeated | Consensus objects that are not mutated in this transaction. Unlike owned objects,
read-only consensus objects' version are not committed in the transaction,
and in order for a node to catch up and execute it without consensus sequencing,
the version needs to be committed in the effects. |
| auxiliary_data_digest | string | optional | Auxiliary data that are not protocol-critical, generated as part of the effects but are stored separately.
Storing it separately allows us to avoid bloating the effects with data that are not critical.
It also provides more flexibility on the format and type of the data. |
| unchanged_loaded_runtime_objects | ObjectReference | repeated | |
UnchangedConsensusObject
A consensus object that wasn't changed during execution.
| Field | Type | Label | Description |
| kind | UnchangedConsensusObjectKind | optional | |
| object_id | string | optional | ObjectId of the consensus object. |
| version | uint64 | optional | Version of the consensus object. |
| digest | string | optional | Digest of the consensus object. |
| object_type | string | optional | Type information is not provided by the effects structure but is instead
provided by an indexing layer |
CheckpointCommitment
A commitment made by a checkpoint.
CheckpointSummary
A header for a checkpoint on the Sui blockchain.
On the Sui network, checkpoints define the history of the blockchain. They are quite similar to
the concept of blocks used by other blockchains like Bitcoin or Ethereum. The Sui blockchain,
however, forms checkpoints after transaction execution has already happened to provide a
certified history of the chain, instead of being formed before execution.
Checkpoints commit to a variety of state, including but not limited to:
- The hash of the previous checkpoint.
- The set of transaction digests, their corresponding effects digests, as well as the set of
user signatures that authorized its execution.
- The objects produced by a transaction.
- The set of live objects that make up the current state of the chain.
- On epoch transitions, the next validator committee.
`CheckpointSummary`s themselves don't directly include all of the previous information but they
are the top-level type by which all the information is committed to transitively via cryptographic
hashes included in the summary. `CheckpointSummary`s are signed and certified by a quorum of
the validator committee in a given epoch to allow verification of the chain's state.
| Field | Type | Label | Description |
| bcs | Bcs | optional | This CheckpointSummary serialized as BCS. |
| digest | string | optional | The digest of this CheckpointSummary. |
| epoch | uint64 | optional | Epoch that this checkpoint belongs to. |
| sequence_number | uint64 | optional | The height of this checkpoint. |
| total_network_transactions | uint64 | optional | Total number of transactions committed since genesis, including those in this
checkpoint. |
| content_digest | string | optional | The hash of the `CheckpointContents` for this checkpoint. |
| previous_digest | string | optional | The hash of the previous `CheckpointSummary`.
This will be `None` only for the first, or genesis, checkpoint. |
| epoch_rolling_gas_cost_summary | GasCostSummary | optional | The running total gas costs of all transactions included in the current epoch so far
until this checkpoint. |
| timestamp | Timestamp | optional | Timestamp of the checkpoint - number of milliseconds from the Unix epoch
Checkpoint timestamps are monotonic, but not strongly monotonic - subsequent
checkpoints can have the same timestamp if they originate from the same underlining consensus commit. |
| commitments | CheckpointCommitment | repeated | Commitments to checkpoint-specific state. |
| end_of_epoch_data | EndOfEpochData | optional | Extra data only present in the final checkpoint of an epoch. |
| version_specific_data | bytes | optional | `CheckpointSummary` is not an evolvable structure - it must be readable by any version of
the code. Therefore, to allow extensions to be added to `CheckpointSummary`,
opaque data can be added to checkpoints, which can be deserialized based on the current
protocol version. |
EndOfEpochData
Data, which when included in a `CheckpointSummary`, signals the end of an `Epoch`.
| Field | Type | Label | Description |
| next_epoch_committee | ValidatorCommitteeMember | repeated | The set of validators that will be in the `ValidatorCommittee` for the next epoch. |
| next_epoch_protocol_version | uint64 | optional | The protocol version that is in effect during the next epoch. |
| epoch_commitments | CheckpointCommitment | repeated | Commitments to epoch specific state (live object set) |
ExecutedTransaction
| Field | Type | Label | Description |
| digest | string | optional | The digest of this Transaction. |
| transaction | Transaction | optional | The transaction itself. |
| signatures | UserSignature | repeated | List of user signatures that are used to authorize the
execution of this transaction. |
| effects | TransactionEffects | optional | The `TransactionEffects` for this transaction. |
| events | TransactionEvents | optional | The `TransactionEvents` for this transaction.
This field might be empty, even if it was explicitly requested, if the
transaction didn't produce any events.
`sui.types.TransactionEffects.events_digest` is populated if the
transaction produced any events. |
| checkpoint | uint64 | optional | The sequence number for the checkpoint that includes this transaction. |
| timestamp | Timestamp | optional | The Unix timestamp of the checkpoint that includes this transaction. |
| balance_changes | BalanceChange | repeated | |
| objects | ObjectSet | optional | Set of objects either referenced as inputs or produced as
outputs from this Transaction. |
| transaction_index | uint64 | optional | Zero-based position of this transaction within the checkpoint that
includes it. |
Checkpoint
| Field | Type | Label | Description |
| sequence_number | uint64 | optional | The height of this checkpoint. |
| digest | string | optional | The digest of this Checkpoint's CheckpointSummary. |
| summary | CheckpointSummary | optional | The `CheckpointSummary` for this checkpoint. |
| signature | ValidatorAggregatedSignature | optional | An aggregated quorum signature from the validator committee that
certified this checkpoint. |
| contents | CheckpointContents | optional | The `CheckpointContents` for this checkpoint. |
| transactions | ExecutedTransaction | repeated | List of transactions included in this checkpoint. |
| objects | ObjectSet | optional | Set of objects either referenced as inputs or produced as
outputs by transactions included in this checkpoint.
In order to benefit from deduplication of objects that
appear in multiple transactions in this checkpoint, objects
will only be present here and the `transactions.objects`
field will not be populated. |
ProtocolConfig
| Field | Type | Label | Description |
| protocol_version | uint64 | optional | |
| feature_flags | FeatureFlagsEntry | repeated | Deprecated in favor of the lossless `configs` field. |
| attributes | AttributesEntry | repeated | Deprecated in favor of the lossless `configs` field. |
| configs | ConfigsEntry | repeated | |
AttributesEntry
ConfigsEntry
FeatureFlagsEntry
Jwk
A JSON web key.
Struct that contains info for a JWK. A list of them for different kinds can
be retrieved from the JWK endpoint (for example, <https://www.googleapis.com/oauth2/v3/certs>).
The JWK is used to verify the JWT token.
| Field | Type | Label | Description |
| kty | string | optional | Key type parameter, https://datatracker.ietf.org/doc/html/rfc7517#section-4.1. |
| e | string | optional | RSA public exponent, https://datatracker.ietf.org/doc/html/rfc7517#section-9.3. |
| n | string | optional | RSA modulus, https://datatracker.ietf.org/doc/html/rfc7517#section-9.3. |
| alg | string | optional | Algorithm parameter, https://datatracker.ietf.org/doc/html/rfc7517#section-4.4. |
JwkId
Key to uniquely identify a JWK.
| Field | Type | Label | Description |
| iss | string | optional | The issuer or identity of the OIDC provider. |
| kid | string | optional | A key ID used to uniquely identify a key from an OIDC provider. |
BalanceChange
The delta, or change, in balance for an address for a particular `Coin` type.
| Field | Type | Label | Description |
| address | string | optional | The account address that is affected by this balance change event. |
| coin_type | string | optional | The `Coin` type of this balance change event. |
| amount | string | optional | The amount or change in balance. |
Balance
Balance information for a specific coin type.
| Field | Type | Label | Description |
| coin_type | string | optional | The type of the coin (e.g., 0x2::sui::SUI). |
| balance | uint64 | optional | The total balance of `coin_type` in its smallest unit.
This is the sum of all spendable amounts of `coin_type` (`address_balance`
and `coin_balance`). |
| address_balance | uint64 | optional | The balance of `Balance<T>` in this address's Address Balance. |
| coin_balance | uint64 | optional | The balance of all `Coin<T>` objects owned by this address. |
BatchGetBalancesRequest
Request message for `StateService.BatchGetBalances`.
| Field | Type | Label | Description |
| requests | GetBalanceRequest | repeated | The balance requests to look up. Each request carries its own
`at_checkpoint`, so a batch may read balances at one checkpoint, across
different checkpoints, or from current state (when unset).
Servers accept at least `200` requests per batch and reject any batch
above their configured limit with `INVALID_ARGUMENT`. A malformed `owner`
or `coin_type`, or any per-item `at_checkpoint` refusal (see
`GetBalanceRequest.at_checkpoint`), fails the whole batch. |
BatchGetBalancesResponse
Response message for `StateService.BatchGetBalances`.
| Field | Type | Label | Description |
| balances | Balance | repeated | One balance entry per element of `BatchGetBalancesRequest.requests`, in
request order. Keys with no balance are returned with zero amounts. |
Metadata for a coin type
| Field | Type | Label | Description |
| id | string | optional | ObjectId of the `0x2::coin::CoinMetadata` object or
0x2::sui::coin_registry::Currency object (when registered with CoinRegistry). |
| decimals | uint32 | optional | Number of decimal places to coin uses. |
| name | string | optional | Name for the token |
| symbol | string | optional | Symbol for the token |
| description | string | optional | Description of the token |
| icon_url | string | optional | URL for the token logo |
| metadata_cap_id | string | optional | The MetadataCap ID if it has been claimed for this coin type.
This capability allows updating the coin's metadata fields.
Only populated when metadata is from CoinRegistry. |
| metadata_cap_state | MetadataCapState | optional | State of the MetadataCap for this coin type. |
CoinTreasury
Information about a coin type's `0x2::coin::TreasuryCap` and its total available supply
| Field | Type | Label | Description |
| id | string | optional | ObjectId of the `0x2::coin::TreasuryCap` object. |
| total_supply | uint64 | optional | Total available supply for this coin type. |
| supply_state | SupplyState | optional | Supply state indicating if the supply is fixed or can still be minted |
DynamicField
| Field | Type | Label | Description |
| kind | DynamicFieldKind | optional | |
| parent | string | optional | ObjectId of this dynamic field's parent. |
| field_id | string | optional | ObjectId of this dynamic field. |
| field_object | Object | optional | The field object itself |
| name | Bcs | optional | The dynamic field's "name" |
| value | Bcs | optional | The dynamic field's "value" |
| value_type | string | optional | The type of the dynamic field "value".
If this is a dynamic object field then this is the type of the object
itself (which is a child of this field), otherwise this is the type of the
value of this field. |
| child_id | string | optional | The ObjectId of the child object when a child is a dynamic
object field.
The presence or absence of this field can be used to determine if a child
is a dynamic field or a dynamic child object |
| child_object | Object | optional | The object itself when a child is a dynamic object field. |
GetBalanceRequest
Request message for `LiveDataService.GetBalance`.
| Field | Type | Label | Description |
| owner | string | optional | Required. The owner's Sui address. |
| coin_type | string | optional | Required. The type names for the coin (e.g., 0x2::sui::SUI). |
| at_checkpoint | uint64 | optional | Optional. Read the balance at the end of this checkpoint, within the
checkpoints the server retains for state reads. When unset, reads current
state.
Refusals:
- Below the server's retained checkpoint range for state reads:
`OUT_OF_RANGE` with reason `BELOW_EARLIEST_AVAILABLE`.
- Within the retained checkpoint range, but not yet servable on this
replica (for example while refilling after a restart): `UNAVAILABLE`
with reason `NOT_READY` (`cause`: `"checkpoint_unavailable"`); retry,
preferably on another replica.
- Above the highest checkpoint the server can serve for state reads:
`OUT_OF_RANGE` with reason `ABOVE_LATEST_AVAILABLE` (`bound`:
`"at_checkpoint"`).
- Server not set up for checkpoint-pinned state reads: `UNIMPLEMENTED`
with reason `NOT_SERVED_HERE`.
- Before the server's state indexes have any checkpoint ready:
`UNAVAILABLE` with reason `NOT_READY` (`cause`: `"index_empty"`). |
GetBalanceResponse
Response message for `LiveDataService.GetBalance`.
Return the total coin balance for one coin type, owned by the address owner.
| Field | Type | Label | Description |
| balance | Balance | optional | The balance information for the requested coin type. |
GetCoinInfoRequest
Request message for `NodeService.GetCoinInfo`.
| Field | Type | Label | Description |
| coin_type | string | optional | The coin type to request information about |
GetCoinInfoResponse
Response message for `NodeService.GetCoinInfo`.
| Field | Type | Label | Description |
| coin_type | string | optional | Required. The coin type. |
| metadata | CoinMetadata | optional | This field will be populated with information about this coin
type's `0x2::coin::CoinMetadata` if it exists and has not been wrapped. |
| treasury | CoinTreasury | optional | This field will be populated with information about this coin
type's `0x2::coin::TreasuryCap` if it exists and has not been wrapped. |
| regulated_metadata | RegulatedCoinMetadata | optional | If this coin type is a regulated coin, this field will be
populated with information either from its Currency object
in the CoinRegistry, or from its `0x2::coin::RegulatedCoinMetadata`
object for coins that have not been migrated to the CoinRegistry
If this coin is not known to be regulated, only the
coin_regulated_state field will be populated. |
ListBalancesRequest
Request message for `LiveDataService.ListBalances`.
| Field | Type | Label | Description |
| owner | string | optional | Required. The owner's Sui address. |
| page_size | uint32 | optional | The maximum number of balance entries to return. The service may return fewer than this value.
If unspecified, at most `50` entries will be returned.
The maximum value is `1000`; values above `1000` will be coerced to `1000`.
Must be unset when `options` is set (`INVALID_ARGUMENT` otherwise). |
| page_token | bytes | optional | A page token, received from a previous `ListBalances` call.
Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListBalances` must
match the call that provided the page token. A checkpoint-pinned page
token carries its checkpoint; setting `at_checkpoint` to a different
checkpoint fails with `INVALID_ARGUMENT`.
Must be unset when `options` is set (`INVALID_ARGUMENT` otherwise). |
| options | QueryOptions | optional | Optional. Cursor paging (see `QueryOptions`). `page_size` and `page_token`
must be unset when `options` is set (`INVALID_ARGUMENT` otherwise). Every
response in cursor paging sets `cursors` and `end` and never sets
`next_page_token`.
Canonical order is ascending by `coin_type`, ordered by the BCS encoding
of its Move `TypeTag` (not its string form). With `options.ordering` set
to `ORDERING_DESCENDING`, items are returned in reverse order. `limit`
defaults to `50` and is coerced to at most `1000`. Resume from the last
item's entry in `ListBalancesResponse.cursors`, as `after` when ascending
or `before` when descending.
Every cursor records the checkpoint of the listing's first page, so every
page of one listing reads the state as of the same checkpoint. A cursor
whose checkpoint differs from `at_checkpoint`, `after` and `before`
cursors from different checkpoints, a malformed cursor, or a cursor from
another listing or owner fails with `INVALID_ARGUMENT`. |
| at_checkpoint | uint64 | optional | Optional. Read balances at the end of this checkpoint, within the
checkpoints the server retains for state reads. When `options` is set
without `at_checkpoint` or a cursor, the server reads as of the highest
checkpoint it can serve for state reads (or, when reading under a
checkpoint floor, the admitted checkpoint) and records that checkpoint in
the returned cursors. When `at_checkpoint`, `options`, and a
checkpoint-pinned `page_token` are all unset, reads current state.
Refusals for `at_checkpoint` or a cursor's checkpoint:
- Below the server's retained checkpoint range for state reads:
`OUT_OF_RANGE` with reason `BELOW_EARLIEST_AVAILABLE`.
- Within the retained checkpoint range, but not yet servable on this
replica (for example while refilling after a restart): `UNAVAILABLE`
with reason `NOT_READY` (`cause`: `"checkpoint_unavailable"`); retry,
preferably on another replica.
- Above the highest checkpoint the server can serve for state reads:
`OUT_OF_RANGE` with reason `ABOVE_LATEST_AVAILABLE` (`bound`:
`"at_checkpoint"` or `"cursor"`).
- Server not set up for checkpoint-pinned state reads: `UNIMPLEMENTED`
with reason `NOT_SERVED_HERE`.
- Before the server's state indexes have any checkpoint ready:
`UNAVAILABLE` with reason `NOT_READY` (`cause`: `"index_empty"`). |
ListBalancesResponse
Response message for `LiveDataService.ListBalances`.
Return the total coin balance for all coin types, owned by the address owner.
| Field | Type | Label | Description |
| balances | Balance | repeated | The list of coin types and their respective balances, in canonical order
(see `ListBalancesRequest.options`), or in reverse when `options.ordering`
is `ORDERING_DESCENDING`. |
| next_page_token | bytes | optional | A token, which can be sent as `page_token` to retrieve the next page.
If this field is omitted, there are no subsequent pages. Never set when
`ListBalancesRequest.options` is set. |
| cursors | bytes | repeated | Opaque cursor for each entry in `balances`, in matching index order, for
use as `ListBalancesRequest.options.after` or `options.before`. Set only
when `ListBalancesRequest.options` is set. |
| end | QueryEnd | optional | Set on every response when `ListBalancesRequest.options` is set, and never
otherwise. A full page ends with `QUERY_END_REASON_ITEM_LIMIT`; a shorter
page, the last, with:
- `QUERY_END_REASON_CHECKPOINT_BOUND`: reached the end of the owner's
balances.
- `QUERY_END_REASON_CURSOR_BOUND`: reached the far cursor (`before`
ascending, `after` descending). |
ListDynamicFieldsRequest
Request message for `NodeService.ListDynamicFields`
| Field | Type | Label | Description |
| parent | string | optional | Required. The `UID` of the parent, which owns the collections of dynamic fields. |
| page_size | uint32 | optional | The maximum number of dynamic fields to return. The service may return fewer than this value.
If unspecified, at most `50` entries will be returned.
The maximum value is `1000`; values above `1000` will be coerced to `1000`.
Must be unset when `options` is set (`INVALID_ARGUMENT` otherwise). |
| page_token | bytes | optional | A page token, received from a previous `ListDynamicFields` call.
Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListDynamicFields` must
match the call that provided the page token. A checkpoint-pinned page
token carries its checkpoint; setting `at_checkpoint` to a different
checkpoint fails with `INVALID_ARGUMENT`.
Must be unset when `options` is set (`INVALID_ARGUMENT` otherwise). |
| read_mask | FieldMask | optional | Mask specifying which fields to read.
If no mask is specified, defaults to `parent,field_id`. |
| filter | DynamicFieldFilter | optional | Optional. DNF filter over the parent's dynamic fields, e.g. a single
`name_type` literal `0x2::kiosk::Item` lists only the items in a kiosk.
Matching fields are returned in the same order as without a filter. If
absent, all dynamic fields of the parent are returned.
The service rejects a filter with more literals in total than it allows
with `INVALID_ARGUMENT`. |
| options | QueryOptions | optional | Optional. Cursor paging (see `QueryOptions`). `page_size` and `page_token`
must be unset when `options` is set (`INVALID_ARGUMENT` otherwise). Every
response in cursor paging sets `cursors` and `end` and never sets
`next_page_token`.
Canonical order is ascending by the field object's Move type
(`0x2::dynamic_field::Field<Name, Value>`), ordered by the BCS encoding of
its `StructTag` (not its string form), then by the field object's
`ObjectId` bytes. With `options.ordering` set to `ORDERING_DESCENDING`,
items are returned in reverse order. `limit` defaults to `50` and is
coerced to at most `1000`. Resume from the last item's entry in
`ListDynamicFieldsResponse.cursors`, as `after` when ascending or `before`
when descending.
Every cursor records the checkpoint of the listing's first page, so every
page of one listing reads the state as of the same checkpoint. A cursor
whose checkpoint differs from `at_checkpoint`, `after` and `before`
cursors from different checkpoints, a malformed cursor, or a cursor from
another listing or parent fails with `INVALID_ARGUMENT`. |
| at_checkpoint | uint64 | optional | Optional. Read dynamic fields at the end of this checkpoint, within the
checkpoints the server retains for state reads. When `options` is set
without `at_checkpoint` or a cursor, the server reads as of the highest
checkpoint it can serve for state reads (or, when reading under a
checkpoint floor, the admitted checkpoint) and records that checkpoint in
the returned cursors. When the read is pinned to a checkpoint
(`at_checkpoint`, `options`, or a checkpoint-pinned `page_token`), the
field object and any dynamic object field's child object are loaded at the
exact versions as of that checkpoint. When none of these is set, reads
current state, where an entry whose object is removed between the index
read and the object load may be skipped.
Refusals for `at_checkpoint` or a cursor's checkpoint:
- Below the server's retained checkpoint range for state reads or object
pruning floor: `OUT_OF_RANGE` with reason `BELOW_EARLIEST_AVAILABLE`.
- Within the retained checkpoint range, but not yet servable on this
replica (for example while refilling after a restart): `UNAVAILABLE`
with reason `NOT_READY` (`cause`: `"checkpoint_unavailable"`); retry,
preferably on another replica.
- Indexed object version missing during a checkpoint-pinned read:
`UNAVAILABLE` with reason `NOT_READY` (`cause`: `"pruning_race"`, never
silently skipped).
- Above the highest checkpoint the server can serve for state reads:
`OUT_OF_RANGE` with reason `ABOVE_LATEST_AVAILABLE` (`bound`:
`"at_checkpoint"` or `"cursor"`).
- Server not set up for checkpoint-pinned state reads: `UNIMPLEMENTED`
with reason `NOT_SERVED_HERE`.
- Before the server's state indexes have any checkpoint ready:
`UNAVAILABLE` with reason `NOT_READY` (`cause`: `"index_empty"`). |
ListDynamicFieldsResponse
Response message for `NodeService.ListDynamicFields`
| Field | Type | Label | Description |
| dynamic_fields | DynamicField | repeated | Page of dynamic fields owned by the specified parent, in canonical order
(see `ListDynamicFieldsRequest.options`), or in reverse when
`options.ordering` is `ORDERING_DESCENDING`. |
| next_page_token | bytes | optional | A token, which can be sent as `page_token` to retrieve the next page.
If this field is omitted, there are no subsequent pages. Never set when
`ListDynamicFieldsRequest.options` is set. |
| cursors | bytes | repeated | Opaque cursor for each entry in `dynamic_fields`, in matching index order,
for use as `ListDynamicFieldsRequest.options.after` or `options.before`.
Set only when `ListDynamicFieldsRequest.options` is set. |
| end | QueryEnd | optional | Set on every response when `ListDynamicFieldsRequest.options` is set, and
never otherwise. A page that stops at `options.limit` or the server's
response-size limit ends with `QUERY_END_REASON_ITEM_LIMIT` (so a page
shorter than `options.limit` can still end with
`QUERY_END_REASON_ITEM_LIMIT`). A page that exhausts its interval ends
with:
- `QUERY_END_REASON_CHECKPOINT_BOUND`: reached the end of the matching
dynamic fields.
- `QUERY_END_REASON_CURSOR_BOUND`: reached the far cursor (`before`
ascending, `after` descending). |
ListObjectsRequest
Request message for `StateService.ListObjects`.
| Field | Type | Label | Description |
| filter | ObjectFilter | optional | Optional. DNF filter over live Move struct objects (see `ObjectFilter`).
Matching objects are returned in the same order as without a filter. If
absent, all live Move struct objects (matching `owner` and `owner_kind`,
if set) as of the checkpoint are listed (packages are not Move struct
objects; use `MovePackageService.ListPackageVersions` for packages).
The service rejects a filter with more literals in total than it allows
with `INVALID_ARGUMENT`. |
| read_mask | FieldMask | optional | Mask specifying which fields to read on each `Object`.
If no mask is specified, defaults to `object_id,version,object_type`. |
| options | QueryOptions | optional | Optional. Cursor paging (see `QueryOptions`).
Canonical order depends on whether the request filters by owner:
- When `owner` and `owner_kind` are both unset: ascending by Move type
(ordered by the BCS encoding of its `StructTag`, not its string form),
then by `ObjectId` bytes.
- When `owner` or `owner_kind` is set: ascending by Move type (ordered by
the BCS encoding of its `StructTag`, not its string form), then for coin
objects (`0x2::coin::Coin<T>`) by balance descending, then by `ObjectId`
bytes.
With `options.ordering` set to `ORDERING_DESCENDING`, items are returned
in reverse order. `limit` defaults to `50` and is coerced to at most
`1000`. Resume from the last item frame's `ListObjectsResponse.cursor`, as
`after` when ascending or `before` when descending.
Every cursor records the checkpoint of the listing's first page, so every
page of one listing reads the state as of the same checkpoint. A cursor
whose checkpoint differs from `at_checkpoint`, `after` and `before`
cursors from different checkpoints, a malformed cursor, or a cursor from
another listing or owner fails with `INVALID_ARGUMENT`. |
| at_checkpoint | uint64 | optional | Optional. Read objects at the end of this checkpoint, within the
checkpoints the server retains for state reads. When unset on a first page
without cursors, the server reads as of the highest checkpoint it can
serve for state reads (or, when reading under a checkpoint floor, the
admitted checkpoint) and records that checkpoint in the returned cursors.
Each object is loaded at the exact version as of that checkpoint.
Refusals for `at_checkpoint` or a cursor's checkpoint:
- Below the server's retained checkpoint range for state reads or object
pruning floor: `OUT_OF_RANGE` with reason `BELOW_EARLIEST_AVAILABLE`.
- Within the retained checkpoint range, but not yet servable on this
replica (for example while refilling after a restart): `UNAVAILABLE`
with reason `NOT_READY` (`cause`: `"checkpoint_unavailable"`); retry,
preferably on another replica.
- Indexed object version missing during a checkpoint-pinned read:
`UNAVAILABLE` with reason `NOT_READY` (`cause`: `"pruning_race"`, never
silently skipped).
- Above the highest checkpoint the server can serve for state reads:
`OUT_OF_RANGE` with reason `ABOVE_LATEST_AVAILABLE` (`bound`:
`"at_checkpoint"` or `"cursor"`).
- Server not set up for checkpoint-pinned state reads: `UNIMPLEMENTED`
with reason `NOT_SERVED_HERE`.
- Before the server's state indexes have any checkpoint ready:
`UNAVAILABLE` with reason `NOT_READY` (`cause`: `"index_empty"`). |
| owner | string | optional | Optional. The address of the account (when `owner_kind` is unset or
`ADDRESS`) or parent `ObjectId` (when `owner_kind` is `OBJECT`) that owns
the objects. When `owner` is set and `owner_kind` is unset, `owner_kind`
defaults to `ADDRESS`. Required when `owner_kind` is `ADDRESS` or
`OBJECT`; must be unset when `owner_kind` is `SHARED` or `IMMUTABLE`
(`INVALID_ARGUMENT` otherwise). |
| owner_kind | OwnerKind | optional | Optional. Ownership category to filter by. When both `owner` and
`owner_kind` are unset, objects of all owners are listed.
Supported values:
- `ADDRESS`: objects owned by the `owner` address, including
consensus-address-owned (`CONSENSUS_ADDRESS`) objects. Requires `owner`.
- `OBJECT`: objects owned by the `owner` parent `ObjectId`. Requires
`owner`.
- `SHARED`: shared objects. `owner` must be unset.
- `IMMUTABLE`: immutable objects. `owner` must be unset.
`OWNER_KIND_UNKNOWN` and `CONSENSUS_ADDRESS` fail with `INVALID_ARGUMENT`
(`ADDRESS` already includes consensus-address-owned objects). |
ListObjectsResponse
Response frame for `StateService.ListObjects`.
A frame that delivers an item sets `object` and `cursor`, in canonical order
(see `ListObjectsRequest.options`) or in reverse for `ORDERING_DESCENDING`.
`end` is set exactly once, on the final frame of a successful stream: with
`QUERY_END_REASON_ITEM_LIMIT` it rides on the last item's frame, and
otherwise the final frame leaves `object` and `cursor` unset. In this
listing:
- `QUERY_END_REASON_CHECKPOINT_BOUND`: reached the end of the matching
objects.
- `QUERY_END_REASON_CURSOR_BOUND`: reached the far cursor (`before`
ascending, `after` descending).
| Field | Type | Label | Description |
| object | Object | optional | The matching object, with the fields selected by `read_mask`. Unset on a
final frame that carries only `end`. |
| cursor | bytes | optional | Opaque position of this object in the listing, for use as
`ListObjectsRequest.options.after` or `options.before`. Set on every frame
that delivers an `object`; unset on a final frame without an `object`. |
| end | QueryEnd | optional | Set exactly once, on the final frame of a successful stream. |
ListOwnedObjectsRequest
| Field | Type | Label | Description |
| owner | string | optional | The address of the account (when `owner_kind` is unset or `ADDRESS`) or
parent `ObjectId` (when `owner_kind` is `OBJECT`) that owns the objects.
Required for `ADDRESS` and `OBJECT`; must be unset for `SHARED` and
`IMMUTABLE` (`INVALID_ARGUMENT` otherwise). |
| page_size | uint32 | optional | The maximum number of entries return. The service may return fewer than this value.
If unspecified, at most `50` entries will be returned.
The maximum value is `1000`; values above `1000` will be coerced to `1000`.
Must be unset when `options` is set (`INVALID_ARGUMENT` otherwise). |
| page_token | bytes | optional | A page token, received from a previous `ListOwnedObjects` call.
Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListOwnedObjects` must
match the call that provided the page token. A checkpoint-pinned page
token carries its checkpoint; setting `at_checkpoint` to a different
checkpoint fails with `INVALID_ARGUMENT`.
Must be unset when `options` is set (`INVALID_ARGUMENT` otherwise). |
| read_mask | FieldMask | optional | Mask specifying which fields to read.
If no mask is specified, defaults to `object_id,version,object_type`. |
| object_type | string | optional | Optional type filter to limit the types of objects listed, accepting the
specificity levels of `ObjectTypeFilter`:
"0xaddr" -> objects whose type is defined at this address
"0xaddr::module" -> objects whose type is in this module
"0xaddr::module::Name" -> objects with this type name (any instantiation)
"0xaddr::module::Name<T1, T2>" -> objects with this exact generic instantiation
Equivalent to a `filter` with a single `object_type` literal. Must not be
set together with `filter`. |
| filter | ObjectFilter | optional | Optional. DNF filter over the owner's objects, e.g. a single term with
the negated `object_type` literals `0x2::coin::Coin` and
`0x2::kiosk::KioskOwnerCap` lists everything except coins and kiosk owner
caps. Matching objects are returned in the same order as without a
filter. If absent, all objects of the owner are returned. Must not be set
together with `object_type`.
The service rejects a filter with more literals in total than it allows
with `INVALID_ARGUMENT`. |
| options | QueryOptions | optional | Optional. Cursor paging (see `QueryOptions`). `page_size` and `page_token`
must be unset when `options` is set (`INVALID_ARGUMENT` otherwise). Every
response in cursor paging sets `cursors` and `end` and never sets
`next_page_token`.
Canonical order is ascending by owner (`owner_kind` and `owner`), then by
Move type (ordered by the BCS encoding of its `StructTag`, not its string
form), then for coin objects (`0x2::coin::Coin<T>`) by balance descending,
then by `ObjectId` bytes. With `options.ordering` set to
`ORDERING_DESCENDING`, items are returned in reverse order. `limit`
defaults to `50` and is coerced to at most `1000`. Resume from the last
item's entry in `ListOwnedObjectsResponse.cursors`, as `after` when
ascending or `before` when descending.
Every cursor records the checkpoint of the listing's first page, so every
page of one listing reads the state as of the same checkpoint. A cursor
whose checkpoint differs from `at_checkpoint`, `after` and `before`
cursors from different checkpoints, a malformed cursor, or a cursor from
another listing or owner fails with `INVALID_ARGUMENT`. |
| at_checkpoint | uint64 | optional | Optional. Read objects at the end of this checkpoint, within the
checkpoints the server retains for state reads. When `options` is set
without `at_checkpoint` or a cursor, the server reads as of the highest
checkpoint it can serve for state reads (or, when reading under a
checkpoint floor, the admitted checkpoint) and records that checkpoint in
the returned cursors. When the read is pinned to a checkpoint
(`at_checkpoint`, `options`, or a checkpoint-pinned `page_token`), each
object is loaded at the exact version as of that checkpoint. When none of
these is set, reads current state, where an entry whose object is removed
between the index read and the object load may be skipped.
Refusals for `at_checkpoint` or a cursor's checkpoint:
- Below the server's retained checkpoint range for state reads or object
pruning floor: `OUT_OF_RANGE` with reason `BELOW_EARLIEST_AVAILABLE`.
- Within the retained checkpoint range, but not yet servable on this
replica (for example while refilling after a restart): `UNAVAILABLE`
with reason `NOT_READY` (`cause`: `"checkpoint_unavailable"`); retry,
preferably on another replica.
- Indexed object version missing during a checkpoint-pinned read:
`UNAVAILABLE` with reason `NOT_READY` (`cause`: `"pruning_race"`, never
silently skipped).
- Above the highest checkpoint the server can serve for state reads:
`OUT_OF_RANGE` with reason `ABOVE_LATEST_AVAILABLE` (`bound`:
`"at_checkpoint"` or `"cursor"`).
- Server not set up for checkpoint-pinned state reads: `UNIMPLEMENTED`
with reason `NOT_SERVED_HERE`.
- Before the server's state indexes have any checkpoint ready:
`UNAVAILABLE` with reason `NOT_READY` (`cause`: `"index_empty"`). |
| owner_kind | OwnerKind | optional | Optional. Ownership category to list. When unset, defaults to
`Owner.OwnerKind.ADDRESS`.
Supported values:
- `ADDRESS`: objects owned by the `owner` address, including
consensus-address-owned (`CONSENSUS_ADDRESS`) objects. Requires `owner`.
- `OBJECT`: objects owned by the `owner` parent `ObjectId` (usable with
`object_type` or `filter`). Requires `owner`.
- `SHARED`: shared objects. `owner` must be unset.
- `IMMUTABLE`: immutable objects. `owner` must be unset.
`OBJECT`, `SHARED`, and `IMMUTABLE` require `options`, `at_checkpoint`, or
a checkpoint-pinned `page_token`; plain `page_size` / `page_token` paging
for those kinds fails with `INVALID_ARGUMENT`.
`OWNER_KIND_UNKNOWN` and `CONSENSUS_ADDRESS` fail with `INVALID_ARGUMENT`
(`ADDRESS` already includes consensus-address-owned objects). |
ListOwnedObjectsResponse
| Field | Type | Label | Description |
| objects | Object | repeated | Page of matching objects, in canonical order (see
`ListOwnedObjectsRequest.options`), or in reverse when `options.ordering`
is `ORDERING_DESCENDING`. |
| next_page_token | bytes | optional | A token, which can be sent as `page_token` to retrieve the next page.
If this field is omitted, there are no subsequent pages. Never set when
`ListOwnedObjectsRequest.options` is set. |
| cursors | bytes | repeated | Opaque cursor for each entry in `objects`, in matching index order, for
use as `ListOwnedObjectsRequest.options.after` or `options.before`. Set
only when `ListOwnedObjectsRequest.options` is set. |
| end | QueryEnd | optional | Set on every response when `ListOwnedObjectsRequest.options` is set, and
never otherwise. A page that stops at `options.limit` or the server's
response-size limit ends with `QUERY_END_REASON_ITEM_LIMIT` (so a page
shorter than `options.limit` can still end with
`QUERY_END_REASON_ITEM_LIMIT`). A page that exhausts its interval ends
with:
- `QUERY_END_REASON_CHECKPOINT_BOUND`: reached the end of the matching
objects.
- `QUERY_END_REASON_CURSOR_BOUND`: reached the far cursor (`before`
ascending, `after` descending). |
Information about a regulated coin, which indicates that it makes use of the transfer deny list.
| Field | Type | Label | Description |
| id | string | optional | ObjectId of the `0x2::coin::RegulatedCoinMetadata` object.
Only present for coins that have not been migrated to CoinRegistry. |
| coin_metadata_object | string | optional | The ID of the coin's `CoinMetadata` or `CoinData` object. |
| deny_cap_object | string | optional | The ID of the coin's `DenyCap` object. |
| allow_global_pause | bool | optional | Whether the coin can be globally paused |
| variant | uint32 | optional | Variant of the regulated coin metadata |
| coin_regulated_state | CoinRegulatedState | optional | Indicates the coin's regulated state. |
AddressAliasesVersion
| Field | Type | Label | Description |
| version | uint64 | optional | |
CheckpointContents
The committed to contents of a checkpoint.
| Field | Type | Label | Description |
| bcs | Bcs | optional | This CheckpointContents serialized as BCS. |
| digest | string | optional | The digest of this CheckpointContents. |
| version | int32 | optional | Version of this CheckpointContents |
| transactions | CheckpointedTransactionInfo | repeated | Set of transactions committed to in this checkpoint. |
CheckpointedTransactionInfo
Transaction information committed to in a checkpoint.
| Field | Type | Label | Description |
| transaction | string | optional | Digest of the transaction. |
| effects | string | optional | Digest of the effects. |
| signatures | UserSignature | repeated | Set of user signatures that authorized the transaction. |
| address_aliases_versions | AddressAliasesVersion | repeated | The `AddressAliases` object version, if any, that was used to verify the
UserSignature at the same position in `signatures`.
This field is present when CheckpointContents.version is >= 2. |
ActiveJwk
A new JWK.
| Field | Type | Label | Description |
| id | JwkId | optional | Identifier used to uniquely identify a JWK. |
| jwk | Jwk | optional | The JWK. |
| epoch | uint64 | optional | Most recent epoch in which the JWK was validated. |
AllowedProposers
The validators allowed to propose a transaction in consensus.
Proposal by any other validator is byzantine behavior and invalidates the whole block.
| Field | Type | Label | Description |
| epoch | uint64 | optional | The epoch whose committee `proposers` indexes into.
Committee indices are only meaningful against one committee, so a set recorded for any
other epoch is ignored and the transaction is treated as naming no proposers. |
| proposers | uint32 | repeated | Committee indices of the allowed proposers, strictly increasing and non-empty.
An empty list names no validator and is rejected; omit `allowed_proposers` entirely to
let any validator propose the transaction. |
AuthenticatorStateExpire
Expire old JWKs.
| Field | Type | Label | Description |
| min_epoch | uint64 | optional | Expire JWKs that have a lower epoch than this. |
| authenticator_object_initial_shared_version | uint64 | optional | The initial version of the authenticator object that it was shared at. |
AuthenticatorStateUpdate
Update the set of valid JWKs.
| Field | Type | Label | Description |
| epoch | uint64 | optional | Epoch of the authenticator state update transaction. |
| round | uint64 | optional | Consensus round of the authenticator state update. |
| new_active_jwks | ActiveJwk | repeated | Newly active JWKs. |
| authenticator_object_initial_shared_version | uint64 | optional | The initial version of the authenticator object that it was shared at. |
CanceledTransaction
A transaction that was canceled.
| Field | Type | Label | Description |
| digest | string | optional | Digest of the canceled transaction. |
| version_assignments | VersionAssignment | repeated | List of object version assignments. |
ChangeEpoch
System transaction used to change the epoch.
| Field | Type | Label | Description |
| epoch | uint64 | optional | The next (to become) epoch ID. |
| protocol_version | uint64 | optional | The protocol version in effect in the new epoch. |
| storage_charge | uint64 | optional | The total amount of gas charged for storage during the epoch. |
| computation_charge | uint64 | optional | The total amount of gas charged for computation during the epoch. |
| storage_rebate | uint64 | optional | The amount of storage rebate refunded to the txn senders. |
| non_refundable_storage_fee | uint64 | optional | The non-refundable storage fee. |
| epoch_start_timestamp | Timestamp | optional | Unix timestamp when epoch started. |
| system_packages | SystemPackage | repeated | System packages (specifically framework and Move stdlib) that are written before the new
epoch starts. This tracks framework upgrades on chain. When executing the `ChangeEpoch` txn,
the validator must write out the following modules. Modules are provided with the version they
will be upgraded to, their modules in serialized form (which include their package ID), and
a list of their transitive dependencies. |
Command
A single command in a programmable transaction.
| Field | Type | Label | Description |
| move_call | MoveCall | | A call to either an entry or a public Move function. |
| transfer_objects | TransferObjects | | `(Vec<forall T:key+store. T>, address)`
It sends n-objects to the specified address. These objects must have store
(public transfer) and either the previous owner must be an address or the object must
be newly created. |
| split_coins | SplitCoins | | `(&mut Coin<T>, Vec<u64>)` -> `Vec<Coin<T>>`
It splits off some amounts into new coins with those amounts. |
| merge_coins | MergeCoins | | `(&mut Coin<T>, Vec<Coin<T>>)`
It merges n-coins into the first coin. |
| publish | Publish | | Publishes a Move package. It takes the package bytes and a list of the package's transitive
dependencies to link against on chain. |
| make_move_vector | MakeMoveVector | | `forall T: Vec<T> -> vector<T>`
Given n-values of the same type, it constructs a vector. For non-objects or an empty vector,
the type tag must be specified. |
| upgrade | Upgrade | | Upgrades a Move package.
Takes (in order):
1. A vector of serialized modules for the package.
2. A vector of object ids for the transitive dependencies of the new package.
3. The object ID of the package being upgraded.
4. An argument holding the `UpgradeTicket` that must have been produced from an earlier command in the same
programmable transaction. |
ConsensusCommitPrologue
Consensus commit prologue system transaction.
This message can represent V1, V2, and V3 prologue types.
| Field | Type | Label | Description |
| epoch | uint64 | optional | Epoch of the commit prologue transaction.
Present in V1, V2, V3, V4. |
| round | uint64 | optional | Consensus round of the commit.
Present in V1, V2, V3, V4. |
| commit_timestamp | Timestamp | optional | Unix timestamp from consensus.
Present in V1, V2, V3, V4. |
| consensus_commit_digest | string | optional | Digest of consensus output.
Present in V2, V3, V4. |
| sub_dag_index | uint64 | optional | The sub DAG index of the consensus commit. This field is populated if there
are multiple consensus commits per round.
Present in V3, V4. |
| consensus_determined_version_assignments | ConsensusDeterminedVersionAssignments | optional | Stores consensus handler determined consensus object version assignments.
Present in V3, V4. |
| additional_state_digest | string | optional | Digest of any additional state computed by the consensus handler.
Used to detect forking bugs as early as possible.
Present in V4. |
ConsensusDeterminedVersionAssignments
Version assignments performed by consensus.
| Field | Type | Label | Description |
| version | int32 | optional | Version of this message |
| canceled_transactions | CanceledTransaction | repeated | Canceled transaction version assignment. |
EndOfEpochTransaction
Set of operations run at the end of the epoch to close out the current epoch
and start the next one.
EndOfEpochTransactionKind
Operation run at the end of an epoch.
| Field | Type | Label | Description |
| kind | Kind | optional | |
| change_epoch | ChangeEpoch | | End the epoch and start the next one. |
| authenticator_state_expire | AuthenticatorStateExpire | | Expire JWKs used for zklogin. |
| execution_time_observations | ExecutionTimeObservations | | Execution time observations from the committee to preserve cross epoch |
| bridge_chain_id | string | | ChainId used when initializing the bridge |
| bridge_object_version | uint64 | | Start version of the Bridge object |
| storage_cost | uint64 | | Contains the end-of-epoch-computed storage cost for accumulator objects. |
ExecutionTimeObservation
ExecutionTimeObservations
GasPayment
Payment information for executing a transaction.
| Field | Type | Label | Description |
| objects | ObjectReference | repeated | Set of gas objects to use for payment. |
| owner | string | optional | Owner of the gas objects, either the transaction sender or a sponsor. |
| price | uint64 | optional | Gas unit price to use when charging for computation.
Must be greater than or equal to the network's current RGP (reference gas price). |
| budget | uint64 | optional | Total budget willing to spend for the execution of a transaction. |
GenesisTransaction
The genesis transaction.
| Field | Type | Label | Description |
| objects | Object | repeated | Set of genesis objects. |
MakeMoveVector
Command to build a Move vector out of a set of individual elements.
| Field | Type | Label | Description |
| element_type | string | optional | Type of the individual elements.
This is required to be set when the type can't be inferred, for example when the set of
provided arguments are all pure input values. |
| elements | Argument | repeated | The set individual elements to build the vector with. |
MergeCoins
Command to merge multiple coins of the same type into a single coin.
| Field | Type | Label | Description |
| coin | Argument | optional | Coin to merge coins into. |
| coins_to_merge | Argument | repeated | Set of coins to merge into `coin`.
All listed coins must be of the same type and be the same type as `coin` |
MoveCall
Command to call a Move function.
Functions that can be called by a `MoveCall` command are those that have a function signature
that is either `entry` or `public` (which don't have a reference return type).
| Field | Type | Label | Description |
| package | string | optional | The package containing the module and function. |
| module | string | optional | The specific module in the package containing the function. |
| function | string | optional | The function to be called. |
| type_arguments | string | repeated | The type arguments to the function. |
| arguments | Argument | repeated | The arguments to the function. |
ProgrammableTransaction
A user transaction.
Contains a series of native commands and Move calls where the results of one command can be
used in future commands.
| Field | Type | Label | Description |
| inputs | Input | repeated | Input objects or primitive values. |
| commands | Command | repeated | The commands to be executed sequentially. A failure in any command
results in the failure of the entire transaction. |
Publish
Command to publish a new Move package.
| Field | Type | Label | Description |
| modules | bytes | repeated | The serialized Move modules. |
| dependencies | string | repeated | Set of packages that the to-be published package depends on. |
RandomnessStateUpdate
Randomness update.
| Field | Type | Label | Description |
| epoch | uint64 | optional | Epoch of the randomness state update transaction. |
| randomness_round | uint64 | optional | Randomness round of the update. |
| random_bytes | bytes | optional | Updated random bytes. |
| randomness_object_initial_shared_version | uint64 | optional | The initial version of the randomness object that it was shared at. |
SplitCoins
Command to split a single coin object into multiple coins.
| Field | Type | Label | Description |
| coin | Argument | optional | The coin to split. |
| amounts | Argument | repeated | The amounts to split off. |
SystemPackage
System package.
| Field | Type | Label | Description |
| version | uint64 | optional | Version of the package. |
| modules | bytes | repeated | Move modules. |
| dependencies | string | repeated | Package dependencies. |
Transaction
A transaction.
TransactionExpiration
A TTL for a transaction.
| Field | Type | Label | Description |
| kind | TransactionExpirationKind | optional | |
| epoch | uint64 | optional | Maximum epoch in which a transaction can be executed. The provided maximal epoch
must be greater than or equal to the current epoch for a transaction to execute. |
| min_epoch | uint64 | optional | Minimal epoch in which a transaction can be executed. The provided minimal epoch
must be less than or equal to the current epoch for a transaction to execute. |
| min_timestamp | Timestamp | optional | Minimal UNIX timestamp in which a transaction can be executed. The
provided minimal timestamp must be less than or equal to the current
clock. |
| max_timestamp | Timestamp | optional | Maximum UNIX timestamp in which a transaction can be executed. The
provided maximal timestamp must be greater than or equal to the current
clock. |
| chain | string | optional | ChainId of the network this transaction is intended for in order to prevent cross-chain replay |
| nonce | uint32 | optional | User-provided uniqueness identifier to differentiate otherwise identical transactions |
| allowed_proposers | AllowedProposers | optional | The validators allowed to propose this transaction in consensus. Only set when `kind`
is `VALIDITY`. Leave unset to let any validator propose the transaction. |
TransactionKind
Transaction type.
| Field | Type | Label | Description |
| kind | Kind | optional | |
| programmable_transaction | ProgrammableTransaction | | A transaction comprised of a list of native commands and Move calls. |
| change_epoch | ChangeEpoch | | System transaction used to end an epoch.
The `ChangeEpoch` variant is now deprecated (but the `ChangeEpoch` struct is still used by
`EndOfEpochTransaction`). |
| genesis | GenesisTransaction | | Transaction used to initialize the chain state.
Only valid if in the genesis checkpoint (0) and if this is the very first transaction ever
executed on the chain. |
| consensus_commit_prologue | ConsensusCommitPrologue | | consensus commit update info |
| authenticator_state_update | AuthenticatorStateUpdate | | Update set of valid JWKs used for zklogin. |
| end_of_epoch | EndOfEpochTransaction | | Set of operations to run at the end of the epoch to close out the current epoch and start
the next one. |
| randomness_state_update | RandomnessStateUpdate | | Randomness update. |
TransferObjects
Command to transfer ownership of a set of objects to an address.
| Field | Type | Label | Description |
| objects | Argument | repeated | Set of objects to transfer. |
| address | Argument | optional | The address to transfer ownership to. |
Upgrade
Command to upgrade an already published package.
| Field | Type | Label | Description |
| modules | bytes | repeated | The serialized Move modules. |
| dependencies | string | repeated | Set of packages that the to-be published package depends on. |
| package | string | optional | Package ID of the package to upgrade. |
| ticket | Argument | optional | Ticket authorizing the upgrade. |
ValidatorExecutionTimeObservation
| Field | Type | Label | Description |
| validator | bytes | optional | Bls12381 public key of the validator |
| duration | Duration | optional | Duration of an execution observation |
VersionAssignment
Object version assignment from consensus.
| Field | Type | Label | Description |
| object_id | string | optional | `ObjectId` of the object. |
| start_version | uint64 | optional | start version of the consensus stream for this object |
| version | uint64 | optional | Assigned version. |
MoveTable
A message that represents a Move `0x2::table::Table` or `0x2::bag::Bag`
| Field | Type | Label | Description |
| id | string | optional | The UID of the table or bag |
| size | uint64 | optional | The size or number of key-value pairs in the table or bag |
StakeSubsidy
| Field | Type | Label | Description |
| balance | uint64 | optional | Balance of SUI set aside for stake subsidies that will be drawn down over time. |
| distribution_counter | uint64 | optional | Count of the number of times stake subsidies have been distributed. |
| current_distribution_amount | uint64 | optional | The amount of stake subsidy to be drawn down per distribution.
This amount decays and decreases over time. |
| stake_subsidy_period_length | uint64 | optional | Number of distributions to occur before the distribution amount decays. |
| stake_subsidy_decrease_rate | uint32 | optional | The rate at which the distribution amount decays at the end of each
period. Expressed in basis points. |
| extra_fields | MoveTable | optional | Any extra fields that's not defined statically. |
StakingPool
A staking pool embedded in each validator struct in the system state object.
| Field | Type | Label | Description |
| id | string | optional | UID of the StakingPool object |
| activation_epoch | uint64 | optional | The epoch at which this pool became active.
The value is `None` if the pool is pre-active and `Some(<epoch_number>)` if active or inactive. |
| deactivation_epoch | uint64 | optional | The epoch at which this staking pool ceased to be active. `None` = {pre-active, active},
`Some(<epoch_number>)` if in-active, and it was de-activated at epoch `<epoch_number>`. |
| sui_balance | uint64 | optional | The total number of SUI tokens in this pool, including the SUI in the rewards_pool, as well as in all the principal
in the `StakedSui` object, updated at epoch boundaries. |
| rewards_pool | uint64 | optional | The epoch stake rewards will be added here at the end of each epoch. |
| pool_token_balance | uint64 | optional | Total number of pool tokens issued by the pool. |
| exchange_rates | MoveTable | optional | Exchange rate history of previous epochs.
The entries start from the `activation_epoch` of this pool and contains exchange rates at the beginning of each epoch,
i.e., right after the rewards for the previous epoch have been deposited into the pool.
key: u64 (epoch number), value: PoolTokenExchangeRate |
| pending_stake | uint64 | optional | Pending stake amount for this epoch, emptied at epoch boundaries. |
| pending_total_sui_withdraw | uint64 | optional | Pending stake withdrawn during the current epoch, emptied at epoch boundaries.
This includes both the principal and rewards SUI withdrawn. |
| pending_pool_token_withdraw | uint64 | optional | Pending pool token withdrawn during the current epoch, emptied at epoch boundaries. |
| extra_fields | MoveTable | optional | Any extra fields that's not defined statically. |
StorageFund
Struct representing the onchain storage fund.
| Field | Type | Label | Description |
| total_object_storage_rebates | uint64 | optional | This is the sum of `storage_rebate` of
all objects currently stored on-chain. To maintain this invariant, the only inflow of this
balance is storage charges collected from transactions, and the only outflow is storage rebates
of transactions, including both the portion refunded to the transaction senders as well as
the non-refundable portion taken out and put into `non_refundable_balance`. |
| non_refundable_balance | uint64 | optional | Represents any remaining inflow of the storage fund that should not
be taken out of the fund. |
SystemParameters
| Field | Type | Label | Description |
| epoch_duration_ms | uint64 | optional | The duration of an epoch, in milliseconds. |
| stake_subsidy_start_epoch | uint64 | optional | The starting epoch in which stake subsidies start being paid out |
| min_validator_count | uint64 | optional | Minimum number of active validators at any moment. |
| max_validator_count | uint64 | optional | Maximum number of active validators at any moment.
We do not allow the number of validators in any epoch to go above this. |
| min_validator_joining_stake | uint64 | optional | Deprecated.
Lower-bound on the amount of stake required to become a validator. |
| validator_low_stake_threshold | uint64 | optional | Deprecated.
Validators with stake amount below `validator_low_stake_threshold` are considered to
have low stake and will be escorted out of the validator set after being below this
threshold for more than `validator_low_stake_grace_period` number of epochs. |
| validator_very_low_stake_threshold | uint64 | optional | Deprecated.
Validators with stake below `validator_very_low_stake_threshold` will be removed
immediately at epoch change, no grace period. |
| validator_low_stake_grace_period | uint64 | optional | A validator can have stake below `validator_low_stake_threshold`
for this many epochs before being kicked out. |
| extra_fields | MoveTable | optional | Any extra fields that are not defined statically. |
SystemState
| Field | Type | Label | Description |
| version | uint64 | optional | The version of the system state data structure type. |
| epoch | uint64 | optional | The epoch id |
| protocol_version | uint64 | optional | The protocol version |
| validators | ValidatorSet | optional | Information about the validators |
| storage_fund | StorageFund | optional | Storage Fund info |
| parameters | SystemParameters | optional | Set of system config parameters |
| reference_gas_price | uint64 | optional | The reference gas price for this epoch |
| validator_report_records | ValidatorReportRecord | repeated | A list of the records of validator reporting each other.
There is an entry in this list for each validator that has been reported
at least once. Each record contains all the validators that reported
them. If a validator has never been reported they don't have a record in this list.
This lists persists across epoch: a peer continues being in a reported state until the
reporter doesn't explicitly remove their report. |
| stake_subsidy | StakeSubsidy | optional | Schedule of stake subsidies given out each epoch. |
| safe_mode | bool | optional | Whether the system is running in a downgraded safe mode due to a non-recoverable bug.
This is set whenever we failed to execute advance_epoch, and ended up executing advance_epoch_safe_mode.
It can be reset once we are able to successfully execute advance_epoch.
The rest of the fields starting with `safe_mode_` are accumulated during safe mode
when advance_epoch_safe_mode is executed. They will eventually be processed once we
are out of safe mode. |
| safe_mode_storage_rewards | uint64 | optional | Storage rewards accumulated during safe_mode |
| safe_mode_computation_rewards | uint64 | optional | Computation rewards accumulated during safe_mode |
| safe_mode_storage_rebates | uint64 | optional | Storage rebates paid out during safe_mode |
| safe_mode_non_refundable_storage_fee | uint64 | optional | Nonrefundable storage fees accumulated during safe_mode |
| epoch_start_timestamp_ms | uint64 | optional | Unix timestamp of when this this epoch started |
| extra_fields | MoveTable | optional | Any extra fields that's not defined statically. |
Validator
Definition of a Validator in the system contracts
Note: fields of ValidatorMetadata are flattened into this type
| Field | Type | Label | Description |
| name | string | optional | A unique human-readable name of this validator. |
| address | string | optional | The Sui Address of the validator. This is the sender that created the Validator object,
and also the address to send validator/coins to during withdraws. |
| description | string | optional | |
| image_url | string | optional | |
| project_url | string | optional | |
| protocol_public_key | bytes | optional | The public key bytes corresponding to the private key that the validator
holds to sign transactions. For now, this is the same as AuthorityName. |
| proof_of_possession | bytes | optional | This is a proof that the validator has ownership of the protocol private key |
| network_public_key | bytes | optional | The public key bytes corresponding to the private key that the validator
uses to establish TLS connections |
| worker_public_key | bytes | optional | The public key bytes corresponding to the Narwhal Worker |
| network_address | string | optional | The network address of the validator (could also contain extra info such as port, DNS and etc.). |
| p2p_address | string | optional | The address of the validator used for p2p activities such as state sync (could also contain extra info such as port, DNS and etc.). |
| primary_address | string | optional | The address of the narwhal primary |
| worker_address | string | optional | The address of the narwhal worker |
| next_epoch_protocol_public_key | bytes | optional | |
| next_epoch_proof_of_possession | bytes | optional | |
| next_epoch_network_public_key | bytes | optional | |
| next_epoch_worker_public_key | bytes | optional | |
| next_epoch_network_address | string | optional | |
| next_epoch_p2p_address | string | optional | |
| next_epoch_primary_address | string | optional | |
| next_epoch_worker_address | string | optional | |
| metadata_extra_fields | MoveTable | optional | Any extra fields that's not defined statically in the `ValidatorMetadata` struct |
| voting_power | uint64 | optional | The voting power of this validator, which might be different from its
stake amount. |
| operation_cap_id | string | optional | The ID of this validator's current valid `UnverifiedValidatorOperationCap` |
| gas_price | uint64 | optional | Gas price quote, updated only at end of epoch. |
| staking_pool | StakingPool | optional | Staking pool for this validator. |
| commission_rate | uint64 | optional | Commission rate of the validator, in basis point. |
| next_epoch_stake | uint64 | optional | Total amount of stake that would be active in the next epoch. |
| next_epoch_gas_price | uint64 | optional | This validator's gas price quote for the next epoch. |
| next_epoch_commission_rate | uint64 | optional | The commission rate of the validator starting the next epoch, in basis point. |
| extra_fields | MoveTable | optional | Any extra fields that's not defined statically. |
ValidatorReportRecord
| Field | Type | Label | Description |
| reported | string | optional | The address of the validator being reported |
| reporters | string | repeated | The list of validator (addresses) that are reporting on the validator specified by `reported` |
ValidatorSet
| Field | Type | Label | Description |
| total_stake | uint64 | optional | Total amount of stake from all active validators at the beginning of the epoch.
Written only once per epoch, in `advance_epoch` function. |
| active_validators | Validator | repeated | The current list of active validators. |
| pending_active_validators | MoveTable | optional | List of new validator candidates added during the current epoch.
They will be processed at the end of the epoch.
key: u64 (index), value: 0x3::validator::Validator |
| pending_removals | uint64 | repeated | Removal requests from the validators. Each element is an index
pointing to `active_validators`. |
| staking_pool_mappings | MoveTable | optional | Mappings from staking pool's ID to the sui address of a validator.
key: address (staking pool Id), value: address (sui address of the validator) |
| inactive_validators | MoveTable | optional | Mapping from a staking pool ID to the inactive validator that has that pool as its staking pool.
When a validator is deactivated the validator is removed from `active_validators` it
is added to this table so that stakers can continue to withdraw their stake from it.
key: address (staking pool Id), value: 0x3::validator_wrapper::ValidatorWrapper |
| validator_candidates | MoveTable | optional | Table storing preactive/candidate validators, mapping their addresses to their `Validator ` structs.
When an address calls `request_add_validator_candidate`, they get added to this table and become a preactive
validator.
When the candidate has met the min stake requirement, they can call `request_add_validator` to
officially add them to the active validator set `active_validators` next epoch.
key: address (sui address of the validator), value: 0x3::validator_wrapper::ValidatorWrapper |
| at_risk_validators | AtRiskValidatorsEntry | repeated | Table storing the number of epochs during which a validator's stake has been below the low stake threshold. |
| extra_fields | MoveTable | optional | Any extra fields that's not defined statically. |
AtRiskValidatorsEntry
LookupNameRequest
| Field | Type | Label | Description |
| name | string | optional | Required. The SuiNS name to lookup.
Supports both `@name` as well as `name.sui` formats. |
LookupNameResponse
| Field | Type | Label | Description |
| record | NameRecord | optional | The record for the requested name |
NameRecord
| Field | Type | Label | Description |
| id | string | optional | Id of this record.
Note that records are stored on chain as dynamic fields of the type
`Field<Domain,NameRecord>`. |
| name | string | optional | The SuiNS name of this record |
| registration_nft_id | string | optional | The ID of the `RegistrationNFT` assigned to this record.
The owner of the corresponding `RegistrationNFT` has the rights to
be able to change and adjust the `target_address` of this domain.
It is possible that the ID changes if the record expires and is
purchased by someone else. |
| expiration_timestamp | Timestamp | optional | Timestamp when the record expires.
This is either the expiration of the record itself or the expiration of
this record's parent if this is a leaf record. |
| target_address | string | optional | The target address that this name points to |
| data | DataEntry | repeated | Additional data which may be stored in a record |
DataEntry
ReverseLookupNameRequest
| Field | Type | Label | Description |
| address | string | optional | Required. The address to perform a reverse lookup for. |
ReverseLookupNameResponse
| Field | Type | Label | Description |
| record | NameRecord | optional | The record for the SuiNS name linked to the requested address |
Display
A rendered JSON blob based on an on-chain template.
| Field | Type | Label | Description |
| output | Value | optional | Output for all successfully substituted display fields. Unsuccessful
fields will be `null`, and will be accompanied by a field in `errors`,
explaining the error. |
| errors | Value | optional | If any fields failed to render, this will contain a mapping from failed
field names to error messages. If all fields succeed, this will either be
`null` or not set. |
Object
An object on the Sui blockchain.
| Field | Type | Label | Description |
| bcs | Bcs | optional | This Object serialized as BCS. |
| object_id | string | optional | `ObjectId` for this object. |
| version | uint64 | optional | Version of the object. |
| digest | string | optional | The digest of this Object. |
| owner | Owner | optional | Owner of the object. |
| object_type | string | optional | The type of this object.
This will be 'package' for packages and a StructTag for move structs. |
| has_public_transfer | bool | optional | DEPRECATED this field is no longer used to determine whether a tx can transfer this
object. Instead, it is always calculated from the objects type when loaded in execution.
Only set for Move structs |
| contents | Bcs | optional | BCS bytes of a Move struct value.
Only set for Move structs |
| package | Package | optional | Package information for Move Packages |
| previous_transaction | string | optional | The digest of the transaction that created or last mutated this object |
| storage_rebate | uint64 | optional | The amount of SUI to rebate if this object gets deleted.
This number is re-calculated each time the object is mutated based on
the present storage gas price. |
| json | Value | optional | JSON rendering of the object. |
| balance | uint64 | optional | Current balance if this object is a `0x2::coin::Coin<T>` |
| display | Display | optional | JSON rendering of the object based on an on-chain template.
This will not be set if the value's type does not have an associated `Display` template. |
ObjectSet
Set of Objects
| Field | Type | Label | Description |
| objects | Object | repeated | Objects are sorted by the key `(object_id, version)`. |
Owner
Enum of different types of ownership for an object.
| Field | Type | Label | Description |
| kind | OwnerKind | optional | |
| address | string | optional | Address or ObjectId of the owner |
| version | uint64 | optional | The `initial_shared_version` if kind is `SHARED` or `start_version` if kind `CONSENSUS_ADDRESS`. |
Epoch
| Field | Type | Label | Description |
| epoch | uint64 | optional | |
| committee | ValidatorCommittee | optional | The committee governing this epoch. |
| system_state | SystemState | optional | Snapshot of Sui's SystemState (`0x3::sui_system::SystemState`) at the
beginning of the epoch, except for the current epoch (see
`GetEpochRequest.epoch`). For the current epoch, fullnodes return their
live state; kv-rpc returns the state at the highest checkpoint it has
indexed, or at the checkpoint before it when that is the epoch's last
checkpoint, even though `last_checkpoint` is then set. kv-rpc instances
that are not set up for reads at a checkpoint fail with `UNIMPLEMENTED`
and reason `NOT_SERVED_HERE` when `read_mask` selects it for the current
epoch.
The state at an epoch's start, including the running epoch's, can be read
with `GetObject` of `0x5` at `at_checkpoint` = `first_checkpoint` - 1
(checkpoint 0 for epoch 0), and then its inner dynamic field at the same
checkpoint. |
| first_checkpoint | uint64 | optional | The epoch's first checkpoint. For the running epoch, servers without RPC
indexes leave it unset, and fullnodes leave it unset until their RPC
index records the epoch's start, shortly after the epoch begins. |
| last_checkpoint | uint64 | optional | The epoch's last checkpoint, unset while the epoch is running. Fullnodes
set it as soon as their RPC index records the epoch's end; kv-rpc sets it
only when the epoch ended at or before the highest checkpoint it has
indexed. |
| start | Timestamp | optional | |
| end | Timestamp | optional | |
| reference_gas_price | uint64 | optional | Reference gas price denominated in MIST |
| protocol_config | ProtocolConfig | optional | |
| transaction_start_inclusive | uint64 | optional | Sequence number of the first transaction in this epoch (inclusive). Unset
for the running epoch in the same cases as `first_checkpoint`. |
| transaction_end_exclusive | uint64 | optional | One past the sequence number of the epoch's last transaction (exclusive):
the `total_network_transactions` of `last_checkpoint`. Set only when
`last_checkpoint` is. |
| ended_in_safe_mode | bool | optional | Whether the epoch ended in safe mode: `advance_epoch` failed and
`advance_epoch_safe_mode` ran instead, so no `SystemEpochInfoEvent` was
emitted and `system_epoch_info` is unset. Set only when `last_checkpoint`
is. |
| system_epoch_info | SystemEpochInfo | optional | Totals from the `0x3::sui_system_state_inner::SystemEpochInfoEvent`
emitted when this epoch ended. Set only when `last_checkpoint` is, and
unset if the epoch ended in safe mode. |
| epoch_commitments | CheckpointCommitment | repeated | Commitments to epoch-specific state (the live object set), from the
`EndOfEpochData` of `last_checkpoint`. Empty while `last_checkpoint` is
unset, and for epochs that ended before the protocol added epoch
commitments. |
SystemEpochInfo
Totals reported by `SystemEpochInfoEvent` at the end of an epoch. Amounts
are denominated in MIST.
| Field | Type | Label | Description |
| total_stake | uint64 | optional | Total stake of the validator set for the next epoch. |
| storage_fund_reinvestment | uint64 | optional | Portion of the epoch's computation rewards reinvested into the storage
fund. |
| storage_charge | uint64 | optional | Storage fees charged during the epoch, plus those deferred from any
preceding epochs that ended in safe mode. |
| storage_rebate | uint64 | optional | Storage rebates paid out during the epoch, plus those deferred from any
preceding epochs that ended in safe mode. |
| storage_fund_balance | uint64 | optional | Balance of the storage fund after the epoch change. |
| stake_subsidy_amount | uint64 | optional | Stake subsidy paid out at the end of the epoch. |
| total_gas_fees | uint64 | optional | Computation gas fees collected during the epoch, plus those deferred from
any preceding epochs that ended in safe mode. |
| total_stake_rewards_distributed | uint64 | optional | Stake rewards distributed to validators and their stakers. |
| leftover_storage_fund_inflow | uint64 | optional | Rewards left over after distribution, added to the storage fund. |
ObjectReference
Reference to an object.
| Field | Type | Label | Description |
| object_id | string | optional | The object id of this object. |
| version | uint64 | optional | The version of this object. |
| digest | string | optional | The digest of this object. |
Event
An event.
| Field | Type | Label | Description |
| package_id | string | optional | Package ID of the top-level function invoked by a `MoveCall` command that triggered this
event to be emitted. |
| module | string | optional | Module name of the top-level function invoked by a `MoveCall` command that triggered this
event to be emitted. |
| sender | string | optional | Address of the account that sent the transaction where this event was emitted. |
| event_type | string | optional | The type of the event emitted. |
| contents | Bcs | optional | BCS serialized bytes of the event. |
| json | Value | optional | JSON rendering of the event. |
| checkpoint | uint64 | optional | The sequence number of the checkpoint that includes the transaction
that emitted this event. Populated when the event is delivered on its
own (for example via `LedgerService.ListEvents`); left unset when the
event is carried inside its transaction's `events` list, where the
enclosing `ExecutedTransaction` already provides this context. |
| transaction_digest | string | optional | The digest of the transaction that emitted this event. |
| transaction_index | uint64 | optional | Zero-based position of the emitting transaction within its containing
checkpoint. For clients verifying authenticated event streams this
index is part of the BCS-encoded `EventCommitment` leaf used to
construct the per-checkpoint merkle root. |
| event_index | uint32 | optional | Zero-based index of this event within its transaction's event list. |
TransactionEvents
Events emitted during the successful execution of a transaction.
| Field | Type | Label | Description |
| bcs | Bcs | optional | This TransactionEvents serialized as BCS. |
| digest | string | optional | The digest of this TransactionEvents. |
| events | Event | repeated | Set of events emitted by a transaction. |
FundsWithdrawal
| Field | Type | Label | Description |
| amount | uint64 | optional | |
| coin_type | string | optional | |
| source | Source | optional | |
| funder | string | optional | The address whose balance is debited if `source` is `SENDER_ALLOWANCE`. |
| allowance | string | optional | `ObjectId` of the allowance object authorizing the withdrawal if `source`
is `SENDER_ALLOWANCE`. |
| seized_from | string | optional | The frozen address whose balance is seized if `source` is
`FROZEN_ADDRESS`. |
| seize_auth | string | optional | `ObjectId` of the seize authorization object authorizing the withdrawal
if `source` is `FROZEN_ADDRESS`. |
An input to a user transaction.
| Field | Type | Label | Description |
| kind | InputKind | optional | |
| pure | bytes | optional | A move value serialized as BCS.
For normal operations this is required to be a move primitive type and not contain structs
or objects. |
| object_id | string | optional | `ObjectId` of the object input. |
| version | uint64 | optional | Requested version of the input object when `kind` is `IMMUTABLE_OR_OWNED`
or `RECEIVING` or if `kind` is `SHARED` this is the initial version of the
object when it was shared |
| digest | string | optional | The digest of this object. |
| mutable | bool | optional | Controls whether the caller asks for a mutable reference to the shared
object. |
| mutability | Mutability | optional | NOTE: For backwards compatibility purposes the addition of the new
`NON_EXCLUSIVE_WRITE` mutability variant requires providing a new field.
The old `mutable` field will continue to be populated and respected as an
input for the time being. |
| funds_withdrawal | FundsWithdrawal | optional | Fund Reservation information if `kind` is `FUNDS_WITHDRAWAL`. |
| literal | Value | optional | A literal value
INPUT ONLY |
CommandOutput
| Field | Type | Label | Description |
| argument | Argument | optional | |
| value | Bcs | optional | |
| json | Value | optional | JSON rendering of the output. |
CommandResult
An intermediate result/output from the execution of a single command
ExecuteTransactionRequest
| Field | Type | Label | Description |
| transaction | Transaction | optional | The transaction to execute. |
| signatures | UserSignature | repeated | Set of `UserSignature`s authorizing the execution of the provided
transaction. |
| read_mask | FieldMask | optional | Mask specifying which fields to read.
If no mask is specified, defaults to `effects.status,checkpoint`. |
ExecuteTransactionResponse
Response message for `NodeService.ExecuteTransaction`.
SimulateTransactionRequest
| Field | Type | Label | Description |
| transaction | Transaction | optional | |
| read_mask | FieldMask | optional | Mask specifying which fields to read. |
| checks | TransactionChecks | optional | Specify whether checks should be ENABLED (default) or DISABLED while executing the transaction |
| do_gas_selection | bool | optional | Perform gas selection based on a budget estimation and include the
selected gas payment and budget in the response. If selection fails
because the gas owner lacks enough SUI to cover the budget, the returned
error carries a `google.rpc.ErrorInfo` with reason
`INSUFFICIENT_GAS_BALANCE`, or `TRANSACTION_EXECUTION_FAILED` if the
transaction also fails while estimating the budget (see `ErrorReason`).
This option will be ignored if `checks` is `DISABLED`. |
SimulateTransactionResponse
| Field | Type | Label | Description |
| transaction | ExecutedTransaction | optional | |
| command_outputs | CommandResult | repeated | |
| suggested_gas_price | uint64 | optional | A suggested gas price to use, that is above RGP, in order to provide a
better chance of the transaction being included in the presence of
congested objects. |
GasCostSummary
Summary of gas charges.
| Field | Type | Label | Description |
| computation_cost | uint64 | optional | Cost of computation/execution. |
| storage_cost | uint64 | optional | Storage cost, it's the sum of all storage cost for all objects created or mutated. |
| storage_rebate | uint64 | optional | The amount of storage cost refunded to the user for all objects deleted or mutated in the
transaction. |
| non_refundable_storage_fee | uint64 | optional | The fee for the rebate. The portion of the storage rebate kept by the system. |
CleverError
CoinDenyListError
| Field | Type | Label | Description |
| address | string | optional | Denied address. |
| coin_type | string | optional | Coin type. |
CommandArgumentError
An error with an argument to a command.
CongestedObjects
Set of objects that were congested, leading to the transaction's cancellation.
| Field | Type | Label | Description |
| objects | string | repeated | |
ExecutionError
An error that can occur during the execution of a transaction.
ExecutionStatus
The status of an executed transaction.
| Field | Type | Label | Description |
| success | bool | optional | Indicates if the transaction was successful or not. |
| error | ExecutionError | optional | The error if `success` is false. |
IndexError
| Field | Type | Label | Description |
| index | uint32 | optional | Index of an input or result. |
| subresult | uint32 | optional | Index of a subresult. |
MoveAbort
| Field | Type | Label | Description |
| abort_code | uint64 | optional | |
| location | MoveLocation | optional | Location in Move where the error occurred. |
| clever_error | CleverError | optional | Extra error information if abort code is a "Clever Error" |
MoveLocation
Location in Move bytecode where an error occurred.
| Field | Type | Label | Description |
| package | string | optional | The package ID. |
| module | string | optional | The module name. |
| function | uint32 | optional | The function index. |
| instruction | uint32 | optional | Offset of the instruction where the error occurred. |
| function_name | string | optional | The name of the function, if available. |
PackageUpgradeError
An error with upgrading a package.
SizeError
A size error.
| Field | Type | Label | Description |
| size | uint64 | optional | The offending size. |
| max_size | uint64 | optional | The maximum allowable size. |
TypeArgumentError
Type argument error.
GetDatatypeRequest
| Field | Type | Label | Description |
| package_id | string | optional | Required. The `storage_id` of the requested package. |
| module_name | string | optional | Required. The name of the requested module. |
| name | string | optional | Required. The name of the requested datatype. |
GetDatatypeResponse
GetFunctionRequest
| Field | Type | Label | Description |
| package_id | string | optional | Required. The `storage_id` of the requested package. |
| module_name | string | optional | Required. The name of the requested module. |
| name | string | optional | Required. The name of the requested function. |
GetFunctionResponse
GetPackageRequest
| Field | Type | Label | Description |
| package_id | string | optional | Required. The `storage_id` of any version of the requested package.
When no `selector` is set, the package stored at exactly this id is
returned. When a `selector` is set, `package_id` only identifies the
package's upgrade lineage (via its original id), and the selected
version within that lineage is returned. |
| version | uint64 | | |
| at_checkpoint | uint64 | | |
GetPackageResponse
| Field | Type | Label | Description |
| package | Package | optional | The package. |
ListPackageVersionsRequest
Servers without the indexes this method needs fail it with `UNIMPLEMENTED`
and reason `NOT_SERVED_HERE`. Servers may fail any `ListPackageVersions`
request with `UNAVAILABLE` and reason `NOT_READY` while they rebuild history
after restoring from a snapshot.
| Field | Type | Label | Description |
| package_id | string | optional | The `storage_id` of any version of a package, to list the versions of
that package's upgrade lineage. When unset, the request lists the
versions of every package by publish checkpoint (see `options`). |
| page_size | uint32 | optional | The maximum number of versions to return. The service may return fewer than this value.
If unspecified, at most `1000` entries will be returned.
The maximum value is `10000`; values above `10000` will be coerced to `10000`.
New clients use `options`. Must be unset when `package_id` is unset or
the request sets `options`, `start_version`, `end_version`,
`start_checkpoint` or `end_checkpoint` (`INVALID_ARGUMENT` otherwise). |
| page_token | bytes | optional | A page token, received from a previous `ListPackageVersions` call.
Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListPackageVersions` must
match the call that provided the page token.
A page token names the first version of the next page, so the client
holds the version below it. A page token naming a version past what this
server has indexed gets an empty page without `next_page_token`. A page
token whose next page would skip versions the server does not retain
fails with `OUT_OF_RANGE` (see `options`).
New clients use `options`. Must be unset when `package_id` is unset or
the request sets `options`, `start_version`, `end_version`,
`start_checkpoint` or `end_checkpoint` (`INVALID_ARGUMENT` otherwise). |
| options | QueryOptions | optional | Optional. Cursor paging (see `QueryOptions`). A request with `package_id`
unset, or with `start_version`, `end_version`, `start_checkpoint` or
`end_checkpoint` set, pages this way even without `options`. `page_size`
and `page_token` must then be unset. Every response sets `end` and never
`next_page_token`. Servers that predate these fields ignore them and
never set `end`.
With `package_id` set, this listing is ordered by ascending version. With
`package_id` unset, it is ordered by ascending publish checkpoint, then
`original_id`, then version. `limit` defaults to `1000` and is coerced to
at most `10000`. Every page but the last holds `limit` versions. Resume
from the last version's `cursor`, as `after` when ascending or `before`
when descending. A malformed cursor, or one from another listing (of
another package, or of every package when `package_id` is set, or vice
versa), fails with `INVALID_ARGUMENT`. A cursor also records the highest
checkpoint the server that returned it had indexed.
With `package_id` set, a package this server has not indexed is
`NOT_FOUND`, as in `GetPackage`, unless a cursor comes from a server that
has indexed further; such a cursor is handled as a cursor past the tip.
Past what this server has indexed, the listing follows the
`LedgerService` `List*` RPCs (see `ErrorReason.ABOVE_LATEST_AVAILABLE`).
A descending listing fails with `OUT_OF_RANGE` when its `end_checkpoint`
is above `firstUnavailableCheckpoint` (one above the highest checkpoint
the server has indexed), or, with `end_checkpoint` unset, when its
`start_checkpoint` is at or above `firstUnavailableCheckpoint` or a
cursor names a version this server has not indexed. An ascending listing
is never refused for these: unless `end_version` or a `before` cursor
ends it first, it lists through the highest indexed checkpoint and ends
with `QUERY_END_REASON_LEDGER_TIP`.
On a server that prunes history, a listing of one package in cursor
paging with `start_checkpoint` unset covers only the versions the server
stores: a version range that starts below the oldest of them starts at
it, so a descending listing without an `after` cursor ends there with a
short last page, and one with only a `before` cursor at or below that
version lists nothing. Nothing marks that version as different from a
package's first version.
A request that continues a listing names a version the client already
holds: the version an `after` cursor names, or the version below a
`page_token`'s. When the range starts just above that version (no higher
`start_version` or `start_checkpoint` bounds it) and versions between it
and the oldest version the server stores are gone, the request fails with
`OUT_OF_RANGE` and reason `BELOW_EARLIEST_AVAILABLE` in either ordering
rather than skip them. Such a listing can only be completed from a server
that retains those versions. |
| start_version | uint64 | optional | Optional. Start of the version range to list (inclusive). Intersects with
every other bound. Must be unset when `package_id` is unset. |
| end_version | uint64 | optional | Optional. End of the version range to list (exclusive). Intersects with
every other bound. Below `start_version` it fails with
`INVALID_ARGUMENT`; equal to it, the range lists nothing. Must be unset
when `package_id` is unset. |
| start_checkpoint | uint64 | optional | Optional. Start of the checkpoint range to list (inclusive): only
versions published in this checkpoint or later. The listing covers the
versions published in the range, not the packages' state at one
checkpoint. Intersects with every other bound. Unless the range is
empty, servers that prune history fail with `OUT_OF_RANGE` and reason
`BELOW_EARLIEST_AVAILABLE` for a checkpoint below the lowest one they can
list every publish from, unless an `after` cursor bounds the listing at
or above that checkpoint.
In a listing of every package, if unset, the listing starts at that
checkpoint, which is genesis on servers that keep full history, and
covers the publishes from that checkpoint on: a descending listing
without an `after` cursor at or above that checkpoint ends there with a
short last page. With `start_checkpoint` unset, a listing in either
order after an `after` cursor below that checkpoint fails with
`OUT_OF_RANGE` and reason `BELOW_EARLIEST_AVAILABLE` rather than skip
the publishes in between. A `before` cursor below that checkpoint leaves
nothing to list.
Servers that predate this field fail requests with `package_id` unset
with `INVALID_ARGUMENT`. |
| end_checkpoint | uint64 | optional | Optional. End of the checkpoint range to list (exclusive): only versions
published before this checkpoint. Below `start_checkpoint` it fails with
`INVALID_ARGUMENT`; equal to it, the range lists nothing and is never
refused as pruned. If unset, the range ends at the highest checkpoint the
server has indexed. In a request with no lower bound of its own (no
`start_checkpoint` and no `after` cursor), an `end_checkpoint` at or
below the lowest checkpoint the server can list every publish from fails
with `OUT_OF_RANGE` and reason `BELOW_EARLIEST_AVAILABLE`.
With `end_checkpoint` set, `QUERY_END_REASON_LEDGER_TIP` means the server
stopped at its highest indexed checkpoint, short of `end_checkpoint`:
retry later or on another replica. |
ListPackageVersionsResponse
| Field | Type | Label | Description |
| versions | PackageVersion | repeated | The listed versions in this listing's order (see
`ListPackageVersionsRequest.options`), or in reverse when
`options.ordering` is `ORDERING_DESCENDING`. |
| next_page_token | bytes | optional | A token, which can be sent as `page_token` to retrieve the next page.
If this field is omitted, there are no subsequent pages. Never set in
cursor paging (see `ListPackageVersionsRequest.options`). |
| end | QueryEnd | optional | Set on every response in cursor paging (see
`ListPackageVersionsRequest.options`), and never otherwise. A full page
ends with `QUERY_END_REASON_ITEM_LIMIT`; a shorter one, the last, with:
- `QUERY_END_REASON_CHECKPOINT_BOUND`: reached `end_version` or
`start_version`, the end of the checkpoint range, or, descending, the
package's first version (on a server that prunes history, the oldest
version it stores) or, listing every package, the lowest checkpoint
the server can list every publish from.
- `QUERY_END_REASON_CURSOR_BOUND`: reached the far cursor (`before`
ascending, `after` descending).
- `QUERY_END_REASON_LEDGER_TIP`: an ascending listing reached the highest
checkpoint the server has indexed, below `end_checkpoint` if set; later
publishes can extend it. |
ListSystemPackagesRequest
| Field | Type | Label | Description |
| at_checkpoint | uint64 | optional | Optional. Return the system packages as of the end of this checkpoint.
If unset, return the latest set as of the highest checkpoint the server
has indexed.
Outside the checkpoints the server has indexed, it fails as a request
pinned to a checkpoint (see `ErrorReason.ABOVE_LATEST_AVAILABLE` and
`BELOW_EARLIEST_AVAILABLE`). Servers without RPC indexes fail the request
with `UNIMPLEMENTED` and reason `NOT_SERVED_HERE`, with or without
`at_checkpoint`. Servers may fail it with `UNAVAILABLE` and reason
`NOT_READY` while their index is empty or they rebuild history after
restoring from a snapshot. Any of these fails the whole request, so a
successful response is the complete set. |
ListSystemPackagesResponse
| Field | Type | Label | Description |
| system_packages | PackageVersion | repeated | The system packages that existed at the end of `at_checkpoint`, or of the
highest checkpoint the server has indexed if it is unset, ordered by
`package_id`, each at its latest version by then. System packages are
upgraded in place, so `original_id` equals `package_id`. `checkpoint` may
be unset as `PackageVersion.checkpoint` describes; `cursor` is never set. |
PackageVersion
A simplified representation of a package version
| Field | Type | Label | Description |
| package_id | string | optional | The storage ID of this package version |
| version | uint64 | optional | The version number |
| checkpoint | uint64 | optional | The checkpoint in which this version was published. Servers that prune
history may leave this unset for versions published before their lowest
available checkpoint. |
| cursor | bytes | optional | The opaque position of this version in the listing, for use as
`ListPackageVersionsRequest.options.after` or `options.before`. |
| original_id | string | optional | The `original_id` of this version's package: the `storage_id` of its
first version, shared by every version in its upgrade lineage. |
Bcs
`Bcs` contains an arbitrary type that is serialized using the
[BCS](https://mystenlabs.github.io/sui-rust-sdk/sui_sdk_types/index.html#bcs)
format as well as a name that identifies the type of the serialized value.
| Field | Type | Label | Description |
| name | string | optional | Name that identifies the type of the serialized value. |
| value | bytes | optional | Bytes of a BCS serialized value. |
AffectedAddressFilter
Match by any address whose state moved as a side effect of the
transaction: object ownership changes (in either direction), prior
owners of removed/wrapped objects, and address-balance changes via
accumulator events.
| Field | Type | Label | Description |
| address | string | optional | The affected address (hex-encoded). |
AffectedObjectFilter
Match by changed object ID.
| Field | Type | Label | Description |
| object_id | string | optional | The changed object ID (hex-encoded). |
DynamicFieldFilter
DNF filter for the dynamic fields of a parent: any term may match, and each
term is an AND of signed literals. Every predicate constrains the type of
the field object (`0x2::dynamic_field::Field<Name, Value>`), which is the
leading sort key of the index the service lists from, so the service seeks
past runs of non-matching fields instead of reading them. A term may
contain only negated literals.
An absent filter matches every object the parent owns; when the parent is
the `Field` object of a dynamic object field, that includes the field's
value object. A present filter matches only `Field` objects, and must have
at least one term, and every term at least one literal.
DynamicFieldLiteral
One signed dynamic field predicate literal: a predicate, optionally negated.
| Field | Type | Label | Description |
| negated | bool | | When true, the literal matches dynamic fields that the predicate does
*not* match. |
| name_type | DynamicFieldNameTypeFilter | | Match dynamic fields whose name type matches the specified filter. |
| dynamic_object_field | DynamicObjectFieldFilter | | Match dynamic object fields (added with `0x2::dynamic_object_field`).
Negate it to match only dynamic fields whose value is stored inline
(added with `0x2::dynamic_field`). |
DynamicFieldNameTypeFilter
Match by the type of a dynamic field's name: the type reported in
`DynamicField.name.name`. For a dynamic object field this is the name type
passed to `0x2::dynamic_object_field::add`, not the
`0x2::dynamic_object_field::Wrapper` it is stored in, so one filter matches
both kinds of field.
A struct type accepts the specificity levels of `ObjectTypeFilter`:
"0xaddr" -> matches names whose type is defined at this address
"0xaddr::module" -> matches names whose type is in this module
"0xaddr::module::Name" -> matches names with this type name (any instantiation)
"0xaddr::module::Name<T1, T2>" -> matches names with this exact generic instantiation
Any other type, e.g. `u64`, `address` or `vector<u8>`, matches exactly.
There is no filter on the value type: a dynamic object field's value type
is the type of its child object, which the index does not record.
| Field | Type | Label | Description |
| name_type | string | optional | Required. Move type string: a struct type at one of the levels above, or
a complete non-struct type. |
DynamicFieldTerm
One conjunction in a dynamic field DNF filter.
DynamicObjectFieldFilter
Match dynamic object fields.
EmitModuleFilter
Match by an event's package/module fields, specified as a `::`-delimited
Move path. These identify the top-level Move call that triggered the event.
Specificity levels:
"0xpkg" -> matches events with this package_id
"0xpkg::module" -> matches events with this package_id and module
| Field | Type | Label | Description |
| module | string | optional | Required. Move path of the form `package[::module]`. |
EventFilter
DNF filter for events: any term may match, and each term is an AND of
signed literals. Sender predicates match all events from matching
transactions; emit-module, event-type, and event-stream-head predicates match
individual event-space dimensions. An absent filter matches everything. A
present filter must have at least one term.
| Field | Type | Label | Description |
| terms | EventTerm | repeated | Terms are ORed together. |
EventLiteral
One signed event predicate literal: a predicate, optionally negated.
| Field | Type | Label | Description |
| negated | bool | | When true, the literal matches events that the predicate does *not* match. |
| sender | SenderFilter | | Match events from transactions sent by the specified address. |
| emit_module | EmitModuleFilter | | Match events whose package/module fields match the specified filter. |
| event_type | EventTypeFilter | | Match events whose type matches the specified filter. |
| event_stream_head | EventStreamHeadFilter | | Match events committed to the specified authenticated event stream head. |
EventStreamHeadFilter
Match by authenticated event stream head.
| Field | Type | Label | Description |
| stream_id | string | optional | The stream id address (hex-encoded). |
EventTerm
One conjunction in an event DNF filter.
| Field | Type | Label | Description |
| literals | EventLiteral | repeated | Literals are ANDed together. |
EventTypeFilter
Match by event struct type, specified as a Move type string.
Specificity levels:
"0xaddr" -> matches events whose type is defined at this address
"0xaddr::module" -> matches events whose type is in this module
"0xaddr::module::Name" -> matches events with this type name (any instantiation)
"0xaddr::module::Name<T1, T2>" -> matches events with this exact generic instantiation
| Field | Type | Label | Description |
| event_type | string | optional | Required. Move type string of the form
`address[::module[::Name[<type_params>]]]`. |
MoveCallFilter
Match by Move function call, specified as a `::`-delimited Move path.
Specificity levels:
"0xpkg" -> matches any call in the package
"0xpkg::module" -> matches any call in the module
"0xpkg::module::function" -> matches calls to the exact function
| Field | Type | Label | Description |
| function | string | optional | Required. Move path of the form `package[::module[::function]]`. |
ObjectFilter
DNF filter for objects: any term may match, and each term is an AND of
signed literals. Every predicate constrains the object's Move type, which
is the leading sort key of the index the service lists from, so the
service seeks past runs of non-matching objects instead of reading them.
A term may contain only negated literals, e.g. "every type except
`0x2::coin::Coin`".
An absent filter matches everything. A present filter must have at least one
term, and every term at least one literal.
| Field | Type | Label | Description |
| terms | ObjectTerm | repeated | Terms are ORed together. |
ObjectLiteral
One signed object predicate literal: a predicate, optionally negated.
| Field | Type | Label | Description |
| negated | bool | | When true, the literal matches objects that the predicate does *not*
match. |
| object_type | ObjectTypeFilter | | Match objects whose Move type matches the specified filter. |
ObjectTerm
One conjunction in an object DNF filter.
| Field | Type | Label | Description |
| literals | ObjectLiteral | repeated | Literals are ANDed together. |
ObjectTypeFilter
Match by an object's Move struct type, specified as a Move type string.
Specificity levels:
"0xaddr" -> matches objects whose type is defined at this address
"0xaddr::module" -> matches objects whose type is in this module
"0xaddr::module::Name" -> matches objects with this type name (any instantiation)
"0xaddr::module::Name<T1, T2>" -> matches objects with this exact generic instantiation
The address is the one in the type's canonical form: the package that first
defined the type, not the package version that created the object.
| Field | Type | Label | Description |
| object_type | string | optional | Required. Move type string of the form
`address[::module[::Name[<type_params>]]]`. |
PackageWriteFilter
Match transactions that wrote a Move package.
SenderFilter
Match by transaction sender address.
| Field | Type | Label | Description |
| address | string | optional | The sender address (hex-encoded). |
TransactionFilter
DNF filter for transactions: any term may match, and each term is an AND
of signed literals.
An absent filter matches everything. A present filter must have at least one
term.
| Field | Type | Label | Description |
| terms | TransactionTerm | repeated | Terms are ORed together. |
TransactionLiteral
One signed transaction predicate literal: a predicate, optionally negated.
| Field | Type | Label | Description |
| negated | bool | | When true, the literal matches transactions that the predicate does *not*
match. |
| sender | SenderFilter | | Match transactions sent by the specified address. |
| affected_address | AffectedAddressFilter | | Match transactions where the specified address's state moved as a side
effect: it owns an object after the txn, owned an object before the
txn that was mutated/transferred away/deleted/wrapped, or its
address-balance changed via an accumulator event. |
| affected_object | AffectedObjectFilter | | Match transactions whose effects include a change for the specified
object. |
| move_call | MoveCallFilter | | Match transactions that made a Move call matching the specified filter. |
| emit_module | EmitModuleFilter | | Match transactions that emitted an event whose package/module fields
match the specified filter. |
| event_type | EventTypeFilter | | Match transactions that emitted an event with a type matching the
specified filter. |
| event_stream_head | EventStreamHeadFilter | | Match transactions that wrote to the specified authenticated event
stream head. |
| package_write | PackageWriteFilter | | Match transactions that wrote a Move package — a first publish or an
upgrade, of any package. |
TransactionTerm
One conjunction in a transaction DNF filter.
BatchGetObjectsRequest
| Field | Type | Label | Description |
| requests | GetObjectRequest | repeated | The objects to fetch. Each request carries its own `version`,
`max_version` or `at_checkpoint`, so a single batch may read different
objects at different versions or checkpoints. Errors for individual
objects, such as `NOT_FOUND`, are reported per item in the response. A
malformed request, such as one that sets both `version` and
`max_version`, fails the whole batch with `INVALID_ARGUMENT`. If any
request sets `at_checkpoint` or `max_version` and the server cannot serve
such reads, the whole batch fails as `GetObjectRequest` describes for
that field. |
| read_mask | FieldMask | optional | Mask specifying which fields to read.
If no mask is specified, defaults to `object_id,version,digest`. |
BatchGetObjectsResponse
BatchGetTransactionsRequest
Each transaction is answered as by `GetTransaction`, in its own result.
| Field | Type | Label | Description |
| digests | string | repeated | Required. The digests of the requested transactions. |
| read_mask | FieldMask | optional | Mask specifying which fields to read.
If no mask is specified, defaults to `digest`. |
BatchGetTransactionsResponse
GetCheckpointRequest
A server that prunes history refuses a checkpoint below its lowest
available checkpoint with `OUT_OF_RANGE` and reason
`BELOW_EARLIEST_AVAILABLE`: by `sequence_number` always, by `digest` while
it can still find the checkpoint. A digest it can no longer find is
`NOT_FOUND`.
| Field | Type | Label | Description |
| sequence_number | uint64 | | The sequence number of the requested checkpoint. |
| digest | string | | The digest of the requested checkpoint. |
| read_mask | FieldMask | optional | Mask specifying which fields to read.
If no mask is specified, defaults to `sequence_number,digest`. |
GetCheckpointResponse
| Field | Type | Label | Description |
| checkpoint | Checkpoint | optional | |
GetEpochRequest
| Field | Type | Label | Description |
| epoch | uint64 | optional | The requested epoch. If unset, the current epoch: on fullnodes the epoch
of their live state, and on kv-rpc the epoch of the highest checkpoint it
has indexed. Apart from a fullnode's live epoch, which it answers even
before its RPC index records it, an epoch the server has not reached or
has not indexed fails with `NOT_FOUND`. Servers without RPC indexes fail
a request for a past epoch with `UNIMPLEMENTED` and reason
`NOT_SERVED_HERE`. |
| read_mask | FieldMask | optional | Mask specifying which fields to read. If no mask is specified, defaults
to `epoch`, `first_checkpoint`, `last_checkpoint`, `start`, `end`,
`reference_gas_price` and `protocol_config.protocol_version`. |
GetEpochResponse
| Field | Type | Label | Description |
| epoch | Epoch | optional | |
GetObjectRequest
A request that resolves to a version where the object was deleted or
wrapped fails with `NOT_FOUND`, with reason `OBJECT_REMOVED` when the server
can find the removal.
| Field | Type | Label | Description |
| object_id | string | optional | Required. The `ObjectId` of the requested object. |
| version | uint64 | optional | Optional. Request a specific version of the object.
Mutually exclusive with `max_version`; servers reject a request that sets
both with `INVALID_ARGUMENT`. If none of `version`, `max_version` and
`at_checkpoint` is set and the object is live, the latest version of the
object is returned.
Servers that prune object history fail with `OUT_OF_RANGE` and reason
`BELOW_EARLIEST_AVAILABLE` for a version they no longer hold. A version
above the object's latest version is `NOT_FOUND`.
Without `at_checkpoint`, servers that keep only each object's latest
version answer requests for that version, even if the object was deleted
or wrapped at it (`NOT_FOUND`, as described on `GetObjectRequest`), and
fail with `OUT_OF_RANGE` and reason `VERSION_NOT_RETAINED` for any older
version. An object they have no entry for at all is `NOT_FOUND`. |
| read_mask | FieldMask | optional | Mask specifying which fields to read.
If no mask is specified, defaults to `object_id,version,digest`. |
| at_checkpoint | uint64 | optional | Optional. Set alone, return the object's state at the end of this
checkpoint. An object deleted or wrapped at or before it (and not since
unwrapped or re-created) is `NOT_FOUND`.
Combined with `version` or `max_version`, it bounds which versions are
visible: the server resolves the selected version first, then fails with
`NOT_FOUND` if that version was written after `at_checkpoint`, without
falling back to an older visible version. A visible version is returned
even if the object was deleted or wrapped by the end of `at_checkpoint`.
For example, if version 5 was written in checkpoint 10 and version 8 in
checkpoint 20, then on a server that has indexed checkpoint 25,
`max_version: 8` with `at_checkpoint: 15` is `NOT_FOUND`, and with
`at_checkpoint: 25` returns version 8. A server that has indexed only up
to checkpoint 19 selects version 5 and returns it for `at_checkpoint: 15`.
Outside the checkpoints the server has indexed, it fails as a request
pinned to a checkpoint (see `ErrorReason.ABOVE_LATEST_AVAILABLE` and
`BELOW_EARLIEST_AVAILABLE`).
Servers that are not set up for reads at a checkpoint fail with
`UNIMPLEMENTED` and reason `NOT_SERVED_HERE`. Servers that cannot serve
them yet, for example while they backfill history, fail with
`UNAVAILABLE` and reason `NOT_READY`. Servers that predate this field
ignore it and answer as if it were unset. |
| max_version | uint64 | optional | Optional. Return the object's newest version at or below `max_version`.
Without `at_checkpoint`, fullnodes read it from their live state and
kv-rpc reads it at the highest checkpoint it has indexed; with it, both
select among the versions up to the highest checkpoint they have indexed.
Fails with `NOT_FOUND` if there is none, or if the object was deleted or
wrapped at that version. Mutually exclusive with `version`; a request
that sets both fails with `INVALID_ARGUMENT`. Servers that prune object
history fail with `OUT_OF_RANGE` and reason `BELOW_EARLIEST_AVAILABLE`
for a version they no longer hold.
Servers that are not set up for `max_version` reads, such as fullnodes
without RPC indexes, fail with `UNIMPLEMENTED` and reason
`NOT_SERVED_HERE`. Servers that cannot serve them yet, for example while
they backfill their indexes, fail with `UNAVAILABLE` and reason
`NOT_READY`. Servers that predate this field ignore it and answer as if
it were unset. |
GetObjectResponse
| Field | Type | Label | Description |
| object | Object | optional | |
GetObjectResult
GetProtocolConfigRequest
| Field | Type | Label | Description |
| version | uint64 | optional | The requested protocol version. If unset, the current version (see
`LedgerService.GetProtocolConfig`). |
| read_mask | FieldMask | optional | Mask specifying which fields to read.
If no mask is specified, defaults to `protocol_version`. |
GetProtocolConfigResponse
GetServiceInfoRequest
GetServiceInfoResponse
| Field | Type | Label | Description |
| chain_id | string | optional | The chain identifier of the chain that this node is on.
The chain identifier is the digest of the genesis checkpoint, the
checkpoint with sequence number 0. |
| chain | string | optional | Human-readable name of the chain that this node is on.
This is intended to be a human-readable name like `mainnet`, `testnet`, and so on. |
| epoch | uint64 | optional | Current epoch of the node based on its highest executed checkpoint. |
| checkpoint_height | uint64 | optional | Checkpoint height of the most recently executed checkpoint. |
| timestamp | Timestamp | optional | Unix timestamp of the most recently executed checkpoint. |
| lowest_available_checkpoint | uint64 | optional | The lowest checkpoint for which checkpoints and transaction data are available. |
| lowest_available_checkpoint_objects | uint64 | optional | The lowest checkpoint for which object data is available. |
| server | string | optional | Software version of the service. Similar to the `server` http header. |
GetTransactionRequest
A server that prunes history refuses a transaction it can place in a
checkpoint below its lowest available checkpoint with `OUT_OF_RANGE` and
reason `BELOW_EARLIEST_AVAILABLE`. A transaction it can no longer find, or
one above its latest checkpoint, is `NOT_FOUND`.
| Field | Type | Label | Description |
| digest | string | optional | Required. The digest of the requested transaction. |
| read_mask | FieldMask | optional | Mask specifying which fields to read.
If no mask is specified, defaults to `digest`. |
GetTransactionResponse
GetTransactionResult
ListCheckpointsRequest
Request message for LedgerService.ListCheckpoints.
| Field | Type | Label | Description |
| read_mask | FieldMask | optional | Optional. Mask for specifying which parts of the Checkpoint should be
returned (e.g. summary, contents, signatures). |
| start_checkpoint | uint64 | optional | Optional. Start of the checkpoint range to query (inclusive). Defaults to
genesis. |
| end_checkpoint | uint64 | optional | Optional. End of the checkpoint range to query (exclusive). Defaults to the
current indexed ledger tip. |
| filter | TransactionFilter | optional | Optional. DNF filter over indexed transaction dimensions. A checkpoint
matches if any transaction it contains satisfies the filter. If absent,
all checkpoints in the range are returned. |
| options | QueryOptions | optional | Optional cursor-bounded query options. If unspecified, reads in ascending
order with the default item limit. The server enforces a maximum item
limit and silently coerces larger values down to it. To paginate, pass
the last received `Watermark.cursor` as `options.after` (ascending) or
`options.before` (descending) on the next request. |
ListCheckpointsResponse
Response message for LedgerService.ListCheckpoints.
Every frame carries a `watermark` with a safe resume cursor. A frame
with `checkpoint` set delivers one matching item; a frame without it reports
scan progress or terminal completion. Watermarks never regress in the
requested ordering but may repeat.
`end` is set exactly once, on the final frame of a successful stream. For
`QUERY_END_REASON_ITEM_LIMIT`, that frame also carries the final item. For
every other end reason, the final frame has no `checkpoint` payload.
| Field | Type | Label | Description |
| checkpoint | Checkpoint | optional | One matching checkpoint. |
| watermark | Watermark | optional | Progress watermark as of this frame. Present on every frame. A
ScanLimit terminal watermark may repeat the previous frame's cursor when
its authoritative scan frontier was already emitted. |
| end | QueryEnd | optional | Set exactly once, on the final frame of a successful query stream. |
ListEventsRequest
Request message for LedgerService.ListEvents.
| Field | Type | Label | Description |
| read_mask | FieldMask | optional | Optional. Mask for specifying which parts of the Event should be returned. |
| start_checkpoint | uint64 | optional | Optional. Start of the checkpoint range to query (inclusive). Defaults to
genesis. |
| end_checkpoint | uint64 | optional | Optional. End of the checkpoint range to query (exclusive). Defaults to the
current indexed ledger tip. |
| filter | EventFilter | optional | Optional. DNF filter over indexed dimensions.
If absent, all events in the range are returned. |
| options | QueryOptions | optional | Optional cursor-bounded query options. If unspecified, reads in ascending
order with the default item limit. The server enforces a maximum item
limit and silently coerces larger values down to it. To paginate, pass
the last received `Watermark.cursor` as `options.after` (ascending) or
`options.before` (descending) on the next request. |
| start_transaction_index | uint64 | optional | Optional. Transaction position within `start_checkpoint` at which the
query starts (inclusive): within `start_checkpoint`, only events of
transactions whose `Event.transaction_index` is at least this value are
returned. Unset starts at the beginning of `start_checkpoint`. An index at
or past the checkpoint's transaction count starts at the next checkpoint,
ignoring `start_event_index`. Requires `start_checkpoint`. When this
position leaves events of `start_checkpoint` out, a descending query does
not report that checkpoint as covered in `Watermark.checkpoint`.
Combines with `options.after` by intersection: the query starts at
whichever of the two is later in ledger order.
Servers that predate this field ignore it and start at the beginning of
`start_checkpoint`, so clients must still drop events before this
position themselves. |
| start_event_index | uint32 | optional | Optional. Event position within the transaction at
`start_transaction_index` at which the query starts (inclusive): within
that transaction, only events whose `Event.event_index` is at least this
value are returned. Unset starts at the transaction's first event. An
index past the transaction's last event starts at the next transaction.
Requires `start_transaction_index`.
Servers that predate this field ignore it, as for
`start_transaction_index`. |
| end_transaction_index | uint64 | optional | Optional. Transaction position within the last checkpoint of the range,
`end_checkpoint - 1`, at which the query ends (exclusive): within that
checkpoint, only events of transactions whose `Event.transaction_index` is
below this value are returned, plus, with `end_event_index`, the events
of the transaction at this index that precede it. Unset ends after the
whole checkpoint. An index at or past the checkpoint's transaction count
ends after the whole checkpoint. Requires `end_checkpoint`. A query that
stops at this position ends with `QUERY_END_REASON_CHECKPOINT_BOUND`.
When this position leaves events of that checkpoint out, an ascending
query does not report it as covered in `Watermark.checkpoint`.
Combines with `options.before` by intersection: the query ends at
whichever of the two is earlier in ledger order.
Servers that predate this field ignore it and return the whole
checkpoint, so clients must still drop events at or after this position
themselves. |
| end_event_index | uint32 | optional | Optional. Event position within the transaction at
`end_transaction_index` at which the query ends (exclusive): events of
that transaction whose `Event.event_index` is below this value are also
returned. Unset, like 0, returns none of the transaction's events. An
index past the transaction's last event returns all of them. Requires
`end_transaction_index`.
Servers that predate this field ignore it, as for
`end_transaction_index`. |
ListEventsResponse
Response message for LedgerService.ListEvents.
Every frame carries a `watermark` with a safe resume cursor. A frame
with `event` set delivers one matching item; a frame without it reports scan
progress or terminal completion. Watermarks never regress in the requested
ordering but may repeat.
`end` is set exactly once, on the final frame of a successful stream. For
`QUERY_END_REASON_ITEM_LIMIT`, that frame also carries the final item. For
every other end reason, the final frame has no `event` payload.
| Field | Type | Label | Description |
| event | Event | optional | One matching event. Its ledger position -- containing checkpoint,
emitting transaction digest and offset, and index within that
transaction's event list -- is reported by the corresponding fields on
`Event`. |
| watermark | Watermark | optional | Progress watermark as of this frame. Present on every frame. A
ScanLimit terminal watermark may repeat the previous frame's cursor when
its authoritative scan frontier was already emitted. |
| end | QueryEnd | optional | Set exactly once, on the final frame of a successful query stream. |
ListObjectVersionsRequest
Request message for LedgerService.ListObjectVersions.
Lists the object's history, one item per version: a live version or a
removal (a version where it was deleted or wrapped). Both count toward
`options.limit`, and every bound applies to both. The bounds intersect. An
empty result, including for an object that does not exist, ends with
`QueryEnd` rather than `NOT_FOUND`. After a removal the object can come back
at a higher version, by an unwrap or by being created again under the same
ID (dynamic fields, derived objects), and the listing continues with it.
Past what this server has indexed, the listing follows the other `List*`
RPCs (see `ErrorReason.ABOVE_LATEST_AVAILABLE`). A descending listing fails
with `OUT_OF_RANGE` / `ABOVE_LATEST_AVAILABLE` when its `end_checkpoint` is
above `firstUnavailableCheckpoint` (one above the highest checkpoint the
server has indexed); with `end_checkpoint` unset, when its
`start_checkpoint` is at or above `firstUnavailableCheckpoint`, its `after`
cursor is at or above one past the object's newest version at the highest
indexed checkpoint, or its `before` cursor is above that. An ascending
listing is never refused for these: it is served from this server's view
and, unless `end_version` or `before` ends it first, ends with
`QUERY_END_REASON_LEDGER_TIP`; an `after` cursor past the highest indexed
checkpoint comes back unchanged as its last `cursor`. A server that prunes
history and retains nothing of the object compares the checkpoints the
cursors record instead; see below.
`start_version` and `end_version` may be above the object's newest version
without error: a descending listing whose `end_version` is above it starts
at the newest version, and a range entirely above it lists nothing.
A server that prunes history lists only the versions it retains: each
object's history from its state at the end of the lowest checkpoint whose
object state it keeps. A listing whose version bounds reach below the
object's oldest retained version starts there, in either order, and ends as
it would if that were the object's first version; nothing in the response
marks the difference. An object of which the server retains nothing lists
nothing. A client that needs an object's complete history uses a server
that does not prune it.
The lowest `start_checkpoint` this server accepts is one above that lowest
checkpoint. An empty range (`end_checkpoint` equal to `start_checkpoint`)
lists nothing and is never refused as pruned. Otherwise a lower
`start_checkpoint` fails with `OUT_OF_RANGE` / `BELOW_EARLIEST_AVAILABLE`
(unless an `after` cursor bounds the listing at or above that lowest
start), and so does an `end_checkpoint` at or below it in a request with no
lower bound of its own (no `start_checkpoint` and no `after` cursor). Every
`BELOW_EARLIEST_AVAILABLE` error of this method reports that lowest
`start_checkpoint` as `lowestAvailableCheckpoint`. With `start_checkpoint`
set, a listing that pruning overtakes while it streams fails the same way
rather than end at the object's oldest retained version.
A descending listing that resumes from a `before` cursor below the object's
oldest retained version gets an empty page that ends normally, as at the
object's oldest retained version. So does one for an object of which the
server retains nothing.
A listing bounded below by an `after` cursor, in either order, starts right
after the position the cursor names: the item the client holds, or the edge
of an earlier listing that returned nothing past it. When that is below the
object's oldest retained version, listing from there could leave a gap, so
the request fails with `OUT_OF_RANGE` / `BELOW_EARLIEST_AVAILABLE`. So does
a request with an `after` cursor for an object of which the server retains
nothing. A cursor that marks the edge of an earlier listing, rather than an
item, is served instead only when the server can tell that the object had
no version after that edge at or below the lowest checkpoint whose object
state it keeps, so nothing after it was pruned. The server may return this
error even when no version existed between the cursor and the oldest
retained one, if it cannot tell. An ascending listing that pruning
overtakes while it streams may fail the same way.
When the range reaches this server's tip (`end_checkpoint` unset or above
`firstUnavailableCheckpoint`), a request for an object this server retains
nothing of whose cursors all come from a server that has indexed further
than this one fails with `OUT_OF_RANGE` / `ABOVE_LATEST_AVAILABLE` (bound
"cursor"), in either order, until the server catches up: the object may be
newer than this server's tip, or pruned here.
With `transaction` in `removal_read_mask`, the retained versions start from
the higher of that checkpoint and the last checkpoint before this server's
removal transactions start, if any, and that higher checkpoint takes its
place in the rules above. Above it, a removal whose transaction the server
cannot find fails the listing with `INTERNAL`.
Servers that are not set up for this method, for example without the
indexes it needs, fail with `UNIMPLEMENTED` and reason `NOT_SERVED_HERE`.
Servers that cannot serve it yet, for example while they backfill those
indexes, fail with `UNAVAILABLE` and reason `NOT_READY`.
| Field | Type | Label | Description |
| object_id | string | optional | Required. The `ObjectId` of the object whose versions to list. |
| read_mask | FieldMask | optional | Mask for each live version's `object`. Defaults to
`object_id,version,digest`. Does not apply to `removal`. |
| options | QueryOptions | optional | Optional. The listing's order is ascending version. The server sets the
default and maximum `limit`; larger values are coerced to the maximum,
and `0` to `1`. Cursors come from `ListObjectVersionsResponse.cursor` and
are per object: a malformed cursor, or one for another object, fails with
`INVALID_ARGUMENT`. Resume from the last `cursor` received.
A cursor also records the listing's bounding checkpoint: the last
checkpoint of the range when `end_checkpoint` is set and that checkpoint
is indexed, else the highest checkpoint the server that returned it had
indexed. |
| start_version | uint64 | optional | Optional. Start of the version range to list (inclusive). |
| end_version | uint64 | optional | Optional. End of the version range to list (exclusive). Below
`start_version` it fails with `INVALID_ARGUMENT`; equal to it, the range
lists nothing. |
| removal_read_mask | FieldMask | optional | Mask for each `removal`, with paths `version`, `kind` and `transaction`.
Defaults to `version,kind`. |
| start_checkpoint | uint64 | optional | Optional. Start of the checkpoint range to list (inclusive): only
versions written in this checkpoint or later. The listing covers the
history written in the range, not the object's state at one checkpoint.
If unset, the listing starts at the object's first version (on a server
that prunes history, its oldest retained version). |
| end_checkpoint | uint64 | optional | Optional. End of the checkpoint range to list (exclusive): only versions
written before this checkpoint. Below `start_checkpoint` it fails with
`INVALID_ARGUMENT`; equal to it, the range lists nothing. If unset, the
range ends at the highest checkpoint the server has indexed.
With `end_checkpoint` set, `QUERY_END_REASON_LEDGER_TIP` means the server
stopped at its highest indexed checkpoint, short of `end_checkpoint`:
retry later or on another replica. |
ListObjectVersionsResponse
Response message for LedgerService.ListObjectVersions.
Every frame carries a `cursor`. A frame that delivers an item sets `item`,
in ascending version order or in reverse for `ORDERING_DESCENDING`. `end`
is set exactly once, on the last frame; with `QUERY_END_REASON_ITEM_LIMIT`
it rides on the last item's frame, and otherwise the last frame leaves
`item` unset. In this listing:
- `QUERY_END_REASON_CHECKPOINT_BOUND`: reached `end_version` or
`start_version`, the end of the checkpoint range, or the object's first
version (on a server that prunes history, its oldest retained version).
- `QUERY_END_REASON_CURSOR_BOUND`: reached the far cursor (`before`
ascending, `after` descending).
- `QUERY_END_REASON_LEDGER_TIP`: an ascending listing reached the highest
checkpoint the server has indexed, below `end_checkpoint` if set; resume
later from the last cursor received.
| Field | Type | Label | Description |
| object | Object | | A live version, with the fields selected by `read_mask`. |
| removal | ObjectRemoval | | A version at which the object was deleted or wrapped, with the fields
selected by `removal_read_mask`. |
| cursor | bytes | optional | The opaque resume position as of this frame, for use as `options.after`
or `options.before`. Set on every frame, including the last. On a frame
that sets `item`, it is that item's position; the last frame carries the
position where the listing stopped, so a listing with no items still
returns a resume cursor, and with `QUERY_END_REASON_CURSOR_BOUND` it is
the far cursor. It records the listing's bounding checkpoint (see
`ListObjectVersionsRequest.options`), not how far the listing has
covered the ledger. |
| end | QueryEnd | optional | Set exactly once, on the final frame of a successful stream. |
ListTransactionsRequest
Request message for LedgerService.ListTransactions.
| Field | Type | Label | Description |
| read_mask | FieldMask | optional | Optional. Mask for specifying which parts of the ExecutedTransaction
should be returned. |
| start_checkpoint | uint64 | optional | Optional. Start of the checkpoint range to query (inclusive). Defaults to
genesis. |
| end_checkpoint | uint64 | optional | Optional. End of the checkpoint range to query (exclusive). Defaults to the
current indexed ledger tip. |
| filter | TransactionFilter | optional | Optional. DNF filter over indexed dimensions.
If absent, all transactions in the range are returned. |
| options | QueryOptions | optional | Optional cursor-bounded query options. If unspecified, reads in ascending
order with the default item limit. The server enforces a maximum item
limit and silently coerces larger values down to it. To paginate, pass
the last received `Watermark.cursor` as `options.after` (ascending) or
`options.before` (descending) on the next request. |
| start_transaction_index | uint64 | optional | Optional. Transaction position within `start_checkpoint` at which the
query starts (inclusive): within `start_checkpoint`, only transactions
whose `ExecutedTransaction.transaction_index` is at least this value are
returned. Unset starts at the beginning of `start_checkpoint`. An index at
or past the checkpoint's transaction count starts at the next checkpoint.
Requires `start_checkpoint`. When this position leaves transactions of
`start_checkpoint` out, a descending query does not report that checkpoint
as covered in `Watermark.checkpoint`.
Combines with `options.after` by intersection: the query starts at
whichever of the two is later in ledger order.
Servers that predate this field ignore it and start at the beginning of
`start_checkpoint`, so clients must still drop transactions before this
position themselves. |
| end_transaction_index | uint64 | optional | Optional. Transaction position within the last checkpoint of the range,
`end_checkpoint - 1`, at which the query ends (exclusive): within that
checkpoint, only transactions whose `ExecutedTransaction.transaction_index`
is below this value are returned, so 0 returns none of it. Unset ends after
the whole checkpoint. An index at or past the checkpoint's transaction
count ends after the whole checkpoint. Requires `end_checkpoint`. A query
that stops at this position ends with `QUERY_END_REASON_CHECKPOINT_BOUND`.
When this position leaves transactions of that checkpoint out, an
ascending query does not report it as covered in `Watermark.checkpoint`.
Combines with `options.before` by intersection: the query ends at
whichever of the two is earlier in ledger order.
Servers that predate this field ignore it and return the whole
checkpoint, so clients must still drop transactions at or after this
position themselves. |
ListTransactionsResponse
Response message for LedgerService.ListTransactions.
Every frame carries a `watermark` with a safe resume cursor. A frame
with `transaction` set delivers one matching item; a frame without it reports
scan progress or terminal completion. Watermarks never regress in the
requested ordering but may repeat.
`end` is set exactly once, on the final frame of a successful stream. For
`QUERY_END_REASON_ITEM_LIMIT`, that frame also carries the final item. For
every other end reason, the final frame has no `transaction` payload.
| Field | Type | Label | Description |
| transaction | ExecutedTransaction | optional | One matching transaction. Its position within the containing checkpoint
is reported by `ExecutedTransaction.transaction_index`. |
| watermark | Watermark | optional | Progress watermark as of this frame. Present on every frame. A
ScanLimit terminal watermark may repeat the previous frame's cursor when
its authoritative scan frontier was already emitted. |
| end | QueryEnd | optional | Set exactly once, on the final frame of a successful query stream. |
ObjectRemoval
A version at which an object was deleted or wrapped, listed by
`ListObjectVersions`. The object has no contents at this version.
| Field | Type | Label | Description |
| version | uint64 | optional | The version the removing transaction assigned the object. |
| kind | Kind | optional | How the object was removed. |
| transaction | string | optional | The digest of the transaction that deleted or wrapped the object. Set
only when `ListObjectVersionsRequest.removal_read_mask` selects it, and
then always set. |
SubscribeCheckpointsRequest
Request message for SubscriptionService.SubscribeCheckpoints.
| Field | Type | Label | Description |
| read_mask | FieldMask | optional | Optional. Mask for specifying which parts of the Checkpoint should be
returned (e.g. summary, contents, signatures). `cursor` is always
populated and is not subject to the mask. |
| filter | TransactionFilter | optional | Optional. DNF filter over indexed transaction dimensions. A checkpoint
matches if any transaction it contains satisfies the filter. If absent,
every checkpoint is streamed. |
SubscribeCheckpointsResponse
Response message for SubscriptionService.SubscribeCheckpoints.
A checkpoint stream's position is checkpoint-granular, so the `cursor`
sequence number stands in for the `Watermark` message the other
subscription responses carry. Progress-only frames (with `checkpoint`
unset) occur only on filtered streams: on an unfiltered stream every frame
carries both fields, in order and without gaps.
| Field | Type | Label | Description |
| cursor | uint64 | optional | Required. The checkpoint sequence number the stream has fully covered,
inclusive: every matching checkpoint from the stream's start position
through `cursor` has been delivered. Present on every frame and
advances monotonically. |
| checkpoint | Checkpoint | optional | The matching checkpoint. Unset when this frame only advances the
cursor past non-matching checkpoints. |
SubscribeEventsRequest
Request message for SubscriptionService.SubscribeEvents.
| Field | Type | Label | Description |
| read_mask | FieldMask | optional | Optional. Mask for specifying which parts of the Event should be
returned. |
| filter | EventFilter | optional | Optional. DNF filter over indexed dimensions. If absent, every event is
streamed. |
SubscribeEventsResponse
Response message for SubscriptionService.SubscribeEvents.
Mirrors ListEventsResponse, except there is no `end` field: a subscription
stream has no successful end.
| Field | Type | Label | Description |
| event | Event | optional | One matching event. Its ledger position -- containing checkpoint,
emitting transaction digest and offset, and index within that
transaction's event list -- is reported by the corresponding fields on
`Event`. |
| watermark | Watermark | optional | Progress watermark as of this frame. Present on every frame. |
SubscribeTransactionsRequest
Request message for SubscriptionService.SubscribeTransactions.
| Field | Type | Label | Description |
| read_mask | FieldMask | optional | Optional. Mask for specifying which parts of the ExecutedTransaction
should be returned. |
| filter | TransactionFilter | optional | Optional. DNF filter over indexed dimensions. If absent, every
transaction is streamed. |
SubscribeTransactionsResponse
Response message for SubscriptionService.SubscribeTransactions.
Mirrors ListTransactionsResponse, except there is no `end` field: a
subscription stream has no successful end.
| Field | Type | Label | Description |
| transaction | ExecutedTransaction | optional | One matching transaction. Its position within the containing checkpoint
is reported by `ExecutedTransaction.transaction_index`. |
| watermark | Watermark | optional | Progress watermark as of this frame. Present on every frame. |
Argument
An argument to a programmable transaction command.
| Field | Type | Label | Description |
| kind | ArgumentKind | optional | |
| input | uint32 | optional | Index of an input when `kind` is `INPUT`. |
| result | uint32 | optional | Index of a result when `kind` is `RESULT`. |
| subresult | uint32 | optional | Used to access a nested result when `kind` is `RESULT`. |
VerifySignatureRequest
| Field | Type | Label | Description |
| message | Bcs | optional | The message to verify against.
Today the only supported message types are `PersonalMessage` and
`TransactionData` and the `Bcs.name` must be set to indicate which type of
message is being verified. |
| signature | UserSignature | optional | The signature to verify. |
| address | string | optional | Optional. Address to validate against the provided signature.
If provided, this address will be compared against the the address derived
from the provide signature and a successful response will only be returned
if they match. |
| jwks | ActiveJwk | repeated | The set of JWKs to use when verifying Zklogin signatures.
If this is empty the current set of valid JWKs stored onchain will be used |
| check_address_aliases | bool | optional | Optional. If true, `address` is required and the signature must be from a
member of `address`'s current `AddressAliases` set rather than from
`address` itself. An address with no `AddressAliases` set is its own only
alias.
Servers that predate this field ignore it, so clients must check
`address_aliases_checked` in the response. |
VerifySignatureResponse
| Field | Type | Label | Description |
| is_valid | bool | optional | Indicates if the provided signature was valid given the requested parameters. |
| reason | string | optional | If `is_valid` is `false`, this is the reason for why the signature verification failed. |
| address_aliases_checked | bool | optional | Set to true when the server applied `check_address_aliases`, whether or
not the signature is valid. Unset by servers that predate it. |
LedgerPosition
A point in ledger order: the boundary between the items whose keys sort
below this position and the items whose keys sort at or above it.
An item's key is (`sequence_number`) for a `Checkpoint`, (`checkpoint`,
`transaction_index`) for an `ExecutedTransaction`, and (`checkpoint`,
`transaction_index`, `event_index`) for an `Event`. Keys and positions sort
lexicographically, with unset fields counting as 0.
An index past the last transaction of a checkpoint, or past the last event of
a transaction, names the start of the next one, so different positions can
name the same boundary: after the last of checkpoint `c`'s `n` transactions,
both (`c`, `n`) and (`c + 1`, 0) name the start of checkpoint `c + 1`.
Sorting never contradicts ledger order: a position that sorts below another
is at or before it. Use comparisons to drop what is behind, and never assume
that positions that differ name different boundaries.
To bound a request at a position: as its start, set `start_checkpoint` to
`checkpoint` and, when either index is nonzero, the start index fields to
both indexes, including one that is 0 (`start_transaction_index`, plus
`start_event_index` for events). As its end, set `end_checkpoint` to
`checkpoint` when both indexes are 0; otherwise set `end_checkpoint` to
`checkpoint + 1` and the end index fields to both indexes
(`end_transaction_index`, plus `end_event_index` for events). Checkpoint
positions carry only `checkpoint`, so they set only `start_checkpoint` or
`end_checkpoint`.
| Field | Type | Label | Description |
| checkpoint | uint64 | optional | Checkpoint sequence number. |
| transaction_index | uint64 | optional | Zero-based position of a transaction within `checkpoint`. |
| event_index | uint32 | optional | Zero-based index of an event within its transaction's event list. Event
streams only. |
QueryEnd
Marker for the final frame of a successful query stream. Every successful
stream sets `QueryEnd` on exactly one frame, after which no further frames
are sent. On streams whose frames carry a `Watermark`, that frame always
carries the final watermark. For `ItemLimit`, it also carries the final
matching item; for every other reason it carries no item. A ScanLimit
terminal watermark may repeat the previous frame's cursor when its
authoritative scan frontier was already emitted; this does not repeat an
item.
`QueryEnd` marks a frame; it is not an item, and it does not count against
`QueryOptions.limit`. A paged unary listing sets `QueryEnd` on every
response, alongside that page's items; the rules above about the final
frame and its item apply to streams.
A stream that fails or is cancelled terminates with a gRPC status and does
not send `QueryEnd`.
| Field | Type | Label | Description |
| reason | QueryEndReason | optional | Reason this response stopped. |
QueryOptions
Cursor-bounded options for a listing request.
`after` and `before` are opaque, exclusive bounds in the listing's canonical
order. `after` always excludes items at or below that cursor, and `before`
always excludes items at or above that cursor. Their meaning does not depend
on `ordering`, which only sets the order of results within the bounded
interval.
Other range fields on the request, such as checkpoint or version bounds,
compose with the cursor bounds by intersection: results come only from
inside both.
Each method sets its own `limit` default and maximum and documents how to
resume.
| Field | Type | Label | Description |
| limit | uint32 | optional | The maximum number of items to return. Each method applies its own default
and maximum. |
| after | bytes | optional | Opaque exclusive lower bound. Results must be strictly after this cursor in
the listing's canonical order. |
| before | bytes | optional | Opaque exclusive upper bound. Results must be strictly before this cursor
in the listing's canonical order. |
| ordering | Ordering | optional | Ordering for returned results. Defaults to ASCENDING.
Ordering only controls the order of results within the bounded interval;
cursor bounds keep the same meaning for ascending and descending reads. |
Watermark
Progress of a scan, carried on every response frame, whether or not the
frame delivers a matching item. Watermarks never regress in the requested
ordering, but consecutive frames may carry the same watermark when
additional work does not advance the safe resume frontier.
A watermark has two parts:
- The resume point, in two forms: `cursor`, opaque, for the server, and
`cursor_position`, in ledger coordinates, for clients to order frames and
drop duplicates.
- Coverage: `checkpoint`, the boundary checkpoint the scan has proven fully
covered. It trails the resume point.
To continue in the same direction, set the request's start (ascending) or
end (descending) at `cursor_position`. To read in the other direction, set
the other bound at `cursor_position` from a frame without an item; from a
frame with an item, start a page after the item at its key with the finest
index incremented, or end a page before it at its key. In both cases pass
`cursor` as `options.after` with a start and as `options.before` with an
end.
For example, with `after = A`, `before = B`, `ordering = DESCENDING`, and
`limit = N`, the response contains up to N matching items in descending
order from the interval `(A, B)`. If the response ends with
`QUERY_END_REASON_ITEM_LIMIT`, resume by keeping `after = A` and setting
`before` to the last `Watermark.cursor` received. That cursor is the
lowest position reached in ledger order, so it becomes the next exclusive
upper bound.
| Field | Type | Label | Description |
| cursor | bytes | optional | Opaque cursor at the resume point. Set on every watermark. Use as
`options.after` (ascending) or `options.before` (descending) on the next
request to resume from here. The most recently received cursor is always
the safe resume point.
Pass cursors back unchanged; never compare or inspect them. Cursors that
differ can name the same point, and their encoding may change. |
| checkpoint | uint64 | optional | The inclusive boundary checkpoint that the scan has fully covered within
the request's effective interval, in the request's ordering direction: an
ascending scan has emitted every matching item in the interval at
checkpoints `<= checkpoint` (strictly greater ones may still hold
matches); a descending scan has emitted every matching item in the
interval at checkpoints `>= checkpoint`. This boundary never regresses in
the scan direction, but it may repeat while the cursor advances.
A starting cursor vouches for what precedes it: a scan resumed from an
`after` cursor in checkpoint `c` may report `c - 1` from its first frame,
and a descending scan resumed from a `before` cursor in `c` may report
`c + 1`. Otherwise this is unset until the scan's first checkpoint is
fully covered. A watermark still has a valid resume cursor while this
field is unset. |
| cursor_position | LedgerPosition | optional | The resume point in ledger coordinates. Set on every watermark by servers
that support it.
Ascending, every match from the request's start up to (excluding)
`cursor_position` has been delivered. Descending, every match from
`cursor_position` up to (excluding) the request's end has been delivered.
On a frame that carries an item, ascending, it is the boundary just past
the item, so it is not the item's own key: it is that key with its finest
index incremented (`event_index` for events, `transaction_index` for
transactions, `checkpoint` for checkpoints). Descending, it is the boundary
just before the item, which is the item's key.
It never moves before the request's start (ascending) or past its end
(descending), so an ascending request that starts beyond what the server
has indexed gets its start echoed back: the resume point says where the
client is, not where the ledger is. `cursor` may then name an earlier
point; bounds intersect, so resuming with both starts at
`cursor_position`. |
DatatypeDescriptor
Describes a Move Datatype.
| Field | Type | Label | Description |
| type_name | string | optional | Fully qualified name of this Datatype.
This is `<defining_id>::<module>::<name>` |
| defining_id | string | optional | PackageId of the package where this Datatype is defined.
A type's `defining_id` is the `storage_id` of the package version that first introduced or added that type. |
| module | string | optional | Name of the module where this Datatype is defined |
| name | string | optional | Name of this Datatype |
| abilities | Ability | repeated | This type's abilities |
| type_parameters | TypeParameter | repeated | Ability constraints and phantom status for this type's generic type parameters |
| kind | DatatypeKind | optional | Indicates whether this datatype is a 'STRUCT' or an 'ENUM' |
| fields | FieldDescriptor | repeated | Set of fields if this Datatype is a struct.
The order of the entries is the order of how the fields are defined. |
| variants | VariantDescriptor | repeated | Set of variants if this Datatype is an enum.
The order of the entries is the order of how the variants are defined. |
FieldDescriptor
Descriptor of a field that belongs to a struct or enum variant
| Field | Type | Label | Description |
| name | string | optional | Name of the field |
| position | uint32 | optional | Order or position of the field in the struct or enum variant definition. |
| type | OpenSignatureBody | optional | The type of the field |
FunctionDescriptor
Descriptor of a Move function
| Field | Type | Label | Description |
| name | string | optional | Name of the function |
| visibility | Visibility | optional | Whether the function is `public`, `private` or `public(friend)` |
| is_entry | bool | optional | Whether the function is marked `entry` or not. |
| type_parameters | TypeParameter | repeated | Ability constraints for type parameters |
| parameters | OpenSignature | repeated | Formal parameter types. |
| returns | OpenSignature | repeated | Return types. |
Linkage
Upgraded package info for the linkage table.
| Field | Type | Label | Description |
| original_id | string | optional | Id of the original package. |
| upgraded_id | string | optional | Id of the upgraded package. |
| upgraded_version | uint64 | optional | Version of the upgraded package. |
Module
A Move Module.
| Field | Type | Label | Description |
| name | string | optional | Name of this module. |
| contents | bytes | optional | Serialized bytecode of the module. |
| datatypes | DatatypeDescriptor | repeated | List of DataTypes defined by this module. |
| functions | FunctionDescriptor | repeated | List of Functions defined by this module. |
OpenSignature
Representation of a type signature that could appear as a function parameter or return value.
OpenSignatureBody
Representation of a type signature that could appear as a field type for a struct or enum
| Field | Type | Label | Description |
| type | Type | optional | Type of this signature |
| type_name | string | optional | Fully qualified name of the datatype when `type` is `DATATYPE` |
| type_parameter_instantiation | OpenSignatureBody | repeated | Set when `type` is `VECTOR` or `DATATYPE` |
| type_parameter | uint32 | optional | Position of the type parameter as defined in the containing data type descriptor when `type` is `TYPE_PARAMETER` |
Package
A Move Package
| Field | Type | Label | Description |
| storage_id | string | optional | The PackageId of this package
A package's `storage_id` is the Sui ObjectId of the package on-chain.
Outside of system packages the `storage_id` for every package version is
different. |
| original_id | string | optional | The PackageId of the first published version of this package.
A package's `original_id` (sometimes also called its `runtime_id`) is the
`storage_id` of the first version of this package that has been published.
The `original_id`/`runtime_id` is stable across all versions of the
package and does not ever change. |
| version | uint64 | optional | The version of this package |
| modules | Module | repeated | The modules defined by this package |
| type_origins | TypeOrigin | repeated | List of datatype origins for mapping datatypes to a package version where
it was first defined |
| linkage | Linkage | repeated | The package's transitive dependencies as a mapping from the package's
runtime Id (the Id it is referred to by in other packages) to its
storage Id (the Id it is loaded from on chain). |
TypeOrigin
Identifies a struct and the module it was defined in.
| Field | Type | Label | Description |
| module_name | string | optional | |
| datatype_name | string | optional | |
| package_id | string | optional | |
TypeParameter
A generic type parameter used in the declaration of a struct or enum.
| Field | Type | Label | Description |
| constraints | Ability | repeated | The type parameter constraints |
| is_phantom | bool | optional | Whether the parameter is declared as phantom |
VariantDescriptor
Descriptor of an enum variant
| Field | Type | Label | Description |
| name | string | optional | Name of the variant |
| position | uint32 | optional | Order or position of the variant in the enum definition. |
| fields | FieldDescriptor | repeated | Set of fields defined by this variant. |