Sui Network and Client Compatibility
Learn about what versions Shinami supports
Shinami's Sui API strives to be compatible with all Sui clients that consume the Sui JSON-RPC. This page lists all Sui networks currently supported on Shinami, and their compatible client versions.
Sui Network Info
Devnet | Testnet | Mainnet | |
---|---|---|---|
Current node version | devnet-v1.8.0 | testnet-v1.8.0 | mainnet-v1.7.1 |
Last genesis date | 08/21/2023 | 05/11/2023 | 05/02/2013 |
Compatibility Matrix
SDK / Client | Devnet | Testnet | Mainnet |
---|---|---|---|
Sui CLI | devnet-v1.8.0 | testnet-v1.8.0 | mainnet-v1.7.1 |
TypeScript SDK | latest | latest | latest |
Rust SDK | devnet-v1.8.0 | testnet-v1.8.0 | mainnet-v1.7.1 |
Sui Explorer | latest | latest | latest |
Sample Snippets
Sui CLI
You can use the new-env
and switch
commands to change RPC server URL to Shinami:
# Create a new env connecting to Shinami node service
sui client new-env \
--alias shinami \
--rpc https://api.shinami.com:443/node/v1/<<apiKey>> \
--ws wss://api.shinami.com:443/node/v1/<<apiKey>>
# Activate the Shinami env
sui client switch --env shinami
TypeScript SDK
You can use the JsonRpcProvider
class to set RPC server URL to Shinami:
import {JsonRpcProvider} from "@mysten/sui.js";
const connection = new Connection({
fullnode: 'https://api.shinami.com/node/v1/<<apiKey>>'
});
const suiProvider = new JsonRpcProvider(connection);
Rust SDK
You can use SuiClientBuilder
to create an HTTP or a WebSocket client using Shinami:
use sui_sdk::SuiClientBuilder;
let sui = SuiClientBuilder::default()
.ws_url("wss://api.shinami.com:443/node/v1/<<apiKey>>")
.build("https://api.shinami.com:443/node/v1/<<apiKey>>")
.await?;
Updated 3 months ago