Skip to main content
6 votes

fork-off-substrate dying at 37% with rpc max size disconnect

It looks like that fork-off-substrate was not maintained actively. You could try the subalfred. It uses WS/Rust/Async. So, it's really fast. For me, it scrapes 200k pairs in 10 seconds (in localhost). ...
AurevoirXavier's user avatar
  • 10.7k
5 votes

How to map out transaction history between different WebSocket endpoints?

Since this was tagged polkadot-js-api I will give you the JS API perspective on this. The JS API basically only wraps what the Node & runtime exposes. This means - For the Node, all the RPC ...
Jaco's user avatar
  • 5,865
5 votes
Accepted

what's a good value for `--ws-max-connections`?

i learned a lot in the year since asking this question. some of the things i learned were difficult to discover, but the implementation of the various configuration tweaks is easy to accomplish if you ...
grenade's user avatar
  • 486
4 votes

what's a good value for `--ws-max-connections`?

I can't really provide a specific number but we also increased it compared to the default value. There number of ws connections to allow is highly dependent of what request your users are doing, as ...
Crystalin's user avatar
  • 790
3 votes

Intermitent errors with jsonrpsee: WS error: i/o error: Transport endpoint is not connected (os error 107); terminate connection 1056

It depends on your usecase and the load on your RPC node. The default number of connections is 100 but it is configurable via the CLI flag --ws-max-connections. If you reach the maximum number of ...
Niklas Adolfsson's user avatar
2 votes

Opt-out of polkadot.js/api system_health calls for wss rpc

OnFinality plans to discount all system_health RPC calls from paid API plan response counts to zero cost to alleviate this issue for now. This should be in place in the coming weeks.
James Bayly's user avatar
2 votes

How to map out transaction history between different WebSocket endpoints?

I'm not sure what exactly you mean by the point "history of the usage of different WebSockets", but I have a feeling that you are not intending to inspect the packets exchanged via ...
T9b's user avatar
  • 468
2 votes

Connection refused using --unsafe-rpc-external --unsafe-ws-external

Try adding --rpc-cors all. If you are running in --dev mode the default is to allow all origins. If you view the node executable help (i.e. ./target/release/node-template --help) the output includes: -...
Burak's user avatar
  • 903
2 votes

How to establish web socket connection in offchain_worker

Find a relevant package that works in no-std context, for example, embedded-websocket. I managed to establish ws connection to a Substrate chain with the following code: fn offchain_worker(_now: ...
dastansam's user avatar
  • 591
2 votes
Accepted

Difference between HTTP server, RPC server, and WebSockets in the context of Substrate framework?

An RPC is the thing you want to do, e.g. get the chain ID. As you can see this RPC is called chainId in the group eth. You have two ways to connect to the server and do these RPCs. You can convert an ...
Quitting Due To Antisemitism's user avatar
2 votes

Difference between HTTP server, RPC server, and WebSockets in the context of Substrate framework?

The answer i got is - HTTP servers can be employed to expose RESTful APIs for interacting with the blockchain. The RPC server is a built-in component in Substrate, providing methods for external ...
the dev's user avatar
  • 477
1 vote
Accepted

"Cannot convert undefined or null to object" using polkadot.js in substrate tutorials

A common issue that may be causing this is you may have another node running already, perhaps in another terminal window. That another node will have taken the default port assigned to the node, so ...
Ben Greenberg's user avatar
1 vote

Can't Connect to Chain through websocket

What you appear to be doing is running a node locally on your machine and attempting to connect to it. As noted you have not provided any context on which node you are running or any other details. ...
T9b's user avatar
  • 468
1 vote

How to connect to cloud hosted node using WebSocket?

I've managed to fix my issue by setting up a proper certificate instead of using the self signed one. Once that was done, everything worked as expected.
edmassarani's user avatar
1 vote

Dev Substrate Node at Capacity for WS Connections, how to flush?

As @Shawn mentioned you can try --ws-max-out-buffer-capacity=99999 That worked for us Also, I confirmed that the ws connection disconnects at either refresh or if you navigate away from the tab You ...
Sam Elamin's user avatar
  • 1,223

Only top scored, non community-wiki answers of a minimum length are eligible