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
0 answers
9 views

Get Transactions from wallet address in polkadot.js/api

I want to know how I can get list of transactions and transactions info for specific wallet address in polkadot.js/api, especially for kusama. const provider = new WsProvider("wss://kusama-rpc....
user avatar
0 votes
0 answers
6 views

How can i set fix gas fee for all transaction in substrate?

I want to set a single fee for every transaction happening in substrate either its transfer or any other transaction I want the transfer fee to be 1 unit. Thanks
user avatar
1 vote
0 answers
9 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 ...
user avatar
  • 1,661
0 votes
0 answers
10 views

Function to see whether transaction is finalized

I am currently trying to use the javascript api to send dot between accounts and I was wondering if there was a function/way to find out whether a transaction is finalized just based off the ...
user avatar
1 vote
1 answer
99 views

Pre-dispatch Error

I took a look at the check-weight SignedExtention to see what happens when a block is full. It appears that it returns an error InvalidTransaction::ExhaustsResources. It think it puts it back into the ...
user avatar
  • 273
0 votes
0 answers
13 views

Transaction pool and Signed Extension Pre dispatch

My understanding is that when a transaction arrives it gets validated against all signed extensions. If the transaction is valid it then moves into the ready queue or future queue depending on the ...
user avatar
  • 273
0 votes
1 answer
22 views

Getting from addresses by passing transaction id or hash [duplicate]

I have few transactions and I'd like to get the from addresses of these transactions. I couldn't found anything like an API or RPC endpoint which returns from addresses. Any advice or help appreciated,...
user avatar
0 votes
0 answers
11 views

how to find transactions from nonce? [duplicate]

I am trying to implement a payment confirmation system, where I have to confirm payment from address A to address B in given span of blocks. The payment is done by 3rd person, hence I can not ...
user avatar
0 votes
2 answers
53 views

How to send transactions using RPC?

I'm developing a client library for Dart. I wonder how can I send transactions using RPC. If I wanted to send a balance transfer only using RPC how could I do it? What are the steps? I know that I ...
user avatar
  • 583
2 votes
2 answers
25 views

get object's state after a potential transaction

Is there a way in polkadot js api to be able to get the state of an object after a transaction if it is applied in the future? Is there a way in Substrate to apply a transaction(or its past ...
user avatar
4 votes
0 answers
27 views

Single node performance

I've a couple of questions: I'm running a the node-template on a machine that has 8 cores and 64GB of RAM and its using an SSD. I have some pallets working there and I'm using the python client to ...
user avatar
  • 616
6 votes
1 answer
86 views

Transaction pool extrinsic prioritization

Currently, the transaction pool in Astar network is full with a lot of unsigned EVM transactions, which cause user transactions sent without a tip to be stuck. We are currently researching a way to ...
user avatar
2 votes
1 answer
35 views

Substrate - Generating Transaction History of a Wallet

How can I generate transaction history of a wallet? I was able to run substrate-archive alongside polkadot and a template node in archive node. I stored onto postgres: state_traces, blocks, extrinsics,...
user avatar
1 vote
1 answer
58 views

how to confirm payment from specific address?

I am adding substrate based payment mechanism to my web app. App would provide substrate address to end user, where he/she will send required funds by some external means. Now I want my app to find ...
user avatar
0 votes
1 answer
50 views

Get Transaction by Hash

I'd like to get transaction info like sender and receiver address etc. by sending transaction hash as a parameter. I did found "api.rpc.eth.getTransactionByHash" and tried to pass the hash ...
user avatar
1 vote
1 answer
17 views

Recurring Proposal on Substrate Frontend

So from polkadot js (UI) while creating treasury proposal and want to make it recurring per cycle, you do you achieve that? Say set the segment input in the picture attached to any positive integer, ...
user avatar
3 votes
1 answer
72 views

How can one estimate the transaction throughput of a substrate chain?

I am interested in measuring/estimating the transaction throughput of my chain. How should I start?
user avatar
1 vote
0 answers
46 views

KSM DOT Extrinsic difference?

Does anyone know that is there a difference between DOT / KSM / Westend transactions? Context: A common send/transfer transaction... I can generate same pk and address for Dot and KSm and WST chains ...
user avatar
  • 21
2 votes
1 answer
43 views

Signature getting rejected by node when submitting a balance transfer on Westend

I'm involved in a .NET substrate-based project and I started working towards an implementation for making balance transfers on Substrate. I would swear that I'm doing everything exactly the same way ...
user avatar
  • 175
2 votes
1 answer
129 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 ...
user avatar
  • 1,661
4 votes
2 answers
204 views

Why could we find the same transaction hash in 3 different blocks?

We found that this transaction 0xf35238b1ef440e2a04576c8264ca8288100091a3d4c71069f0336c72078f366b was included into the following three different blocks : 10219793 10219254 10218427 Could you ...
user avatar
  • 721
0 votes
1 answer
45 views

How to create and sign a transaction by myself

I am developing the tool to create and sign a transaction, but I find nothing about the format of a transaction before signing. Could you please help me to find out the document about this issue. ...
user avatar
  • 33
2 votes
1 answer
74 views

How to obtain the transaction hash of each transaction

Getblock through RPC method. I can only see the block hash. But I want a hash for each transaction. What should I do?
user avatar
  • 53
2 votes
1 answer
39 views

How to create custom origin that executes abritrary code on transactions

How can I create a custom origin that executes some arbitrary logic on any transaction? The use case here is some identity check that fails a transaction, if the check fails. In addition, I want to ...
user avatar
1 vote
1 answer
29 views

Is the transaction hash created before or after it is signed and sent?

Just wanted to know at what stage the transaction hashes are created in polkadot
user avatar
1 vote
1 answer
19 views

When I sign a transaction or generate a payload, what is the appropriate/suggested value for the field called “Era Period”?

I read the documentation in the wiki and the support docs so I know that in Polkadot I can set any value bigger than zero and smaller/equal to 2400 to create a valid mortal transaction. However I was ...
user avatar
  • 721
2 votes
1 answer
71 views

High transaction throughput - single acccount

I'm using subxt with the aim to handle bursts of transactions concurrently through a single account. I understand the nonce must be incremented, however I'm unsure of the exact lifecycle of a tx and ...
user avatar
  • 21
5 votes
2 answers
221 views

Is a transaction an extrinsic?

I often see the two words used interchangeably. This has led me to read the docs: Extrinsics fall into three categories: inherents, signed transactions, and unsigned transactions. https://docs....
user avatar
  • 3,180
0 votes
0 answers
22 views

Custom Transaction type

I'm trying to create a layer 2 blockchain. In this blockchain, I do some computing to add to a transaction. Basically, I want to add a custom type to store in the block alongside Extrinsics. Are there ...
user avatar
  • 583
3 votes
2 answers
61 views

Why unsigned extrinsics? [closed]

Q1. What is the existence of Unsigned extrinsics for? I have read about it here: https://docs.substrate.io/v3/concepts/extrinsics But it still does not really make sense to me why it exists in ...
user avatar
6 votes
2 answers
191 views

Transactions lifecycle

I was wondering what is the process of a transaction being removed or dropped from a transaction pool. When a transaction is submitted to the network, It is validated by a node and then gossiped to ...
user avatar
  • 616
1 vote
1 answer
24 views

Setting custom priority for transactions

Is it possible to set a different priority for the transactions other than the fee or tip sent? If so, where should I modify the substrate-node to make it work. For example let's say I want to give ...
user avatar
  • 616
0 votes
1 answer
19 views

Can I modify the `BlockHashCount` on my chain safely to change transaction mortality?

Background Transaction Mortality is described on the Polkadot Wiki as: Extrinsics can be mortal or immortal... If the extrinsic is not included in a block within this validity window, it will be ...
user avatar
  • 1,349
2 votes
1 answer
51 views

How to check the status of a transaction (after sending)

I'm aware of using a callback in signAndSend or sign to verify if a transaction is finalized (like here: https://polkadot.js.org/docs/api/start/api.tx.subs/). Is there a way to do this after the ...
user avatar
0 votes
1 answer
43 views

How to Determine Transaction Interface

In Substrate code, there is logic to determine the way in which extrinsics should be submitted to the runtime (ref: https://github.com/paritytech/substrate/blob/v3.0.0/client/transaction-pool/src/api....
user avatar
1 vote
1 answer
35 views

Cannot sign with a locked key pair Error

I create my signer wallet as follows: const seed = bip39.mnemonicToSeedSync(WALLET_MNEMONIC, WALLET_PASSWORD); const privateKeyBuffer = bip32 .fromSeed(seed) .derivePath(`m/44'/434'/0'/0/0`)....
user avatar
  • 131
3 votes
1 answer
41 views

How can I intercept a transaction in pallet_balance?

In what way can I intercept a transfer in pallet_balance? For example, I would like to check that the user has an identity in pallet_identity before completing a transfer with pallet_balance.
user avatar
  • 31
8 votes
2 answers
102 views

Transaction rollback in Substrate

As we know transactions on Ethereum are atomic. If something throws, everything rolls back. Do we have something similar in Substrate? Or all changes I should manually revert?
user avatar
6 votes
2 answers
71 views

Get account transactions using Substrate API

I think Substrate API is really messy and difficult to understand. How could I get all the transactions for an account? And getting account by address is also counterintuitive: you need to make a ...
user avatar
  • 63
4 votes
2 answers
92 views

How to find how many transactions are pending from address to be added to block?

In my application, I need to fire multiple transactions from same address, and want to create statusCheck() function, which will let me know how many transactions of total are still pending to be ...
user avatar
6 votes
1 answer
60 views

How can I get a deeper / lower level insight into how my transaction is processed with sidecar?

How can I see in more detail what operations are executed when my transaction is submitted ? If there is a way to see all operations/extrinsics/calls that happened in a specific block then that could ...
user avatar
  • 721
5 votes
2 answers
56 views

How to use Polkadot.js API for governance proxy call correctly?

I am trying to create a JS code to be able to vote using proxy account that has been given democracy permissions to stash account, so I would be able to vote using just my mobile phone instead of ...
user avatar
7 votes
1 answer
34 views

Can nonces be skipped in Polkadot/ Kusama

In Ethereum, clients must monitor for the successful progpagation of transactions (each with a nonce) in order to broadcast a new transaction (with a later nonce). If, due to low gas or some other ...
user avatar
  • 111
2 votes
3 answers
52 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 ...
user avatar
  • 21
-1 votes
1 answer
15 views

Can I transfer the balance to the same address on Polkadot?

Can I send a balance when my from address and to address are the same? The reason for asking these questions is to deal with exceptions during development. Of course, I can test it myself, but I don't ...
user avatar
  • 415
1 vote
2 answers
30 views

Trying to implement Substrate client on IoT, any suggestions?

I'm trying to implement a Substrate client on IoT, to send a basic extrinsic that stores as an example, a key-value. This code needs to run on ARM or ESP32 kinds of chips. Are there any suggestions on ...
user avatar
6 votes
2 answers
89 views

What are the Steps for Encoding an Extrinsic in Substrate?

Substrate introduces some unique concepts such as unsigned transactions and signed extensions. What are the steps for encoding an extrinsic in Substrate? What are the specific details that relate to ...
user avatar
6 votes
1 answer
69 views

Can an account's transactions be front-run on Polkadot? If so, how?

Is it possible to reliably monitor an account and receive information about a transaction of that account before the transaction is InBlock and then front-run that transaction by issuing a ...
user avatar
  • 262
11 votes
5 answers
262 views

Is there a good indexer for substrate chains (like the graph)?

If we want to ask lots of queries about chain state (for example users activity over time etc.) is there a recommended or de-facto way of doing it? Ethereum has 'the graph' for example as a high ...
user avatar
  • 2,657