Skip to content

Commit

Permalink
Update docs again
Browse files Browse the repository at this point in the history
  • Loading branch information
TarikGul committed Mar 5, 2024
1 parent f5b57e0 commit f01d070
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/types-support/src/metadata/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,26 @@ Clone the [polkadot-sdk](https://github.com/paritytech/polkadot-sdk) repository

`--dev` sets the flag `--tmp` automatically so there is no need for purging the dev db.

To retrieve the metadata -

`curl -H "Content-Type: application/json" -d '{"id":"1", "jsonrpc":"2.0", "method": "state_getMetadata", "params":[]}' http://localhost:9944`

- Add it to the relevant folders e.g. `v14/{kusama, polkadot, substrate}-hex.json`

To retrieve the rpc methods -

`curl -H "Content-Type: application/json" -d '{"id":"1", "jsonrpc":"2.0", "method": "rpc_methods", "params":[]}' http://localhost:9944`

- Add it to the relevant folders e.g. `v14/{kusama, polkadot, substrate}-rpc.ts`

To retrieve the runtime versions -

`curl -H "Content-Type: application/json" -d '{"id":"1", "jsonrpc":"2.0", "method": "state_getRuntimeVersion", "params":[]}' http://localhost:9944`

- Add it to the relevant folders e.g. `v14/{kusama, polkadot, substrate}-ver.ts`

NOTE: This all works for manual updating, but for an easier process run from root for each respective chain: `node ./scripts/metadata-get.mjs`

## extraction (Legacy)

For Substrate & Polkadot (dev chains) -
Expand Down

0 comments on commit f01d070

Please sign in to comment.