Questions tagged [raw-transaction]
A transaction byte-encoded using the Recursive-Length Prefix (RLP) algorithm. Before Constantinople, it needs to be signed before it will be accepted by the network.
268 questions
0
votes
1
answer
18
views
Having trouble deploying the ERC-2470 singleton factory to a new chain
I'm trying to deploy a new singleton factory to my own chain, but I'm not able to get the instructions listed on the page to work. Specifically I'm not able to deploy it from the one-time deployer ...
0
votes
1
answer
12
views
Cannot send transaction using ethers.js on Ganache local chain
This is my deploy.js
const ethers = require("ethers");
const fs = require("fs");
async function main() {
const provider = new ethers.providers.JsonRpcProvider(
"http://...
0
votes
1
answer
42
views
How I can send FIL in filecoin network
My network: filecoin.
I use this RPC: https://api.node.glif.io
I try send FIL token from A to B address on filecoin network and I got error:
{
jsonrpc: '2.0',
error: {
code: 1,
message: &...
0
votes
0
answers
21
views
how create signedTransactionRaw without using module in swift
I try to create signedTransactionRaw for request to infura url to make some event in ethereum node but when i try to below to code i get error
func transaction() {
var rawTransaction : ...
0
votes
1
answer
187
views
future transaction tries to replace pending
I have an address A which I have funded with ETH. Now I want to crate a transaction to send the funds to a different address B. Creating and signing seems to work as I can decode the transaction and ...
1
vote
0
answers
17
views
How are ethereum transaction sent over the wire in Network to peers
I understand how ethereum transactions are signed and proapagated. But while comparing the output of rawTransaction with the wireshark capture of Etherum EOA transaction, I could not map the ...
0
votes
1
answer
217
views
Using `types.DynamicFeeTx` for `EIP-1559` in golang creates an invalid raw transaction hex
I am trying to create a raw EIP-1559 transaction using the DynamicFeeTx method since I want to provide a gas tip cap. When I create this raw transaction, sign it and encode it using rlp, I get a raw ...
0
votes
0
answers
28
views
transaction pending so long with high gas, correct nonce
I am making lottery contract, and want to execute set public variable by custom script.
my contract code looks like this.
// ...
address[] public applicants;
uint32 numWords = 5;
function ...
2
votes
1
answer
79
views
Can you schedule an eth transfer in the future?
Is it possible for person A to schedule an eth transfer to person B 1 week in the future, possibly by offchain signing the transaction?
I've seen the concept of offchain signing and am wondering if ...
2
votes
1
answer
86
views
Error signing transactions with Alchemy using safeSdk.executeTransaction(safeTransaction) from @safe-global/protocol-kit (gnosis-safe)
SOLVED - SOLUTION TO BE POSTED BY ME TOMORROW!
Hello builders!
One Line summary:
safeSdk.executeTransaction(safeTransaction) from @safe-global/protocol-kit does not work for signing transactions, I ...
1
vote
1
answer
312
views
Having a signed tx object from mempool in js how can I rebuild raw tx data using ethersjs or web3js?
I have a pending signed tx object received through subscribe on pending transactions in js. I need to build raw tx data to be able to send it directly to the network, but the following code does not ...
0
votes
1
answer
73
views
Sign a transaction with Metamask which will be submitted later using a custom backend
Currently have a custom micro-service that sends & creates transactions depending on the use case which utilizes eth_sendRawTransaction meaning I'll need a web wallet to prompt the users to sign a ...
2
votes
1
answer
135
views
How to access funds if the Gnosis Safe website is shutdown?
Imagine that the Gnosis Safe website and services is shutdown, how can users access their funds?
2
votes
0
answers
119
views
Safely and simply withdraw all the balance of ETH from a wallet
I'll have a large of wallets, potentially, from which I'll be needing to withdraw ETH, and tokens, from time to time to the central, admin wallet. By a script, once a week.
Instead of having to ...
1
vote
0
answers
9
views
Safely and simply withdraw all the balance of ETH from a wallet [duplicate]
I'll have a large of wallets, potentially, from which I'll be needing to withdraw ETH, and tokens, from time to time to the central, admin wallet. By a script, once a week.
Instead of having to ...
1
vote
0
answers
146
views
how to to create and broadcast a custom token transaction in bsc with php?
i have custom token on bsc. i use some kornrunner class for signing my transaction and broadcast it but i have some problem here. when i send hex to bsc chain, return txid for me but blockHash & ...
3
votes
1
answer
963
views
How to deploy smart contract with raw transaction
I want to deploy transaction with raw transaction without using hardhat or web3 method.
my code looks like this.
// constructor params
const name = 'My Contract';
const symbol = 'MC';
const maxSupply =...
1
vote
0
answers
52
views
Library package helps interact with Blockchain on the Ethereum platform (ETH, BSC, Polygon...) more simple and minimized
I am a Blockchain engineer and after 3 years of working with the EVM-platform I used many different libraries such as web3, ethers, ethereumjs-tx,... I realized they are so distributed and complex to ...
1
vote
2
answers
1k
views
Padding bytes were not empty : while decoding txn input data
I'm decoding the raw input data of an eth transaction. I have the function signature to decode the input with.
I'm using the eth_abi library for python.
res = eth_abi.decode(['address', 'address'], ...
0
votes
1
answer
350
views
How can I get the ABI of a smart contract on the Ethereum blockchain and use it to decode transactions and logs?
If I have the address of a smart contract and I want to fetch its ABI, to decode transactions and logs.
I know one way is to use Etherscan, but I want to do this operation in bulk, and Etherscan’s ...
0
votes
1
answer
69
views
How to match a transaction of incoming tx on blockchain with the one in DB?
I'm working on a TG bot used for exchange of crypto <-> fiat.
Each customer gets assigned a single wallet, once, which he is to send coins to, however he wants to, priour to receiving fiat.
...
1
vote
1
answer
55
views
Please tell me about ethereum transaction structure
I read this page, and I can not understand this line.
https://docs.soliditylang.org/en/develop/abi-spec.html#examples
0x0000000000000000000000000000000000000000000000000000000000000060 : the location ...
1
vote
0
answers
26
views
How to build & sign a raw transaction calling a function on an 3r party already deployed contract [duplicate]
My goal is to sign a raw transaction, then broadcast it through the Ftmscan/Etherscan API.
I don't want to deal with web3 providers like Infura/Alchemy, if possible.
Just write the raw transaction, ...
1
vote
0
answers
68
views
How to pre-fund wallets to execute smartcontract functions as Custodian for someone else?
Let's say we create multiple wallets (via HD-Wallet) for our users, so they don't have to care for their private keys.
The users will only have access to their public wallet address to receive Ether ...
0
votes
2
answers
207
views
How can I download Ethereum transaction list?
I would to some research on how based on the average price one can trade with Ethereum. But I need public transaction prices. How can I get them?
The minute-based price list or even hour is ok.
I ...
1
vote
1
answer
103
views
Can I sign a transaction several days in advance and give it to a 3rd party so they can execute it whenever they want?
Let's say I create and sign with my keys a transaction to swap USDC for ETH with all the required parameters (both parameters for the swap and tx parameters like gas, etc), but I don't send it. If I ...
1
vote
1
answer
1k
views
what is the purpose of a raw tx hex?
Every now and then I'll see someone say just copy/send the raw tx hex, I guess to copy the transaction - like an nft mint - and send it faster instead of writing through the contract?
Is this correct? ...
0
votes
1
answer
226
views
Absolute fastest way of sending a transaction on Ethereuem? (in 2022)
What is the absolute fastest way of sending a transaction on Ethereum? (use case: trading microcap coins on Ethereum blockchain which are highly volatile so transaction speed matters)
Would it require ...
2
votes
1
answer
583
views
Transaction on Uniswap -- how to find out what pair is being swapped (via web3.js)?
Given a transaction on Uniswap,
how to find out what pair is being swapped, and the amount of it? Namely, via web3.js/ethers.js
Is there relevant and sufficient information in the fields of a ...
0
votes
2
answers
991
views
sendSignedTransaction web3js
I see that with sendTransaction you can specify maxFeePerGas.
see here
However, if you use signTransaction and then sendSignedTransaction you can only send gas. and here.
How to send a signed ...
2
votes
2
answers
4k
views
decode eth raw transaction
Can you decode this transaction:
Etherscan tx:
...
1
vote
2
answers
3k
views
How to recover the public key from r, s and v without the private key
I would like to recover the public key (or address) from the r,s and v values of a signed transaction without using a private key. The idea of course being, that I want to use Nick's method to deploy ...
1
vote
0
answers
394
views
Signing transaction return invalid hash with wallet connect on trust wallet iOS
I'm trying to sign a transaction from my Dapp with wallet connect on trust wallet.
Transaction data is something looks like this:
{
data: "...
0
votes
0
answers
173
views
how to calculate root hash in MPT?
I already know how to build an MPT, but don't know how to compute root hash, especially how to deal with the leaf nodes.
I would be grateful for specific examples.
2
votes
1
answer
597
views
What does storageroot look like in a new contract?
Are the keys and values all from the code? will the nonce or balance be the key?
why there is a default value of storageroot since there are always somethings real?
1
vote
1
answer
123
views
What is the exact data-to-be-processed at an ETH transaction signature?
Both at signature creation and at verification the processing shall be done over the same data. Based on the description the following bytes shall be put together in an RLP-encoded form to be ...
0
votes
0
answers
140
views
When Interacting with a DAPP, how can I see what it is passing to Metamask?
I am looking to intercept calls from Dapp to metamask to be able to see what is inside. I would like to be able to see with which contract am I interacting with and what is the transaction data passed ...
1
vote
2
answers
2k
views
EIP-1559: Why does geth expect an input list for types.txdata?
I manually composed, signed, and serialized the following raw transaction:
...
0
votes
1
answer
256
views
How to deploy an EIP1167 proxy contract from an EOA's transaction
I have seen a number of examples where people deploy proxies with other contracts. For example, here.
Where can I read / see an example of how to construct and send an EOA's transaction to deploy a ...
2
votes
1
answer
1k
views
How to encode empty transaction fields?
I want to RLP-encode a(n unsigned) transaction. Some fields of the transaction can be empty/null/zero. I want to know how they are encoded, though.
Let's assume the following transaction fields:
...
2
votes
4
answers
3k
views
Ethers fails to parse raw transaction
I'm trying to parse the raw transaction of this transaction on mainnet: 0x2cd10c5a49963ea7009be96fd4651e4009c719f680096cd8c66c083b48ba5de6.
The hex encoding of the raw signed transaction is
...
1
vote
1
answer
156
views
Transaction never appear on Rinkeby
I've signed a transaction with my private key and then used the sendRawTransaction function to send the transaction on the network, I got the Transaction Hash, but when I use that transaction has in ...
1
vote
1
answer
3k
views
Why is value of ECDSA v often neither 27 nor 28?
There are a lot of information out there explaining that in the ECDSA signature the value of v is always either 27 or 28.
However there are many transactions which, when decoded using several decoders,...
0
votes
1
answer
1k
views
Is it possible to send message in inputData for ERC20 contracts?
There is a transaction on the Rinkeby testnet that has a message encoded in the input data of the transaction
https://ropsten.etherscan.io/tx/...
0
votes
2
answers
467
views
Transaction disappearing
I'm working on developing an ETH wallet, and I ran into some weird behavior.
I'm using nethereum and etherscan.io. I'm creating a raw transaction using nethereum and then I'm posting it to the ...
1
vote
1
answer
426
views
web3py The method eth_getRawTransactionByHash does not exist/is not available
I am trying to run a simple command w3.eth.get_raw_transaction - this somehow works on the Binance smart chain, but does not work on infura.
tx_hash = "...
0
votes
2
answers
3k
views
Code example: How to get transaction hash before sending transaction
I know their might be examples online, but they do not really solve my issue.
So let us say I have the code below:
this.factoryContract = new ethers.Contract(
"factoryContractAddress",
...
1
vote
1
answer
1k
views
Are the tx signed then RLP encoded then hashed to be transmitted to the blockchain for miners to mine?
Using the discussion of this link: https://ethereum.org/en/developers/docs/transactions/
It seems obvious that before the transaction is transmitted over the blockchain for miners to mine, the ...
0
votes
1
answer
800
views
sendSignedTransaction vs sendRawTransaction
sendSignedTransaction vs sendRawTransaction: What's the difference?
They both require the transaction to be already signed (and therefore hashed). Both work with local keys and not hosted keys. Both ...
0
votes
1
answer
3k
views
decode ethereum input data
Howsit guys, I am busy going through the mempool and trying to track various transactions and parts of transactions. As a first step I thought I would list transactions and the bits I might need later ...