diff --git a/doc/src/build/json-rpc.md b/doc/src/build/json-rpc.md index f54ccd7167940..796c9633aeac2 100644 --- a/doc/src/build/json-rpc.md +++ b/doc/src/build/json-rpc.md @@ -40,17 +40,20 @@ export SUI_RPC_HOST=http://127.0.0.1:5001 ## Sui software development kits -You may sign transactions and interact with the Sui network using: +You can sign transactions and interact with the Sui network using any of the following: -* the [Sui Rust SDK](rust-sdk.md), a collection of Rust language JSON-RPC wrapper and crypto utilities. -* the [Sui TypeScript SDK](https://github.com/MystenLabs/sui/tree/main/sdk/typescript) and [reference files](https://www.npmjs.com/package/@mysten/sui.js). +* [Sui Rust SDK](rust-sdk.md), a collection of Rust language JSON-RPC wrapper and crypto utilities. +* [Sui TypeScript SDK](https://github.com/MystenLabs/sui/tree/main/sdk/typescript) and [reference files](https://www.npmjs.com/package/@mysten/sui.js). +* [Sui API Reference](https://docs.sui.io/sui-jsonrpc) for all available methods. ## Sui JSON-RPC API In the following sections we will show how to use Sui's JSON-RPC API with the `curl` command. -## Sui JSON-RPC methods +## Sui JSON-RPC examples + +This section includes example calls to the SUI JSON-RPC interface using `curl`. See the [Sui API Reference](https://docs.sui.io/sui-jsonrpc) for the latest list of all available methods. ### rpc.discover @@ -63,8 +66,6 @@ curl --location --request POST $SUI_RPC_HOST \ --data-raw '{ "jsonrpc":"2.0", "method":"rpc.discover","id":1}' ``` -You can see an example of the discovery service in the [OpenRPC Playground](https://playground.open-rpc.org/?schemaUrl=https://raw.githubusercontent.com/MystenLabs/sui/main/crates/sui-open-rpc/spec/openrpc.json). - ### sui_syncAccountState Synchronize client state with validators with the following command, diff --git a/doc/src/build/move/write-package.md b/doc/src/build/move/write-package.md index fe9bc1b90f215..a841a5117d8b7 100644 --- a/doc/src/build/move/write-package.md +++ b/doc/src/build/move/write-package.md @@ -34,7 +34,7 @@ $ which sui Now proceed to creating a package directory structure in the current directory, parallel to the `sui` repository. It will contain an empty manifest file and an empty module source file following the -[Move code organization](index.md#move-code-organization) +[Move code organization](../move/index.md#move-code-organization) described earlier. So from the same directory containing the `sui` repository create a diff --git a/doc/src/contribute/faq.md b/doc/src/contribute/faq.md index 43ebb78b83605..8524dda73939e 100644 --- a/doc/src/contribute/faq.md +++ b/doc/src/contribute/faq.md @@ -19,7 +19,7 @@ Use these online resources: * Sui Website: [https://sui.io/](https://sui.io/) * Sui Developer Portal: [https://docs.sui.io/](https://docs.sui.io/) * Sui Smart Contract White Paper: [https://sui.io/whitepaper](https://sui.io/whitepaper) -* SDK reference: [Sui JSON-RPC](https://playground.open-rpc.org/?uiSchema%5BappBar%5D%5Bui:splitView%5D=false&schemaUrl=https://raw.githubusercontent.com/MystenLabs/sui/main/crates/sui-open-rpc/spec/openrpc.json&uiSchema%5BappBar%5D%5Bui:input%5D=false) +* Sui API Reference: [Sui JSON-RPC](https://docs.sui.io/sui-jsonrpc) ### What does Sui offer over other blockchains? diff --git a/doc/src/explore/devnet.md b/doc/src/explore/devnet.md index e1a3f4d11140e..2b666247cd863 100644 --- a/doc/src/explore/devnet.md +++ b/doc/src/explore/devnet.md @@ -4,7 +4,7 @@ title: Experiment with Sui Devnet Welcome to the beginnings of the Sui Devnet. It exists now to gain operational experience with the Sui software in a public setting. The Sui Devnet currently consists of: -* A four-validator network with all nodes operated by Mysten Labs. Clients send transactions and read requests via this endpoint: https://gateway.devnet.sui.io:443/ using [JSON-RPC](../build/json-rpc.md) +* A four-validator network with all nodes operated by Mysten Labs. Clients send transactions and read requests via this endpoint: gateway.devnet.sui.io:443 using [JSON-RPC](../build/json-rpc.md) * A public network [Sui Explorer](https://github.com/MystenLabs/sui/tree/main/explorer/client#readme) for browsing transaction history: https://explorer.devnet.sui.io * A [Discord channel](https://discordapp.com/channels/916379725201563759/971488439931392130) for requesting test coins that can be used to pay for gas on the test network. These coins have no financial value and will disappear each time we reset the network. diff --git a/doc/src/explore/prototypes.md b/doc/src/explore/prototypes.md index 05131abee26d5..5a9d5c3ad9120 100644 --- a/doc/src/explore/prototypes.md +++ b/doc/src/explore/prototypes.md @@ -23,7 +23,7 @@ With Sui, we believe game developers should not be limited by the platform perfo ## How we did it -Created by game development studio GenITeam, these prototypes use both the Unity SDK and Sui [APIs](https://playground.open-rpc.org/?uiSchema%5BappBar%5D%5Bui:splitView%5D=false&schemaUrl=https://raw.githubusercontent.com/MystenLabs/sui/main/crates/sui-open-rpc/spec/openrpc.json&uiSchema%5BappBar%5D%5Bui:input%5D=false). +Created by game development studio GenITeam, these prototypes use both the Unity SDK and Sui [APIs](https://docs.sui.io/sui-jsonrpc). GenITeam’s developers who worked on this collaboration are neither smart contract nor Move developers. Based on their input, we created a data model and shared simple APIs. With these APIs, geniteam was able to mint fully on-chain NFTs that are mutable, own other on-chain assets, and freely transfer to other applications. @@ -234,5 +234,5 @@ Gameplay: ## Further reading -* Check out Sui [APIs](https://playground.open-rpc.org/?uiSchema%5BappBar%5D%5Bui:splitView%5D=false&schemaUrl=https://raw.githubusercontent.com/MystenLabs/sui/main/crates/sui-open-rpc/spec/openrpc.json&uiSchema%5BappBar%5D%5Bui:input%5D=false). +* Check out Sui [APIs](https://docs.sui.io/sui-jsonrpc). * Learn about Sui [objects](../build/objects.md). diff --git a/doc/src/learn/why-move.md b/doc/src/learn/why-move.md index 9c3bcad4aa632..fbd437e2e74ae 100644 --- a/doc/src/learn/why-move.md +++ b/doc/src/learn/why-move.md @@ -2,7 +2,7 @@ title: Why Move? --- -In Sui, you write [Smart Contracts](../build/move.md) with the Move Programming language. This page links to key [Move](https://golden.com/wiki/Move_(programming_language)-MNA4DZ6) resources and compares the [Move](https://github.com/move-language/move/tree/main/language/documentation) and Solidity programming languages. For a full description of the issues with traditional smart contract languages, see the [Move Problem Statement](https://github.com/MystenLabs/awesome-move/blob/main/docs/problem_statement.md). +In Sui, you write [Smart Contracts](../build/move/index.md) with the Move Programming language. This page links to key [Move](https://golden.com/wiki/Move_(programming_language)-MNA4DZ6) resources and compares the [Move](https://github.com/move-language/move/tree/main/language/documentation) and Solidity programming languages. For a full description of the issues with traditional smart contract languages, see the [Move Problem Statement](https://github.com/MystenLabs/awesome-move/blob/main/docs/problem_statement.md). ## Sui Move diff --git a/doc/src/siteconfig.json b/doc/src/siteconfig.json index 9f4b6301e946d..f02718ca5f2c7 100644 --- a/doc/src/siteconfig.json +++ b/doc/src/siteconfig.json @@ -25,8 +25,8 @@ "link": "/build/move" }, { - "title": "SDK Reference", - "link": "https://playground.open-rpc.org/?uiSchema%5BappBar%5D%5Bui:splitView%5D=false&schemaUrl=https://raw.githubusercontent.com/MystenLabs/sui/main/crates/sui-open-rpc/spec/openrpc.json&uiSchema%5BappBar%5D%5Bui:input%5D=false", + "title": "API Reference", + "link": "https://docs.sui.io/sui-jsonrpc", "external": true }, {