Skip to main content

Questions tagged [transactions]

Questions about transactions, including signed and unsigned extrinsics, transaction formats, transaction pools and constructing transactions.

Filter by
Sorted by
Tagged with
0 votes
1 answer
15 views

how to create multising account using polkadot extrinsics?

I have been working with multsig wallets i am able to create account using polkadot ui and use it to sign transaction, but i am not able to create account using extrinsics can you please tell how to ...
1 vote
1 answer
23 views

How to integrate Subxt with frontier?

I want the transaction to be happen through subxt on frontier node template. I'm getting this error in this process: Metadata error: The generated code is not compatible with the node How to solve ...
2 votes
1 answer
49 views

Substrate node not propagating transactions

So we have a very strange bug that is happening when sending transaction to a substrate (crust node in this instance). We are sending signed transaction to a crust node via polkadot.js as such: const ...
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 ...
1 vote
1 answer
123 views

How to get the payload from a polkadot-js transaction

I'm wondering what are the possible ways to extract the payload from a polkadot-js transaction. So far the only way seems to be to define a custom signer that implements the Signer interface and then ...
1 vote
0 answers
52 views

how can i achieve 10000 tps in layer zero polkadot based chain

I have my blockchain deployed on production . i want some addition in my chain. i want my chain to have 10000 tps .How can i achieve that in my current layer0 chain without using multiple parachains ....
4 votes
1 answer
60 views

Validation of Transactions Executed in on_finalised Function within the Hook

Will transactions executed within the on_finalised function inside the hook undergo validation by the validators?
1 vote
1 answer
51 views

Ensuring Priority for Key Transactions in a Substrate Chain

I'm currently working on a substrate chain and have implemented a pallet where off-chain workers submit price data of other chains. My requirement is for these prices to be updated by the workers ...
2 votes
0 answers
42 views

Proof-of-Work Substrate Chain with Multiple Validators

I'm working on a Proof-of-Work (POW) substrate chain. Assuming we have four validators, all of which have enabled on-chain workers (OCW), is it accurate to state that each validator's OCW fetches data ...
0 votes
1 answer
160 views

Invalid transaction:1010 Invalid: Transaction has a bad signature

I have changed my default multisignature to EthereumSignature. But whenever i'm doing any transaction on metamask then it is working fine and whenever i'm manually signing the transaction with a ...
1 vote
1 answer
62 views

What is the use case for inherent transactions?

Just for curiosity! In what conditions we can use Inherent transactions? Thanks
0 votes
1 answer
59 views

GSRPC: Check transaction failed?

Context: We are using GSRPC for interacting with a Polkadot Node. We are sending transactions using SubmitAndWatchExtrinsic. Question: How can I detect if the transaction failed? Note: I am aware ...
1 vote
1 answer
98 views

how to transform OpaqueExtrinsic to get the variables within the transaciton?

I'm writing a custom BlockImport and I need to decode the transactions within the block,as we know a transaction is simply a pallet method call for example store_value(value), but at the point where I'...
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 ...
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 ...
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 ...
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 ...
1 vote
1 answer
204 views

How to calculate TPS for a substrate based chain?

Let's say we have a 2 node network with PoA as consensus. In that case how to calculate TPS of this chain specifically?
0 votes
0 answers
28 views

How can one design and implement a fee rule?

I hope you are doing well! How can one design and implement a fee rule on a substrate-based blockchain that is contingent on the transaction payment value? I would like to create this fee rule based ...
3 votes
2 answers
94 views

Simulate transaction before sending

So lets say I have an unsigned transaction. Is there any way I can simulate the transaction without actually sending it to the chain to see if the transaction will fail or if it will be succesfull? ...
0 votes
1 answer
29 views

westend network try to send transfer transaction but fail

my westend account is 5G7NsFf3MqwEKSbuo52d2Y9RaaiMQ3akXzSWpSvgUYq3ZEsm. it shows I have 0.02 WND, and I try to use Balances.transfer or transfer_allow_death 0.0035 WND to another account. So I send ...
0 votes
0 answers
26 views

batchall.sign throws TypeError: Cannot read properties of undefined (reading 'specVersion')

Trying to form a batchAll command that carries out 2 activities: Deposit 1 GLMR from wallet1 to wallet2 Cancel tokens' delegation revoke When I try to sign the batch with wallet1 (batchAllExtrinsic....
1 vote
1 answer
70 views

Transaction fees withdraw/deposit in

