Skip to main content

Questions tagged [extrinsic]

Questions about runtime calls that can be submitted to the blockchain. a.k.a. Transaction, Dispatchable

Filter by
Sorted by
Tagged with
1 vote
1 answer
53 views

OnDemandAssignmentProvider/OnDemandOrderPlaced event was removed [closed]

I am the developer of subscan. When dealing with coretime related functions, it was found that this event has been removed in the new version (the event also exists in the document https://github.com/...
Lark's user avatar
  • 11
0 votes
0 answers
14 views

Polkadot.js never connects to local instance of Chopsticks

I'm trying to test extrinsics on HydraDX chain. Chopsticks UI never returns for the types of errors I'm running into, so I'm trying to use command line. You can run a local fork with Chopsticks and ...
spazcoin's user avatar
0 votes
0 answers
13 views

Dry-running extrinsic using Chopsticks on command line "length less than remainder, expected at least 133, found 91"

I'm trying to test XCM governance proposals using Chopsticks but running into issues. I've cloned and compiled Chopsticks within GitBash on Windows. However, when I try to dry run it with an extrinsic ...
spazcoin's user avatar
2 votes
1 answer
57 views

pending extrinsics jammed. How to ensure re-broadcast?

We observe a strange phenomenon: We send many lightweight extrinsics (~2 per block) signed by the same account to one full node (node1) which is peered up with two authority collators (auth1 and auth2)...
brenzi's user avatar
  • 563
0 votes
1 answer
43 views

execute_block, initialize_block, apply_extrinsic, finalize_block, offchain_worker exists for struct `Executive` but its trait bound were not satisfied

I developed substrate parachain with custom pallets. Actually I wanna add OCW functionality to one of my pallets. After I updated runtime code and added CreateSignedTransaction implementation I tried ...
Artem Levchuk's user avatar
1 vote
0 answers
36 views

Template Module Pallet call

I'm trying to call the do_something function in template_pallet runtime. I'm running locally the node substrate version : 4.0.0-dev-2ad9b78c7b5 I'm trying to send an extrinsics from Rust code using ...
X6Entrepreneur's user avatar
0 votes
2 answers
59 views

Is there a way to replace or cancel an extrinsic from the mempool?

Just like cancelling and speed up transactions on Ethereum context, is there a mechanism to replace or manipulate extrinsics from the mempool? thanks!
metricaez's user avatar
1 vote
0 answers
28 views

TXs in pendingExtrinsics() not always being picked up and then added in the block

When adding many batchAll TXs containing mint() and freeze() assets to AssetHub Rococo chain, there are times when TXs in rpc -> author -> pendingExtrinsics() just sit there and don't get ...
Ramsey - Decentration's user avatar
2 votes
1 answer
41 views

Rate-limiting to prevent extrinsic spamming

Is there any rate-limiting defense system in Substrate, that would prevent an attacker with sufficient funds to spam extrinsics on a given parachain ? Is there any maximum amount of extrinsics per ...
clst's user avatar
  • 31
0 votes
0 answers
22 views

Uncaught runtime errors: [u8;16]:: Expected input with 16 bytes (128 bits), found 21 bytes

I created a value id by this: let encoded_payload = (owner.clone(), task_description.clone()).encode(); let id = frame_support::Hashable::blake2_128(&encoded_payload);// hashvalue of combined ...
MinhK's user avatar
  • 125
0 votes
0 answers
50 views

WS transport error: i/o error: Broken pipe (os error 32); terminate connection

I am submitting an unsigned extrinsic using subxt crate in rust. I have a simple u64 number inside StorageValue called Nonce which keeps track of number of transactions submitted (needed for ...
akhil nichenametla's user avatar
1 vote
1 answer
95 views

What are the risks of panicking inside an extrinsic call?

Let's imagine the following extrinsic. #[pallet::call_index(1)] #[pallet::weight(T::WeightInfo::might_panic_extrinsic())] pub fn might_panic_extrinsic(origin: OriginFor<T>) -> DispatchResult {...
clst's user avatar
  • 31
3 votes
2 answers
32 views

Is there any way to extract "method" and "params" of unchecked extrinsic using ScaleCode/TypeInfo traits?

I'm wondering if there is any way to extract information about method and parameter of Extrinsic(Unchecked/CheckedExtrinsic) using TypeInfo and Scale codec. In polkadotJs there is toString method on ...
Mateusz Nowakowski's user avatar
0 votes
0 answers
26 views

What is the reason for this unexpected transaction ordering

My understanding is that transaction priority and therefore the ordering in the block is determined by the fee and tip paid. I have noticed a number of times that transactions with the highest total ...
Tom's user avatar
  • 11
2 votes
1 answer
46 views

Allow specific accounts to make extrinsic calls

In our case, validators are providing multiple different services and I want to restrict them from un-staking or making unbound calls until they have completed the job. I can set a BaseCall filter to ...
salman01z's user avatar
  • 527
1 vote
1 answer
53 views

subxt: How to submit pallet_session::set_keys() extrinsic?

I have generated the session keys using the author.rotateKeys() RPC call. The keys are of type Vec<u8> and the length is 128 bytes. I am trying to call the set_keys() method from pallet_session ...
akhil nichenametla's user avatar
1 vote
1 answer
20 views

Extrinsic with BalanceOf<T> and UI

Many Substrate pallets extrinsics take a Balance type, for example balances->transfer or bounties->create. The Polkadot/substrate Development UI somehow detects that it is a Token related field ...
rvalle's user avatar
  • 45
5 votes
0 answers
60 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 ...
Yahor Tsaryk's user avatar
5 votes
1 answer
107 views

Extrinsics In Genesis Block

All the Substrate-based chains that I know of have no transactions in the genesis block. The genesis block is the same data structure as all other blocks and therefore does have a body and a Vec<...
JoshOrndorff's user avatar
  • 1,191
1 vote
1 answer
62 views

List all balance changes of an account on a Substrate-based chain

My goal is to list all balance changes for an account on a Substrate-based chain like Acala. I assumed that on Substrate-based chains all incoming and outgoing values to and from an account would be ...
Aman's user avatar
  • 11
4 votes
0 answers
28 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,...
Bernardo Rodrigues's user avatar
0 votes
1 answer
36 views

Does ExtrinsicBaseWeight apply even when we return 0 weight from extrinsic?

If we return Weight::zero() for an extrinsic that returns DispatchResultWithPostInfo, does that mean that we discard extrinsic base weight which is included for every transaction?
b0zero's user avatar
  • 533
1 vote
1 answer
46 views

polkadot explorer getting stuck while using utility and sudo pallet from extrinsics

I am trying to do a runtime upgrade of my blockchain that is layer 0 chain running on version polkado-v0.9.36 . I also have (ethereum virtual machine integrated to it ). When I do runtime upgrade ...
Karanvir Singh's user avatar
0 votes
1 answer
152 views

If a transaction is created using subxt/polkadot-js and how to sign it using any crypto libraries and send it again using subxt/polkadot-js

I'm trying to create a poc to separate out the signing of transactions from the libraries such as subxt or polkadot-js. I was trying subxt and schnorrkel libs to create partial signed transaction and ...
kroos47's user avatar
  • 59
1 vote
1 answer
156 views

Get Extrinsic Hash from author_submitAndWatchExtrinsic

I'm launching an author_submitAndWatchExtrinsic and would like to get the Tx Hash as well: {"jsonrpc":"2.0","id":9,"method":"author_submitAndWatchExtrinsic&...
FedeC87p's user avatar
1 vote
0 answers
62 views

Batch signed transactions

I need to execute some list of signed extrinsics in order, but because of the randomness that can exist in the transaction pool I have no way to actually ensure that they will execute in the proper ...
Valentin Fernandez's user avatar
4 votes
1 answer
109 views

How to create signed extrinsic in outer node?

What is idiomatic way to submit signed extrinsic in outer node? Is it using BasicPool and submit_local? Would Rust example at the bottom be be good approach? If it is how to: properly choose period ...
klbrvik's user avatar
  • 126
3 votes
1 answer
79 views

Get the raw hex from substrate

I'm trying to get the raw value of the transaction without using the websocket. For now I'm using a WebSocket for my application and I am in the process of removing it, I could find everything I ...
Dashelldot's user avatar
2 votes
1 answer
182 views

I'm struggling to understand the concept of runtime calls, RPC calls, and extrinsics in Substrate

Can someone please explain these concepts in a simplified manner and highlight their key distinctions? I would greatly appreciate any help in clarifying these concepts. I'm relatively new to Substrate ...
the dev's user avatar
  • 477
1 vote
2 answers
41 views

Sending native token in loop not running

Please explain why the following occurs When this method is called, the tokens are equally divided and distributed to the user. (as expected) All user balances get updated with the new amounts. #[ink(...
0xD1x0n's user avatar
  • 119
2 votes
1 answer
66 views

Error with submitted preimage

I am attempting to note.preimage the following call data hash: ...
Paradox - ParaNodes.io's user avatar
8 votes
1 answer
117 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. ...
nathanwhit's user avatar
4 votes
3 answers
84 views

How to independently check in which block extrinsic got included?

The standard way to track extrinsics is: api.tx.balances .transfer(recipient, 123) .signAndSend(sender, ({ status, events }) => { if (status.isInBlock) { // here we know that our tx ...
Mexke's user avatar
  • 55
3 votes
1 answer
85 views

Safe way to remove an extrinsic

I was looking at removing some extrinsics from my pallet and wanted to know the safe way of going about it. Can/should I reuse the call_index? How will historic transaction data be impacted? ...
Nahu's user avatar
  • 33
5 votes
1 answer
192 views

Era of Mortal Extrinsic - How to set `period`, `phase` and `current` arguments

I am trying to define the Era of a mortal transaction in two ways : Manually Meaning I am not using the mortal function and I have to input the correct values for Periodand Phase myself which are the ...
dominique's user avatar
  • 1,683
3 votes
1 answer
78 views

Error Metadata(IncompatibleCodegen) - subxt

I was executing a transaction using Alice account to make a sudo call in local Rococo Network let alice = PairSigner::new(AccountKeyring::Alice.pair()) I am trying to change it to use my own account ...
Alex Bean's user avatar
  • 5,722
3 votes
0 answers
51 views

Unified Accounts [closed]

We have followed the comets of moonBeam and implemented Unified Accounts. Now we're facing issues while adding session keys for aura, grandpa and I'm online. we're using this method for Aura and ...
BlockBird's user avatar
6 votes
0 answers
74 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 ...
Tbaut's user avatar
  • 253
4 votes
1 answer
36 views

Pool overloading in benchmark

I am working on substrate and trying to benchmark my node. I'm sending unsigned extrinsics to the pool and implemented the ValidateUnsigned trait where I add priority, longevity, provide and require ...
Greg's user avatar
  • 51
2 votes
2 answers
52 views

How to ensure a call is the first to execute in a block?

As the title mention, I would like to know what would be the best way to ensure that an extrinsic can be executed only if it's the first call in the block (ignoring timestamp). It also need to work ...
Leouarz's user avatar
  • 353
4 votes
1 answer
50 views

Change state from a task

I have a asynchronous task running in service.spawn_essential_task(task). Which does some stuff and wants to write data in storage. How can i achieve this? Changing state by making runtime_apis to ...
Guest's user avatar
  • 43
6 votes
2 answers
227 views

Any purpose to add #[transactional] attribute to an extrinsic?

Could you help me to understand if there is any special purpose to add a #[transactional] attribute to an extrinsic? For instance, in pallet-uniques there is a call buy_item tagged with frame_support::...
khassanov's user avatar
  • 105
3 votes
1 answer
51 views

Get extrinsic fee using Polkadot.js/api

I want to get extrinsic fee using polkadot.js/api. I am checking kusama chain. https://kusama.subscan.io/extrinsic/17981827-3 I need to get 0.00053835621 fee from above extrinsic. Which api can I use ...
Heindrick's user avatar
  • 183
3 votes
1 answer
201 views

How to encode an extrinsic for RPC from a web client?

I need to programmatically pack an extrinsic for an RPC, I believe I'm looking for the following front-end functionality: extract relevant indices from the Metadata fill the extrinsic parameters ...
Yury Yukhananov's user avatar
4 votes
1 answer
44 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 ...
kim mcclymont's user avatar
4 votes
1 answer
278 views

Sign a transaction offline for Westend testnet and verification of the transaction

Could Polkadot experts execute the code below and advise me on the questions, please? You just need to replace the code by your own Westend accounts and nonce. import { construct, getRegistry, ...
drhanlondon's user avatar
2 votes
1 answer
78 views

Polkadot-JS not calling my contract properly

I used PolkadotJS to call a contract, when i did, it logged the status "in block", Turns out it never makes any state change. I used contracts-ui it worked, but with JS? Never. What can be ...
Woodfish's user avatar
  • 121
1 vote
1 answer
53 views

how do you cancel a parachain proposal or referendum?

what specific extrinsic(s) should be run by a technical committee member in order to initiate the cancellation procedure for a running referendum? the polkadot wiki states this is possible here: https:...
grenade's user avatar
  • 486
6 votes
0 answers
165 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 ...
Niels Vistisen's user avatar
3 votes
1 answer
69 views

Benchmark failing extrinsics

Is there a way to benchmark an extrinsic whose expected behavior is to trigger an error? I stumbled on a project where we have two instances of the same pallet. Instance1 will proceed normally for a ...
Benjamin Gallois's user avatar