[package]
name = "substrate-api-client"
version = "1.21.0"
authors = ["Supercomputing Systems AG <info@scs.ch>"]
license = "Apache-2.0"
edition = "2021"
repository = "https://github.com/scs/substrate-api-client"
description = "Json-rpc client with helper functions compatible with any Substrate node"
readme = "../README.md"
keywords = ["json", "rpc", "polkadot", "api", "blockchain"]
categories = ["no-std", "wasm"]
[dependencies]
async-trait = { workspace = true }
codec = { workspace = true }
derive_more = { workspace = true }
frame-metadata = { workspace = true }
futures-util = { workspace = true }
hex = { workspace = true }
log = { workspace = true }
maybe-async = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
url = { workspace = true, optional = true }
jsonrpsee = { workspace = true, optional = true, features = ["async-client", "client-ws-transport-tls", "jsonrpsee-types"] }
tungstenite = { workspace = true, optional = true, features = ["native-tls", "url"] }
sp-core = { workspace = true, features = ["full_crypto", "serde"] }
sp-crypto-hashing = { workspace = true }
sp-inherents = { workspace = true }
sp-runtime = { workspace = true, features = ["serde"] }
sp-runtime-interface = { workspace = true }
sp-storage = { workspace = true, features = ["serde"] }
sp-version = { workspace = true, features = ["serde"] }
frame-support = { workspace = true, optional = true }
ac-compose-macros = { workspace = true }
ac-node-api = { workspace = true }
ac-primitives = { workspace = true }
[dev-dependencies]
ac-node-api = { workspace = true, features = ["mocks"] }
rococo-runtime = { workspace = true }
scale-info = { workspace = true, features = ["derive"] }
test-case = { workspace = true }
[features]
default = ["std", "jsonrpsee-client"]
disable_target_static_assertions = [
"sp-runtime-interface/disable_target_static_assertions",
]
sync-api = ["ac-compose-macros/sync-api", "maybe-async/is_sync"]
jsonrpsee-client = ["std", "dep:jsonrpsee"]
tungstenite-client = ["std", "tungstenite", "sync-api"]
staking-xt = ["std", "ac-primitives/staking-xt"]
contracts-xt = ["std", "ac-primitives/contracts-xt"]
std = [
"codec/std",
"frame-metadata/std",
"hex/std",
"log/std",
"serde/std",
"serde_json/std",
"futures-util/std",
"url",
"sp-core/std",
"sp-runtime/std",
"sp-runtime-interface/std",
"sp-storage/std",
"sp-version/std",
"frame-support",
"ac-compose-macros/std",
"ac-node-api/std",
"ac-primitives/std",
]