I made transactions on a simple EVM DEX contract. I initially called the approve method which only triggered balances.withdraw event. I understand that this event is triggered as calling this write-...
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(...
3 votes
0 answers
31 views

ink dapp asking to sign transactions everytime i reload

so i am building a dapp with ink it has messages to get data and put data and on FE when i logged in with the polkadot-js extension wallet everytime i reload the page it asks me to sign the ...
0 votes
0 answers
19 views

Unit testing an extrinsic submitted by an Offchain Worker?

As far as I could understand so far there is no a "normal" way to test extrinsics submitted by an Offchain Worker, rather a substitute transaction pool is involved. However it is possible to ...
3 votes
3 answers
152 views

Query node for full history of an account's extrinsic/transaction records

I'm trying to get transaction history (ie. transfers) using just the account id. From my understanding the only way this can be done is if you go through every single block and look up the transaction ...
5 votes
1 answer
199 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 ...
3 votes
1 answer
72 views

Transaction lifecycle substrate, Polkadot

I'm learning about transaction lifecycle in substrate docs, I saw the diagram but I don't understand the flow operation of this diagram. Please, let's explain the flow operation of the transaction ...
5 votes
1 answer
289 views

What is unique about Substrate's transaction pool?

Every blockchain has different implementations of a transaction pool, which does the job of checking transaction validity before transactions are included by block authors. In Substrate it is possible ...
3 votes
1 answer
81 views

Problem deploying smart contract on rococo

I have been following the public documentation of polkadot API to deploy contract: https://polkadot.js.org/docs/api-contract/start/code but I'm getting error Uncaught (in promise) TypeError: code.tx....
6 votes
2 answers
71 views

Efficiently limit NFT transfers to members of a group

What is/are the preferred approach/es (crates, pallets, etc.) to efficiently limiting NFT transfers to members of a group? Here efficiently refers to the resources consumed to execute the transfer. ...
2 votes
1 answer
64 views

How does the `TaggedTransactionQueue` runtime API know what parts of the encoded call to check?

The transaction pool regularly calls the validate_unsigned function of the SignedExtension trait to check transaction validity against current state. This trait then gets used to implement custom ...
2 votes
1 answer
89 views

AccountId in offchain worker

I'm working on Substrate based project. In the project, each blockchain validator has an offchain worker. author_insertKey() is used to set up a key so the offchain worker can sign transactions. Each ...
2 votes
1 answer
49 views

Are Transaction Pool and Transaction Queue the same thing?

Was going through documentation of Substrate. I came across transaction lifecycle. https://docs.substrate.io/learn/transaction-lifecycle/ I'm confused about one line it which says "The ...
4 votes
1 answer
62 views

Are on_idle hooks transactional?

Trying to call a function marked as #[require_transactional] from on_idle() hook triggers the error Err : Transactional(NoLayer). I realise the transactional macro is optional for extrinsics and the ...
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, ...
5 votes
1 answer
126 views

Are transaction always submitted to non-validator nodes?

Reading the Polkadot docs, I've run into the following statement: Validators should only run the Polkadot binary, and they should not listen on any port other than the configured p2p port. So far, ...
2 votes
3 answers
199 views

Is it possible to make a transaction with my own account?

I'm currently trying to make a transaction using subxt tool. I could generate tx with test sr25519 keyring (Alice, Bob, ...), but I'm not sure I can do this with my account on rococo testnet. I made ...
1 vote
1 answer
36 views

How to disable "tips" with Aura?

How can transaction tips be disabled or configured (say, limited) with Aura consensus?
3 votes
1 answer
231 views

How to make rawTransaction? and Can I get some guide or reference about offchain sign?

[Question] How can I make raw-transaction(unsigned-transaction) with essential parameter(fromAddress, toAddress, value, nonce, fee etc)? I want to know low-level algorithm. What kind of Cryptography ...
2 votes
1 answer
119 views

Creating offline transaction for parachains

From my research of how to generate and sign transactions offline I found docs: https://wiki.polkadot.network/docs/build-transaction-construction citing txwrapper-core: https://github.com/paritytech/...
4 votes
1 answer
130 views

Serialisation of Extrinsic objects

Generating transaction via ApiPromise through api.tx.xxx method generated a SubmittableExtrinsicFunction object. Which has a toJSON() function that return what I would call a raw transaction. Is there ...
2 votes
1 answer
284 views

Best practices for generating and monitoring transactions

So I am building a service that will be creating high amount of transactions on different substrate base chains. The infrastructure I have in mind is having microservices that will generate ...
0 votes
1 answer
33 views

How to split the overall transaction fees associated with an on-chain proposal that passes amongst its creator and voters?

If you have built a custom Substrate-based chain and added Substrate pallets to enable on-chain governance (i.e. pallet_democracy, pallet_referenda). How would you split the costs between participants ...
0 votes
1 answer
116 views

How can I check origin in a SignedExtension?

How can I check the origin in a SignedExtension?
3 votes
2 answers
128 views

Is there anyway to tell if a transaction was submitted by a light client on a substrate blockchain?

Interested in calculating the number of transactions submitted by type of node. Ie seeing how many transactions are originating from light clients vs full-nodes.
2 votes
1 answer
79 views

How to reduce spam risk if tx fees are paid with exotic assets instead of native tokens and tx fee overpayment refunds are in native tokens?

This pull request appears to expose arbitrage and spam opportunities, as it proposes to modify the Substrate frame DEX pallet to allow users to use an exotic asset for transaction fees instead of the ...
2 votes
1 answer
46 views

What is the intended purpose of `sudo_as` from the sudo pallet?

I ask myself, why this extrinsic (https://github.com/paritytech/substrate/blob/e9b0facf70eeb08032cc7e83548c62f0b4a24bb1/frame/sudo/src/lib.rs#L224-L263) exists? I mean the sudo key could execute any ...
2 votes
2 answers
195 views

How To Adjust The Fees On A Running Substrate Chain?

Fees for transactions in our test net are too high and we would like to adjust them to be some factor lower across the board. Is there a simple way to do that using a call from the Polkadot.js apps ...