New answers tagged go-ethereum
0
votes
Mismatch in `accessList` between Geth and Nethermind
first note that the examples you provided are JSON that the RPC API can receive, but the actual access list is RLP-encoded into the transaction.
but yes, according to the spec those transactions ...
0
votes
are there other ways to send bundle of transactions without using flashbot?
You can bundle transactions using a Multi Call contract. Just encode all your transactions into one and use the Multi Call contract. Here is the link
0
votes
where func U256(n *big.Int) []byte is deined in v1.11.6
Was moved to common/math
// U256Bytes converts a big Int into a 256bit EVM number.
// This operation is destructive.
func U256Bytes(n *big.Int) []byte {
return PaddedBigBytes(U256(n), 32)
}
2
votes
Smart contract deployment pending forever
Your Go code calculates the gas price for the contract deployment transaction incorrectly — it sets it too low.
Your Go code seems okay (I think?) but maybe it fetched the gas price at the state (...
0
votes
Accepted
Batch NFT mining
They’ll have the same contract address as the original minted NFTs and different token Ids
0
votes
ERROR: Stack too deep when compiling inline assembly: Variable headStart is 1 slot(s) too deep inside the stack
this article may help.
https://medium.com/@sandnc.eth/uniswap-v3-stack-too-deep-error-message-d268dc8b57db
NonfungiblePositionManager needs an other external function position1, which returns less ...
0
votes
How do we compile a contract with pragma solidity 0.5.7 to work with hardfork `istanbul`?
Yes, it’s possible to compile a Solidity contract for a specific EVM version using Truffle. To compile for the Istanbul hard fork, you’ll need to update the pragma statement in your Solidity contract ...
1
vote
Accepted
How to use contractAbi.Unpack to parse raw log data into a log type struct
You can use the UnpackIntoInterface() method which takes three parameters
event := struct {
Key [32]byte
Value [32]byte
}{}
_ = contractAbi.UnpackIntoInterface(&event, "ItemSet"...
0
votes
Multiple transactions in one block
Yoo Maka,
If you wanna do multiple Txn in an single block you can try doing that in Golang.
Its very simple with Golang if its feasible for your project
1
vote
Accepted
Do new clients necessarily need to connect to archive nodes?
It seems what you're fundamentally asking is:
Does a new Ethereum client/node need to connect to an archive node to become an archive node? or
Given a new Ethereum client can become a full node by ...
0
votes
is the impersonation of this function possible?
For testing purposes, it is feasible to pretend to be the function's msg.sender (caller) in solidity.
If you have any more issues lemme know
0
votes
signing transactions with web3.js
try using
let myData=contract.methods.greet("hello blockchain devs").call() if it is view or pure type function.
else use
res = contract.methods.greet('your msg').send({from : <caller ...
0
votes
How to build an Ethereum private chain using POS consensus
I run into the same problem. reconfig genesis.json file and problem solved. Default genesis.json will use POW instead. Here is the genesis file I use
{
"config": {
"chainId"...
0
votes
how to encode transaction input data in Golang?
name := "add"
rawName := "add"
funType := 0
mutability := "view"
param1, err := abi.NewType("value", "int", nil)
inputs := abi.Arguments{
abi....
Top 50 recent answers are included
Related Tags
go-ethereum × 6288solidity × 930
web3js × 756
blockchain × 626
private-blockchain × 530
contract-development × 361
transactions × 312
synchronization × 310
mining × 251
ether × 247
json-rpc × 229
truffle × 213
remix × 202
mist × 197
geth-debugging × 193
golang × 186
ethereum-wallet-dapp × 177
openethereum × 174
wallets × 164
nodes × 160
contract-deployment × 148
testnets × 140
tokens × 131
metamask × 121
accounts × 121