Skip to content

JSON-RPC Methods ​

Every Sui JSON-RPC method that Inodra serves on mainnet and testnet. Send requests to https://mainnet-api.inodra.com/v1/jsonrpc or https://testnet-api.inodra.com/v1/jsonrpc with your API key in the x-api-key header. Setup and batches: JSON-RPC Gateway.

Subscriptions (suix_subscribeEvent, suix_subscribeTransaction) are not served. Use Warp streams for real-time data. The full OpenRPC document is available for code generation. On testnet, transaction and event search covers about the last 80 days (details).

Read API ​

MethodDescription
sui_getChainIdentifierReturn the first four bytes of the chain's genesis checkpoint digest.
sui_getCheckpointReturn a checkpoint
sui_getCheckpointsReturn paginated list of checkpoints
sui_getEventsReturn transaction events.
sui_getLatestCheckpointSequenceNumberReturn the sequence number of the latest checkpoint that has been executed
sui_getObjectReturn the object information for a specified object
sui_getProtocolConfigReturn the protocol config table for the given version number.
sui_getTotalTransactionBlocksReturn the total number of transaction blocks known to the server.
sui_getTransactionBlockReturn the transaction response object.
sui_multiGetObjectsReturn the object data for a list of objects
sui_multiGetTransactionBlocksReturns an ordered list of transaction responses The method will throw an error if the input contains any duplicate or the input size exceeds QUERY_MAX_RESULT_LIMIT
sui_tryGetPastObjectNote there is no software-level guarantee/SLA that objects with past versions can be retrieved by this API, even if the object and version exists/existed.
sui_tryMultiGetPastObjectsNote there is no software-level guarantee/SLA that objects with past versions can be retrieved by this API, even if the object and version exists/existed.
sui_verifyZkLoginSignatureVerify a zklogin signature for the given bytes, intent scope and author.

Extended API ​

MethodDescription
suix_getCurrentEpochReturn current epoch info
suix_getDynamicFieldObjectReturn the dynamic field object information for a specified object
suix_getDynamicFieldsReturn the list of dynamic field objects owned by an object.
suix_getEpochsReturn a list of epoch info
suix_getOwnedObjectsReturn the list of objects owned by an address.
suix_getTotalTransactions
suix_queryEventsReturn list of events for a specified query criteria.
suix_queryObjectsReturn the list of queried objects.
suix_queryTransactionBlocksReturn list of transactions for a specified query criteria.
suix_resolveNameServiceAddressReturn the resolved address given resolver and name
suix_resolveNameServiceNamesReturn the resolved names given address, if multiple names are resolved, the first one is the primary name.

Coin Query API ​

MethodDescription
suix_getAllBalancesReturn the total coin balance for all coin type, owned by the address owner.
suix_getAllCoinsReturn all Coin objects owned by an address.
suix_getBalanceReturn the total coin balance for one coin type, owned by the address owner.
suix_getCoinMetadataReturn metadata (e.g., symbol, decimals) for a coin.
suix_getCoinsReturn all Coin<coin_type> objects owned by an address.
suix_getTotalSupplyReturn total supply for a coin

Governance Read API ​

MethodDescription
suix_getCommitteeInfoReturn the committee information for the asked epoch.
suix_getLatestSuiSystemStateReturn the latest SUI system state object on-chain.
suix_getReferenceGasPriceReturn the reference gas price for the network
suix_getStakesReturn all [DelegatedStake].
suix_getStakesByIdsReturn one or more [DelegatedStake].
suix_getValidatorsApyReturn the validator APY

Move Utils ​

MethodDescription
sui_getMoveFunctionArgTypesReturn the argument types of a Move function, based on normalized Type.
sui_getNormalizedMoveFunctionReturn a structured representation of Move function
sui_getNormalizedMoveModuleReturn a structured representation of Move module
sui_getNormalizedMoveModulesByPackageReturn structured representations of all modules in the given package
sui_getNormalizedMoveStructReturn a structured representation of Move struct

Transaction Builder API ​

MethodDescription
unsafe_batchTransactionCreate an unsigned batched transaction.
unsafe_mergeCoinsCreate an unsigned transaction to merge multiple coins into one coin.
unsafe_moveCallCreate an unsigned transaction to execute a Move call on the network, by calling the specified function in the module of a given package.
unsafe_paySend Coin<T> to a list of addresses, where T can be any coin type, following a list of amounts, The object specified in the gas field will be used to pay the gas fee for the transaction.
unsafe_payAllSuiSend all SUI coins to one recipient.
unsafe_paySuiSend SUI coins to a list of addresses, following a list of amounts.
unsafe_publishCreate an unsigned transaction to publish a Move package.
unsafe_requestAddStakeAdd stake to a validator's staking pool using multiple coins and amount.
unsafe_requestWithdrawStakeWithdraw stake from a validator's staking pool.
unsafe_splitCoinCreate an unsigned transaction to split a coin object into multiple coins.
unsafe_splitCoinEqualCreate an unsigned transaction to split a coin object into multiple equal-size coins.
unsafe_transferObjectCreate an unsigned transaction to transfer an object from one address to another.
unsafe_transferSuiCreate an unsigned transaction to send SUI coin object to a Sui address.

Write API ​

MethodDescription
sui_devInspectTransactionBlockRuns the transaction in dev-inspect mode.
sui_dryRunTransactionBlockReturn transaction execution effects including the gas cost summary, while the effects are not committed to the chain.
sui_executeTransactionBlockExecute the transaction and wait for results if desired.

Bridge Read API ​

MethodDescription
suix_getBridgeObjectInitialSharedVersionReturns the initial shared version of the bridge object, usually for the purpose of constructing an ObjectArg in a transaction.
suix_getLatestBridgeReturns the latest BridgeSummary

Method descriptions and examples come from the Sui OpenRPC specification (Apache-2.0).

The full-stack Sui data layer.