Questions tagged [testrpc]

Questions related to the test RPC client/simulator https://github.com/ethereumjs/testrpc

Questions related to the test RPC client/simulator https://github.com/ethereumjs/testrpc

440 questions
13
votes
1 answer

Setting the initial balance of an account in ganache-cli

How can I set the initial balance of an account when launching ganache-cli (aka testrpc)? There's nothing in ganache-cli --help to indicate that this is possible. However, when I launch ganache-cli --acctKeys=accounts.txt, I can clearly see that…
goodvibration
  • 26,003
  • 5
  • 46
  • 86
6
votes
9 answers

Could not connect to your Ethereum client

When I type testrpc cmd in console, client is working, then many many "eth_getBlockByNumber" appear, why ??? please give me some advice. Then I open other window, type "truffle test" cmd, it can not work... D:\www\smartContract\demo3>truffle…
Kane Lu
  • 91
  • 1
  • 2
  • 5
5
votes
1 answer

How to set a block height with testrpc?

How can one set the block height of testrpc so that a contract can react on the new height. Concrete problem is that I want to write an automated test that shows that after a certain block number conditional can be executed.
Roland Kofler
  • 11,638
  • 3
  • 44
  • 83
4
votes
5 answers

How to properly stop testrpc process?

I installed ethereumjs-testrpc via npm and I start it in my terminal by running testrpc. CTRL+C does not stop it and I'm forced to suspend it with CTRL+z and then kill -9 ... it every time. Is this behavior by design? Is there a way to stop it…
3
votes
4 answers

How to switch account from default in testrpc

I'm working with truffle on testrpc. When starting the testrpc it gives as usual 9 account to work with. As default I execute my functions with account 0. Now I want to send e.g. transaction from account 1 to 2. So change my default from 0 to 1,…
Jo Achim
  • 31
  • 1
  • 2
2
votes
1 answer

testrpc Error: Module did not self-register

I get this error when i run the testrpc command. node version v5.11.1 npm version 3.8.6 web3 0.15.3
Kizito
  • 779
  • 1
  • 8
  • 17
2
votes
0 answers

Testrpc - How to turnoff writing messages to the console?

Is there any way to force testrpc to stop writing messages to the console ? Currently I am getting ton of messages about getBlockByNumber eth_getBlockByNumber eth_getBlockByNumber net_version The most important thing I need in the moment is list…
Rob Magier
  • 483
  • 2
  • 10
2
votes
3 answers

Ganache with Metamask is filling command window with "eth_getBlockByNumber" string

When connecting Metamask with Ganache-Cli, as soon it generates the accounts and keys, the command window is getting filled with "eth_getBlockByNumber" continuously, has anyone else faced the issue? Thanks.
Praveen Kumar
  • 139
  • 2
  • 9
2
votes
2 answers

`evm_increaseTime` does not increase timestamp

How can I fix this? See: $ truffle console truffle(development)> web3.eth.getBlock("latest").timestamp > 1506694386 truffle(development)> web3.currentProvider.send({jsonrpc: "2.0", method: "evm_increaseTime", params: [500000], id: 123}) { id: 123,…
nubela
  • 123
  • 1
  • 5
2
votes
1 answer

testrpc - how to write commands in console?

I have started testrpc with the following command (which should give the account a balance of 1000): testrpc --account="0x0116af719d217c12310c72c27a13509f192588735ae329f7c4cfef0e1518955e,1000" Testrpc then starts up as expected: EthereumJS TestRPC…
ZhouW
  • 1,348
  • 2
  • 18
  • 35
1
vote
1 answer

Where are keystore of testrpc?

I am puzzled that where are the keystor files of default 10 accounts testrpc provides? I start testrpc --db ./data I can see account default accounts: Available Accounts (0) 0x32fc58d738e05b95fd38149307aa6d4f0c6f2e9a (1)…
VJV
  • 13
  • 2
1
vote
1 answer

How to mine my contract in testrpc

After learning to create and deploy my contract to my testrpc, now I can't figure out how to get my contract mined. I created my contract and my testrpc is up and running. But my solidity online compiler shows me "Waiting for transaction to be…
TimRicta
  • 167
  • 1
  • 3
  • 8
1
vote
0 answers

Works on actual network but does not work on testrpc

I can get the AddPerson() work on the actual private ethereum network. But when I call AddPerson() on testrpc, it gives me : "callback contain no result Error: VM Exception while processing transaction: invalid opcode" message. I use the remix…
user813
  • 331
  • 3
  • 8
1
vote
1 answer

Error: VM Exception while processing transaction: out of gas on TEST RPC

function allowServiceProvider(bytes32 _name,uint _votes) ifDivOptExecuted { // CSD can allow a service provider to submit its customers votes if(_votes > divOpt.votingRightsMax - divOpt.votingRightsUsed){ // throw in case you give…
Rohan Khanna
  • 123
  • 7
1
vote
2 answers

Testrpc and Raspberry

I have a Raspberry 3 where I should install an Ethereum node. My aim is ,substantially,demonstrate the ability to store data(some strings written in python on rpi) on blockchain. Since I had problems both with public and private testnet(cause I…
Nick9214
  • 135
  • 1
  • 7
1
2