I have the full geth node on my machine and want to deploy my smart contract on ropsten using truffle.
In truffle.js fileI have connected to the node as the following:
ropsten: {
host: "Localhost", // Localhost (default: none)
port: 8545 , // Standard Ethereum port (default: none)
network_id: "*", // Any network (default: none)
// from: "", // Ropsten's id
// gas: 5500000, // Ropsten has a lower block limit than mainnet
// confirmations: 2, // # of confs to wait between deployments. (default: 0)
// timeoutBlocks: 200, // # of blocks before a deployment times out (minimum/default: 50)
// skipDryRun: true // Skip dry run before migrations? (default: false for public nets )
},
In the terminal, I run the node by the following command:
geth --syncmode "fast" --cache=1048 --ropsten --rpc --rpcapi "eth,net,web3" --rpccorsdomain '*' --rpcaddr localhost --rpcport 8545 console
How can I use the funds that in my accounts in Metamask to deploy the contract on truffle?
When I check my accounts balances in geth console, it returns 0 where it has some ether in Metamask Chorome extension
Any help is much appreciated. Thanks