Add archive RPCs to subxt-rpcs (#1940)

* Add archive RPCs to subxt-rpcs

* Add tests for archive RPCs

* ".unwrap_*" to ".as_*"

* clippy

* Add proper unsub method for archive_unstable_storage
This commit is contained in:
James Wilson
2025-03-05 15:23:50 +00:00
committed by GitHub
parent e59eef21b4
commit 23c0651c57
5 changed files with 511 additions and 11 deletions
+4 -1
View File
@@ -130,7 +130,10 @@ impl SubstrateNodeBuilder {
.stdout(process::Stdio::piped())
.stderr(process::Stdio::piped())
.arg("--dev")
.arg("--port=0");
.arg("--port=0")
// To test archive_* RPC-v2 methods we need the node in archive mode:
.arg("--blocks-pruning=archive-canonical")
.arg("--state-pruning=archive-canonical");
for (key, val) in custom_flags {
let arg = match val {