For questions regarding the installation or use of EthereumJS, a Javascript library that implements a number of Ethereum utility functions.
Questions tagged [ethereumjs]
766 questions
12
votes
2 answers
how to use ethereumjs-tx.js in a browser
I have been trying to use ethereumjs-tx in a browser. I have downloaded the browser builds from here https://github.com/ethereumjs/browser-builds/tree/master/dist
This is my code snippet
…
masrrew
- 121
- 1
- 3
5
votes
1 answer
loadScript() returns false error
I am using geth and writing a js script and I try to load it using loadScript command, but when I run this command, I get false :
loadScript("C:\Users\Sandi\Desktop\Solidity\sol_js.js")
false
I am not able to load the script. How i should do to…
Sig Touri
- 1,090
- 2
- 14
- 23
5
votes
5 answers
Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings
Getting error while creating ethereum raw transaction
var rawTx = {
nonce: '0x2a',
gasPrice: '0x4a717c800',
gasLimit: '0xc340',
to: '0x73F7Ced8cc9D27DC426210c32fc6d0a40f941eE1',
value: '0x2386f26fc10000',
data: '',
chainID: 4
} …
Ishwar Chandra Tiwari
- 270
- 1
- 2
- 10
2
votes
1 answer
Transaction wont commit to a block if I send transaction that is signed by private key that is generated by ethereumjs-wallet
Problem
So basically what I am trying to do is to send Transactions that were signed by an account that was generated by ethereumjs-wallet so my node don't keep UTC file and therefore I don't have an issue if someone stealing accounts UTC file. But…
Filip Petrovic
- 43
- 4
1
vote
1 answer
How to query a uint256 input contract function via Etherscan's API?
I'm trying to query a contract function that takes uint256 as input via Etherscan's API but I keep getting error messages. The format I've realized should be as follows based on this…
Curtis S.
- 13
- 2
1
vote
0 answers
Error: Provided address "[object Promise]" is invalid, the capitalization checksum test failed, or its an indrect IBAN address which can't be
i want to use the 'set' function ,but the console tell me that i have a wrong ,it also can say that 'set is not a function ',you can see this :
import React, { Component } from "react";
import SimpleStorageContract from…
ZHBoKn
- 11
- 1
1
vote
1 answer
Ask for explanation of some notations in Ethereum opcodes
I am going to implement EVM for my own project, while reading yellow paper, I can not understand some notations, can anybody help me to clarify them:
what is µ_i in the picture above
Tai D. Nguyen
- 13
- 2
1
vote
1 answer
How to ensure only physical Smart Meters can update blockchain data?
Hey fellow blockchain enthusiasts!
I'm working on a project where I need to ensure that only physical smart meters can update the data on a blockchain-based Smart Contract. It's crucial to prevent malicious users from tampering with the…
Dagens
- 11
- 1
1
vote
1 answer
etherjs provider without ApiKey?
I'm reading the documentation and I see that they say that it is recommended to have an ApiKey with one of the providers, eg:
export const provider = new EtherscanProvider();
https://docs.ethers.io/v5/api/providers/
There is no other way to not…
Aggressive_Tonight_2
- 13
- 3
0
votes
2 answers
How to edit transaction data of an ethereum transaction? Or in other words, create a manual transaction, for contracts with no front end?
This strikes me as a very stupid question, but I have googled and cannot find an easy answer. I have identified a contract that I want to interact with- I know the function selector and the variables I want to pass- ie everything that I need to know…
Andrew Stanger
- 169
- 10
0
votes
1 answer
How to centralize same ERC-20 token to one ETH address using SMART CONTRACT/SIGNED OFFLINE TRANSACTION
Suppose i have same ERC-20 Tokens in 100 ETH accounts. To sell those i have to send the token one by one to ONE mother ETH address. It takes lot of time. I heard there is a shortcut way to do that.
To maintain the security i always rely on OFFLINE…
Mobasher
- 3
- 1
0
votes
1 answer
How to time how long it takes to mine a block?
I've recently created a private ethereum blockchain and would like to time, personally, how long it will take to mine a block in the private blockchain I have created. I'm using the command line/geth JSON-RPC interface, so if there's a way to time…
0
votes
4 answers
How can I call smart Contract function from server side using ethereum account
I want to call Smart Contract function from server side.
How can I call?
I want to use nodejs.
Jiro Yamamoto
- 21
- 3
0
votes
0 answers
EIP150 testBlockchain RangeError: Maximum call stack size exceeded
ethereumjs-vm > npm run testBlockchain
TAP version 13
# BlockchainTests
# file: ContractCreationSpam test: ContractCreationSpam_d0g0v0_EIP150
ok 1 correct pre stateRoot
ok 2 correct genesis RLP
functional-red-black-tree/rbtree.js:904
get:…
ponarunkumar
- 33
- 2
0
votes
1 answer
How to get my private key?
I want to use the ecSign-function in the ethereumjs-util-library. But that needs a private key. So how and where do i get my private key for my wallet?
user2762996
- 293
- 2
- 6