New answers tagged polkadot-js
0
votes
Polkadot.js wallet dosen't show methot section(transaction details) when making a transaction
I don't think the polkadot extension has this feature, you can open an Issue in the repository to decode the method and display the information in a more user friendly way.
In the meantime you can ...
1
vote
Accepted
Substrate Node Error: Denied request: HTTP header: host value verification failed
I think this is cause by the rpc-cors rule.
Try --rpc-cors all.
1
vote
Accepted
Polkadot JS query response types are missing
What you are missing is to apply augmentation, for that you have to import '@polkadot/api-augment' into your codebase entry point before any imports from the API itself:
import "@polkadot/api-...
0
votes
Creating SignerPayload for PolkadotJS Extenstion: Unsupported extrinsic payload version 0
You can refer here: Polkadot transfer transaction build and sign
https://gist.github.com/islishude/24c2ea503050bd3b0d17d68676ea297c
1
vote
Accepted
how many ways are there to get all items stored in custom pallet
In your case with PolkadotJS it will look like this:
const consents = await api.query.yourpallet.userConsent.entries();
consents.forEach(([key, consent]) => {
console.log(consent.toHuman());
});
...
0
votes
how many ways are there to get all items stored in custom pallet
You can refer to https://polkadot.js.org/docs/substrate/storage on how to access storage from any pallet either it is custom or existing. Substrate already provides APIs for the same and can be ...
1
vote
How to get event args values from contracts::contractemitted data?
I use this:
if (result.status.isInBlock) {
result.events.forEach(({event, phase, topics}) => {
if (api.events.contracts.ContractEmitted.is(event)) {
const [account_id, contract_event]...
0
votes
system.ExtrinsicFailed Token.NotExpendable
It happened to me when I wanted to hold only 1DOT in my wallet and delegate the rest. I changed to 5DOT and the error was gone
1
vote
Accepted
How to properly decode a SCALE-encoded string using polkadot-js?
You want to follow the same steps you took to generate the hex to get back.
In your example generating the hex you do:
String: "aabbcc"
toU8a: Uint8Array(7) [ 24, 97, 97, 98, 98, 99, 99 ]
...
3
votes
Transaction pool management
You can set --pool-kbytes and --pool-limit in your node, to allow it to not drop some extrinsics.
But better than that I'd recommend you to keep track of the txpool size by calling the RPC method ...
Top 50 recent answers are included
Related Tags
polkadot-js × 519polkadot × 57
substrate-node-template × 44
ink × 37
api × 37
extrinsic × 31
smart-contract × 27
rpc × 25
typescript × 23
kusama × 20
polkadot-js-extension × 20
transactions × 19
substrate-front-end × 18
parachain × 17
javascript × 17
substrate-parachain-template × 12
staking × 11
custom-types × 11
custom-rpc × 11
balances × 10
substrate-contracts-node × 10
error × 9
storage × 8
rust × 8
json-rpc × 8