SilentCicero / meteor-dapp-boilerplate

Boilerplate meteor dapp - starting point for meteor dapps using bootstrap
MIT License
137 stars 35 forks source link

How to interact with this contract via geth? #3

Open ghost opened 8 years ago

ghost commented 8 years ago

How to interact with this contract via geth?

geth --rpc --rpcaddr="0.0.0.0" --rpccorsdomain="*" --testnet --unlock=2 console

I1202 18:47:25.622052 11964 xeth.go:1005] Tx(0xb9b34fe42dc8b265ed63e284e2c94d04ec747c94ac9b071ffc9146b60d42053e) created: 0x21c5d28d326895f44c77da49618a2305fb4672c0

contractInstance ReferenceError: 'contractInstance' is not defined at :1:1

I1202 18:53:36.385505 11964 blockchain.go:1142] imported 1 block(s) (0 queued 0 ignored) including 0 txs in 4.884004ms. #109827 [47483f4d / 47483f4d]

I1202 18:56:10.312947 11964 blockchain.go:1142] imported 1 block(s) (0 queued 0 ignored) including 1 txs in 42.741939ms. #109828 [0ed4150a / 0ed4150a] I1202 19:01:34.099267 11964 blockchain.go:1142] imported 1 block(s) (0 queued 0 ignored) including 2 txs in 17.44421ms. #109829 [eb7f8f79 / eb7f8f79] I1202 19:03:53.376966 11964 blockchain.go:1142] imported 1 block(s) (0 queued 0 ignored) including 5 txs in 89.428823ms. #109830 [1e1b769c / 1e1b769c] I1202 19:06:31.043811 11964 blockchain.go:1142] imported 1 block(s) (0 queued 0 ignored) including 3 txs in 23.716274ms. #109831 [1d665e20 / 1d665e20] I1202 19:10:37.591041 11964 blockchain.go:1142] imported 1 block(s) (0 queued 0 ignored) including 2 txs in 17.017971ms. #109832 [06383010 / 06383010] I1202 19:10:37.610395 11964 downloader.go:291] Block synchronisation started I1202 19:11:59.698389 11964 blockchain.go:1142] imported 1 block(s) (0 queued 0 ignored) including 4 txs in 35.719776ms. #109833 [b62acfef / b62acfef]

MultiplyContract ReferenceError: 'MultiplyContract' is not defined at :1:1

MultiplyCI1202 19:12:52.922507 11964 blockchain.go:1142] imported 1 block(s) (0 queued 0 ignored) including 2 txs in 25.197409ms. #109834 [16d9f49d / 16d9f49d] multiplycontract ReferenceError: 'multiplycontract' is not defined at :1:1

multiply ReferenceError: 'multiply' is not defined at :1:1

I1202 19:13:33.754908 11964 blockchain.go:1142] imported 1 block(s) (0 queued 0 ignored) including 1 txs in 12.167866ms. #109835 [10b536f2 / 10b536f2] I1202 19:13:46.570769 11964 blockchain.go:1142] imported 1 block(s) (0 queued 0 ignored) including 0 txs in 4.374262ms. #109836 [b48af3b3 / b48af3b3] I1202 19:15:22.675711 11964 blockchain.go:1142] imported 1 block(s) (0 queued 0 ignored) including 0 txs in 4.216084ms. #109837 [bdce214d / bdce214d]

contract.test ReferenceError: 'contract' is not defined at :1:1

test ReferenceError: 'test' is not defined at :1:1

screen shot 2015-12-02 at 19 27 12

ghost commented 8 years ago

multiplycontractContract ReferenceError: 'multiplycontractContract' is not defined at :1:1

multiplycontract ReferenceError: 'multiplycontract' is not defined at :1:1

I1202 19:39:51.001036 11964 blockchain.go:1142] imported 1 block(s) (0 queued 0 ignored) including 3 txs in 14.263372ms. #109848 [37d808d0 / 37d808d0]

multiplycontractContract ReferenceError: 'multiplycontractContract' is not defined at :1:1

I1202 19:40:42.441524 11964 blockchain.go:1142] imported 1 block(s) (0 queued 0 ignored) including 2 txs in 33.069464ms. #109849 [8160549f / 8160549f]

same

ethereumdegen commented 8 years ago

Hmm I was able to get this working. You need to be using geth --mine so that your testnet will mine the blocks. You should see little hammer icons. This was in index.js :

// my RPC settings are: 
    // geth --rpc --rpcaddr="0.0.0.0" --rpccorsdomain="*" --mine --unlock=YOUR_ACCOUNT --verbosity=5 --maxpeers=0 --minerthreads="3"