Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADD-RPC] Add Crab RPC endpoint rpc.yalpha.io #10

Open
hackfisher opened this issue Jun 26, 2023 · 2 comments
Open

[ADD-RPC] Add Crab RPC endpoint rpc.yalpha.io #10

hackfisher opened this issue Jun 26, 2023 · 2 comments

Comments

@hackfisher
Copy link
Contributor

Chain

Crab

Http Endpoint

http://rpc.yalpha.io:9955

Websocket Endpoint

ws://rpc.yalpha.io:9966

Address

0x7C9B3D4cfc78c681B7460acdE2801452aEF073A9

@fewensa
Copy link
Collaborator

fewensa commented Jun 26, 2023

It's looks like your node is not an archive node, please follow our documents use snapshots and add --pruning=archive to your boot command. new version substrate you should change to --state-pruning=archive

Suggest you add --ws-max-connections=1000 to your boot command.

Related: https://docs.darwinia.network/how-to-become-a-collator-af6bce360d5b49ddacc56e4587510210#3a572fe8ac9342f987c9c59831a4d717

$ curl -X POST -H 'Content-Type: application/json' http://rpc.yalpha.io:9955 -d '{"id":26,"jsonrpc":"2.0","method":"state_getRuntimeVersion","params":["0x3132433dfe794cdd5ca8955a5eda920925089a0398578b5718010e936522f857"]}'
{"jsonrpc":"2.0","error":{"code":-32000,"message":"Client error: Api called for an unknown Block: State already discarded for 0x3132433dfe794cdd5ca8955a5eda920925089a0398578b5718010e936522f857"},"id":26}

@wuminzhe
Copy link

old:

--pruning=archive

new:

--state-pruning=archive \
--blocks-pruning=archive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants