Skip to main content

Questions tagged [substrate-api-client]

Questions relating to the Rust library for connecting to Substrate APIs over WebSockets, developed by Supercomputing Systems AG.

Filter by
Sorted by
Tagged with
1 vote
1 answer

payment_queryInfo returning Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed

I was trying to query payment_queryInfo on current Westend testnet, and the following payload used to works at spec 9430. { "jsonrpc": "2.0", "method": "...
1 vote
0 answers

Template Module Pallet call

I'm trying to call the do_something function in template_pallet runtime. I'm running locally the node substrate version : 4.0.0-dev-2ad9b78c7b5 I'm trying to send an extrinsics from Rust code using ...
1 vote
1 answer

jsonrpc method `payment_queryInfo` is being deprecated

I saw this polkadot API document: and it mentioned that the payment_queryInfo is deprecated and should use ...
0 votes
1 answer

while running the smart contract uisng polkadot api i get the following error

while running the smart contract uisng polkadot api i get the following error file:///Users/.../Documents/Study%20related/Learning-JS/ipfs_ink/node_modules/@polkadot/api-contract/base/Contract.js:81 ...
1 vote
1 answer

Error with substrate-api-client on local node

I am trying to run the substrate-api-client as a dependency for making RPC calls to the local substrate node. But i am getting this error: thread 'main' panicked at 'called `Result::unwrap()` on an `...
1 vote
1 answer

how to confirm payment from specific address?

I am adding substrate based payment mechanism to my web app. App would provide substrate address to end user, where he/she will send required funds by some external means. Now I want my app to find ...
4 votes
1 answer

How do `subxt` and `substrate-api-client` libraries differ?

I understand that there are two main Rust client libraries for Substrate: subxt substrate-api-client I've checked out the examples for both libraries and it seems to me that they are mostly the same....
3 votes
2 answers

What are the set cli commands to stake on a validator node?

In this video Joe Petrowski demonstrates a command which allows us to set a stake and also choose a reward destination. But unfortunately some of the command gets obscured by their video picture. As I'...
3 votes
1 answer

Get all runtime storage `Orders` values from the client

1 the runtime storage order type as follow: // Order storage #[pallet::storage] #[pallet::getter(fn order)] pub type Orders<T: Config<I>, I: 'static = ()> = StorageMap< ...