sui namespace.
Methods
getTransactionBlock
Returns transaction details by digest.The digest of the queried transaction
Options for specifying the content to be returned
The transaction response object
multiGetTransactionBlocks
Returns an ordered list of transaction responses. Throws an error if input contains duplicates or exceedsQUERY_MAX_RESULT_LIMIT.
A list of transaction digests
Config options to control which fields to fetch
Array of transaction response objects
getObject
Returns object information for a specified object.The ID of the queried object
Options for specifying the content to be returned
The object information
multiGetObjects
Returns object data for a list of objects.The IDs of the queried objects
Options for specifying the content to be returned
Array of object responses
tryGetPastObject
Returns object information for a specified version. No software-level guarantee that past objects can be retrieved.The ID of the queried object
The version of the queried object
Options for specifying the content to be returned
The past object information
tryMultiGetPastObjects
Returns object information for a list of past objects.A vector of object and versions to be queried
Options for specifying the content to be returned
Array of past object responses
getCheckpoint
Returns a checkpoint by sequence number or digest.Checkpoint identifier (digest or sequence number)
The checkpoint data
getCheckpoints
Returns a paginated list of checkpoints.Optional paging cursor. If provided, query starts from the next item after the cursor
Maximum items returned per page
Query result ordering (false = ascending, oldest first)
Paginated checkpoint results
getEvents
Returns transaction events by transaction digest.The event query criteria
Array of events emitted by the transaction
getTotalTransactionBlocks
Returns the total number of transaction blocks known to the server.Total transaction count
getLatestCheckpointSequenceNumber
Returns the sequence number of the latest checkpoint that has been executed.Latest checkpoint sequence number
getProtocolConfig
Returns the protocol config table for the given version number. If no version is specified, returns the latest protocol config.Optional protocol version specifier
Protocol configuration parameters
getChainIdentifier
Returns the first four bytes of the chain’s genesis checkpoint digest.Chain identifier string
verifyZkLoginSignature
Verifies a zkLogin signature for the given bytes, intent scope, and author.Base64 string of BCS bytes for raw transaction data or personal message
Base64 string of the zkLogin signature to verify
Intent scope: either
TransactionData or PersonalMessageThe author of the signature
Verification result