docs
docs copied to clipboard
This is the documentation portal for all Polkadot and Substrate related tools and libraries in the polkadot-js family of repos.
updated link to the incrementer example
I would like to update this page because it is no longer functional in the new version 10.+ According to this [issue](https://github.com/polkadot-js/api/issues/5540), this is the only correct way to generate...
instantiate is linked to a wrong page link `http://localhost:8080/substrate/rpc#instantiaterequest-instantiaterequest-at-blockhash-contractinstantiateresult` it should be replaced by `https://polkadot.js.org/docs/substrate/rpc/#instantiaterequest-instantiaterequest-at-blockhash-contractinstantiateresult`
### Problem If you are following the docs, you encounter the [const section](https://polkadot.js.org/docs/api/start/api.consts) . You are typing happily the examples in your editor. You assume you get something but you...
TypeError: Cannot read property 'keys' of undefined when calling api.query.authorityDiscovery.keys()
If you follow the API docs here https://polkadot.js.org/docs/substrate/storage#authoritydiscovery and call `api.query.authorityDiscovery.keys()` after connecting to WS provider wss://rpc.polkadot.io, it returns `TypeError: Cannot read property 'keys' of undefined`. This was reported here...
Lots of comments here - https://github.com/polkadot-js/api/issues/5540 There are basically 3 options - 1. `node --loader ts-node/esm node_modules/.bin/polkadot-types-from-defs --package ...` 2. `ts-node --esm --skip-project node_modules/.bin/polkadot-types-from-defs --package ...` (Some caveats with [resolutions](https://github.com/polkadot-js/api/issues/5540#issuecomment-1472309950))...
Hi, I was trying to calculate fee estimation for a contract call, but [the instructions](https://polkadot.js.org/docs/api-contract/start/contract.tx/#cost-estimation) from the documentation might not work. They suggest using `-1` as the gas limit, but...
Currently api.derive is not being documented, making it difficult to work with. i.e: api.derive.staking.electedInfo exists, provide useful information but is not found in the existing docs
When I, as a chrome plug-in wallet developer, reference @polkadot/api, I will get this error after starting the project. 
My Dapp node url is currently localhost:9911 hardcoded. How can my Dapp get that URL from Polkadotjs ?