Questions tagged [polkadot]

Use this tag for questions about the Polkadot blockchain network platform. General questions about Polkadot should be asked at https://substrate.stackexchange.com

203 questions
1
vote
0 answers

Not able to deploy contract on a local Substrate node

enter code hereI am referring following URL related to Substrate Developer Hub https://substrate.dev/substrate-contracts-workshop/#/0/introduction I have made up to following steps: Setup Creating an ink! Project Building Your Contract Running a…
Gopinathan K M
  • 335
  • 2
  • 6
  • 15
1
vote
1 answer

How to query for Polkadot transaction info using only txHash?

I cannot find any description on how to get the transaction info using just the txHash returned by signAndSend() in the API documentation. I think it's a basic function which is really weird that it's not there. As I can see the only way to track…
1
vote
2 answers

Adding additional data fields to account information in Substrate

Very new to Substrate and Rust. My understanding of the ChainState is that it acts sort of like a database which holds account numbers (in this case public keys) and their associated balances. When making a transaction, Substrate basically checks to…
1
vote
1 answer

What does Something get(fn something): Option; mean in Rust?

I cloned this template. There is a code like this: decl_storage! { trait Store for Module as TemplateModule { Something get(fn something): Option; } } What does Something get(fn something): Option;…
1
vote
1 answer

Can't deploy contract (Substrate) system.ExtrinsicFailed Other

I downloaded the smart contract from the Ink repository (erc20) build it, and build metadata. After which I downloaded it, and when I try to deploy, I get such an error: Logs from the browser console sendExtrinsic:: {"args":["10.000M…
STALER
  • 186
  • 2
  • 14
1
vote
1 answer

How to decode and match a call when passed as a parameter in Substrate

I have a method that accepts a call (similar to the sudo or recovery pallets) and i want to run some validation on the call before i dispatch it. The validation is mainly around restricting which methods we can call via this method. Here is an…
Nahu
  • 143
  • 10
1
vote
1 answer

How to write in the storage of Substrate using Substrate API Client?

My goal is to write a value in the storage map of Substrate using substrate-api-client. My storage map, defined in the Substrate chain, looks like this: use frame_support::{decl_module, decl_storage, dispatch::result::Result, ensure,…
Aviral Srivastava
  • 4,058
  • 8
  • 29
  • 81
1
vote
1 answer

Polkadot: how to sign Extrinsics in python?

Thanks to py-substrate-interface I can create extrinsics with something like: payload = substrate.compose_call( call_module='Balances', call_function='transfer', call_params={ 'dest':…
FaustoW
  • 632
  • 7
  • 15
1
vote
2 answers

How do I generate a burn address for Substrate chains like Polkadot or Kusama?

I want to generate an address without a key so that it can serve as a burn address - an address to which tokens can be sent and never retrieved from. How do I generate one?
Swader
  • 11,387
  • 14
  • 50
  • 84
0
votes
0 answers

Way to cancel a signature request in Polkadot Extension

I hava an app that uses the polkadot extension to let the user sign requests. I am using the signAndSend method with the signer from the browser extension. Is there a way to cancel a pending signature request programatically? I.e. the signature…
niklas
  • 2,887
  • 3
  • 38
  • 70
0
votes
1 answer

"cargo check -p node-template-runtime --release" error: failed to select a version for `signature`

I'm working through how to authorize specific nodes with substrate but I get this error that I can't seem to fix so now I'm stuck. Had no problems building substrate-node-template but could there be an issue with my build? Running on WSL2…
0
votes
0 answers

How to get Polkadot address from private key?

I'm looking for a nodejs code to get the Polkadot address from their private key. If is possible for chains polkadot and kusama. I don't found any example searching o google and also on github. Someone can help me? Thanks!
Eosio
  • 39
  • 3
0
votes
0 answers

rococo parachain stop generate blocks

I have encountered a problem. I recently tried to upgrade the rococo parachain. After calling the enactAuthorizedUpgrade method, it stopped generating blocks and restarting the node did not work. This is the parachain log. Can anyone help me to find…
0
votes
0 answers

Substrate Error: Protoc can't be accessed when running cargo build --release and --locked and is necesaary to compile node completely

I'm having this Error Failed to invoke Protoc when I try to run the build command for the substrate node. Error message on console I have installed protoc from the official github repository and have added it to my system variables path. System…
0
votes
0 answers

Collators running in k8s keep restarting

We have 2 collators running in GKE and they keep restarting every few hours the logs don't show any error before they are killed, does any one know what might be causing this? We have also have validators running the same runtime for a solo chain…