New answers tagged

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 ...
Alex Bean's user avatar
  • 5,014
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.
AurevoirXavier's user avatar
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-...
Alex Bean's user avatar
  • 5,014
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
Joel Villena's user avatar
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()); }); ...
Alex Bean's user avatar
  • 5,014
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 ...
Shubham Gupta's user avatar
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]...
blairmunroakusa's user avatar
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
Amin Memariani's user avatar
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 ] ...
Shawn Tabrizi's user avatar
  • 15.7k
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 ...
Artur Gontijo's user avatar

Top 50 recent answers are included