0

I have a full geth node on my machine and I want to deploy my contract on Ropsten using truffle.

How I can fund my coinable account with some ether to deploy my smart contract?

I have tried fuusent.ropsten but it says " invalid address"

I have account in metamask and it has some ether but I did not know how to use it.

how can I add some ether to any account I created in Ropsten to use it to deploy the smart contract and to interact with it later after deploy it

I want many account to interact with my smart contract. I used the command geth --ropsten account creat but I don't know how to fund all theses accounts

In truffle.js I have this:

ropsten: {
  
 host: "Localhost",     // Localhost (default: none)
 port: 8545 ,           // Standard Ethereum port (default: none)
 network_id: "*",       // Any network (default: none)
 
},

In a terminal I connect to the node as the following:

geth --syncmode "fast" --cache=1048 --ropsten --rpc --rpcapi "eth,net,web3" --rpccorsdomain '*' --rpcaddr localhost --rpcport 8545 console

Then in another terminal I deploy the smart contract using truffle as the following:

Truffle migrate --network ropsten 

and it does not work as this error appear:

1_initial_migration.js
======================

 Deploying 'Migrations'
  ----------------------

 Error:  *** Deployment Failed ***

 "Migrations" could not deploy due to insufficient funds
    * Account:  0xd48616a728b4D05A5b0e6457EBda383A92f40A54
    * Balance:  0 wei
    * Message:  sender doesn't have enough funds to send tx. The upfront cost is: 372936000000000 and the sender's account only has: 0
    * Try:
      + Using an adequately funded account
      + If you are using a local Geth node, verify that your node is synced.

When I check the address balance, it returns 0:

> eth.getBalance("0xd48616a728b4d05a5b0e6457ebda383a92f40a54")
0
  • faucet.ropsten.be – goodvibration Sep 7 at 8:34
  • Thanks for your reply, but how long it take to get the ethers? because I did it but no ether and when I try again it says I am in greylist and then "Invalid address". – Yamjan Sep 7 at 8:42
  • usually directly... what is the address you try to send ether to? – Majd TL Sep 7 at 8:58
  • 0xd48616a728b4d05a5b0e6457ebda383a92f40a54, Thanks – Yamjan Sep 7 at 9:22
  • Should I add somewhere else and I did not ? – Yamjan Sep 7 at 9:23
0

Here's a list of faucets you can try:

Some of these may require MetaMask to be installed, or some kind of authentication, to prevent someone from spamming. You can find a list for other Ethereum testnets here: https://support.mycrypto.com/how-to/getting-started/where-to-get-testnet-ether

| improve this answer | |
0

In truffle.js I have this:

ropsten: {
  
 host: "Localhost",     // Localhost (default: none)
 port: 8545 ,           // Standard Ethereum port (default: none)
 network_id: "*",       // Any network (default: none)
 
},

and in a terminal I run the node as the following:

geth --syncmode "fast" --cache=1048 --ropsten --rpc --rpcapi "eth,net,web3" --rpccorsdomain '*' --rpcaddr localhost --rpcport 8545 console

and in another terminal I migrate the smart contract with the following command:

Truffle migrate --netwrok ropsten

The error is :

1_initial_migration.js
======================

   Deploying 'Migrations'
   ----------------------

 Error:  *** Deployment Failed ***

 "Migrations" could not deploy due to insufficient funds
   * Account:  0xd48616a728b4D05A5b0e6457EBda383A92f40A54
   * Balance:  0 wei
   * Message:  sender doesn't have enough funds to send tx. The upfront cost is: 372936000000000 and the sender's account only has: 0
   * Try:
    + Using an adequately funded account
    + If you are using a local Geth node, verify that your node is synced.

When I check on the balance it gives 0:

eth.getBalance("0xd48616a728b4d05a5b0e6457ebda383a92f40a54")
0
| improve this answer | |
  • Is this an answer to the question??? – goodvibration Sep 7 at 10:05
  • no, I just answered to @Majd TL of how I connect to Ropsten. I tried to explain in detailed what I have done to check if my connection is true or not – Yamjan Sep 7 at 10:09
  • Then you should not post it here as such. – goodvibration Sep 7 at 10:15
  • delete this please – Majd TL Sep 7 at 11:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.