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
0 answers
35 views

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 ...
X6Entrepreneur's user avatar
1 vote
1 answer
74 views

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": "...
johnhckuo's user avatar
  • 123
1 vote
1 answer
99 views

jsonrpc method `payment_queryInfo` is being deprecated

I saw this polkadot API document: https://polkadot.js.org/docs/substrate/rpc/#payment and it mentioned that the payment_queryInfo is deprecated and should use api.call.transactionPaymentApi.queryInfo ...
johnhckuo's user avatar
  • 123
0 votes
1 answer
75 views

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 ...
Stanly Wilson's user avatar
1 vote
1 answer
162 views

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 ...
pravin k's user avatar
  • 111
3 votes
1 answer
88 views

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< ...
Robin Yang's user avatar
3 votes
2 answers
183 views

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'...
Purple_Turtle's user avatar
4 votes
1 answer
141 views

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....
Rtsne42's user avatar
  • 379
1 vote
1 answer
68 views

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 `...
Tejas's user avatar
  • 11