Skip to main content

Unanswered Questions

59 questions with no upvoted or accepted answers
8 votes
1 answer
126 views

Pallet session: What is the purpose of the `proof` argument on the `set_keys` extrinsic?

The set_keys extrinsic in pallet_session has a second argument proof, which seems to be intended as an ownership proof of the keys. Looking at the body, there is a call to ownership_proof_is_valid. ...
6 votes
0 answers
77 views

Decompose complex types in JS

My overall goal is to build a generic extrinsic builder, just like the extrinsic tab from polkadot-js/apps. This code is very old and very hard to decipher unfortunately and I couldn't find any doc ...
6 votes
0 answers
215 views

Subxt call to custom pallet method returning `wasm 'unreachable'` - (`TaggedTransactionQueue_validate_transaction`)

So I am trying to submit extrinsics to a running parachain node using subxt, but encounter a Codec error. The parachain is based on the substrate-parachain-template, the relay chain is compiled ...
6 votes
0 answers
234 views

How to use the default Substrate CLI rpc-cors values without using rpc-cors=all for a Collator node and connect from Polkadot.js Apps

I want to be able to connect a collator node using https://polkadot.js.org/apps that is based on the substrate-parachain-template using branch 'polkadot-v0.9.18' and is being run as a parachain in ...
5 votes
0 answers
62 views

Is there any good way to keep an intermediate state for an operation between several transactions/blocks in a BABE/GRANDPA-based chain?

I know that the best practices suggest designing transactions (pallet calls) in a way that executes the operation atomically and doesn't keep any intermediate states. This guarantees, that in case a ...
4 votes
1 answer
146 views

Parathread not producing block on Rococo registered using CoreTime

I am trying to list a parathread on Rococo using core time. I have followed all instructions mentioned here. I followed below steps: I registered a ParaId and onboarded Parathread as usual but didn't ...
4 votes
0 answers
30 views

extrinsics from same account result in underutilized blockspace

I'm sending multiple extrinsics from the same account. The nonce is increased before a new extrinsic is sent, and all extrinsics are sent as immortal. My goal is to fill the blocks as much as possible,...
4 votes
1 answer
49 views

Why doesn't getMetadata show my callable methods as extrinsics in Substrate-node-template

When running Substrate-node-template - basically the Kitties - and with a callable eg create_kitty() as a dispatchableResult in the call pallet, what I assume to be an extrinsic in the metadata, this ...
3 votes
0 answers
37 views

the function or associated item `offchain_worker` exists for struct

i wanna add a new pallet in substrate runtime.rs this is the contract of the file : #![cfg_attr(not(feature = "std"), no_std)] /// Edit this file to define custom logic or remove it if it ...
3 votes
0 answers
44 views

How to execute/apply extra logic when xcm call delivered and deposit is succeed? or register callback?

I want to execute extra logic when xcm call deliver and deposit succeed. I can pass extra parameters in beneficiary MultiLocation with a description what todo next. I have a MultiLocation ...
2 votes
0 answers
50 views

Parachain doesn't produce blocks(collation wasn't advertised to any validator)

I'm currently engaged with the Polkadot relay chain version 1.1.0, and I've encountered an issue in the parachain where block production is not occurring. My configuration involves two validators in ...
2 votes
0 answers
86 views

Fuzzing Polkadot produces Invalid Signature after chaos is injected

I'm using Polkadot version 0.9.37-08b1c09ca46, across 4 Nodes - Alice, Bob, Charlie, Dave, in a local testnet environment. I have a period of network chaos applied, and then moments of stabilized '...
2 votes
0 answers
48 views

fill assetId in local substrate into dex pallet

I'm trying to create a decentralized exchange (dEX) in Substrate and I have a function called create_exchange that has two parameters: asset_id and liquidity_token_id. I'm having trouble filling the ...
2 votes
1 answer
62 views

Unable to open messaging channel in Substrate Tutorial

chain-spec.rs In Open Message Passing Channels guide, use the parachain-template.js parachain_id of 1000, 1001 respectively. Add sudo pallet to runtime/lib.js. impl pallet_sudo::Config for Runtime { ...
2 votes
1 answer
74 views

How to write a dispatch function which can only access from offchain worker with signed extrinsic/transaction?

I want to modify some on-chain storage from offchain worker by sending a signed transaction, so I write a dispatch function which handles the transaction. But the dispatch function also can be ...

15 30 50 per page