Add legacy RPC usage example (#1279)

* Add example using legacy rpc

* Illustrate how account_nonce and system_acc_next eventaully cathces up

* Adapt and add rpc_legacy example to book. Add missing light_client example too

* cargo fmt

---------

Co-authored-by: Fredrik Simonsson <fredrik@nodle.com>
This commit is contained in:
James Wilson
2023-11-23 17:14:17 +00:00
committed by GitHub
parent 2fe7b5c14c
commit 5764c8e68e
8 changed files with 100 additions and 7 deletions
+4 -4
View File
@@ -111,11 +111,11 @@ subxt-signer = { path = "../signer" }
tracing-subscriber = { workspace = true }
[[example]]
name = "unstable_light_client_tx_basic"
path = "examples/unstable_light_client_tx_basic.rs"
name = "light_client_tx_basic"
path = "examples/light_client_tx_basic.rs"
required-features = ["unstable-light-client", "jsonrpsee"]
[[example]]
name = "unstable_light_client_parachains"
path = "examples/unstable_light_client_parachains.rs"
name = "light_client_parachains"
path = "examples/light_client_parachains.rs"
required-features = ["unstable-light-client", "jsonrpsee", "native"]