Skip to content

Instantly share code, notes, and snippets.

View smtalimett's full-sized avatar

Satish Talim smtalimett

View GitHub Profile
type QResponse struct {
ID string `json:"id"`
Lang string `json:"lang"`
Result struct {
Action string `json:"action"`
ActionIncomplete bool `json:"actionIncomplete"`
Contexts []string `json:"contexts"`
Fulfillment struct {
Messages []struct {
Platform string `json:"platform,omitempty"`
{
"id": "3622be70-cb49-4796-a4fa-71f16f7b5600",
"lang": "en",
"result": {
"action": "pickFruit",
"actionIncomplete": false,
"contexts": [
"shop"
],
"fulfillment": {
D:\ethereum-examples\example_1>geth --datadir=./chaindata --nodiscover --unlock 6 --mine 1
INFO [12-25|14:08:47] Starting peer-to-peer node instance=Geth/v1.
7.3-stable-4bb3c89d/windows-amd64/go1.9
INFO [12-25|14:08:47] Allocated cache and file handles database=D:\\ethe
reum-examples\\example_1\\chaindata\\geth\\chaindata cache=128 handles=1024
INFO [12-25|14:08:47] Initialised chain configuration config="{ChainID:
15 Homestead: 0 DAO: <nil> DAOSupport: false EIP150: <nil> EIP155: 0 EIP158: 0
Byzantium: <nil> Engine: unknown}"
INFO [12-25|14:08:47] Disk storage enabled for ethash caches dir=D:\\ethereum-
examples\\example_1\\chaindata\\geth\\ethash count=3
> eth.coinbase
"0x7c53f300d1a72502cee336aa88cabac0c716be7f"
>
> miner.setEtherbase(eth.accounts[1]);
true
> eth.coinbase
"0x056568194699f624f04feae12979add37ebbd54e"
>
> miner.start(1);
null
> eth.accounts
["0x7c53f300d1a72502cee336aa88cabac0c716be7f", "0x056568194699f624f04feae12979ad
d37ebbd54e", "0x9a37f388198bbd05ad1e0ab9a18c9051f713366a", "0x009291d07461792dd5
26301cc97ab5912df7ee70", "0x48e75f51b0435a4d4b0c18ba7c14d599c7ae09df", "0x974700
61dc8bddcfab19c3f0b8c55c05a9eaa224", "0x2f50858faa55a692997e06fef4b9af1360c7c625
"]
> personal.newAccount();
Passphrase:
Repeat passphrase:
"0x2f50858faa55a692997e06fef4b9af1360c7c625"
D:\ethereum-examples\example_1>geth attach ipc:/path/to/geth/geth.ipc
> personal.newAccount("xyz123")
"0x009291d07461792dd526301cc97ab5912df7ee70"
> INFO [08-06|14:07:41] New wallet appeared url=keystore://
D:\\ethereum-examples. status=Locked
> eth.accounts
["0x9a37f388198bbd05ad1e0ab9a18c9051f713366a", "0x009291d07461792dd5
26301cc97ab5912df7ee70"]
>
> eth.accounts
["0x9a37f388198bbd05ad1e0ab9a18c9051f713366a"]
> eth.getBalance("0x9a37f388198bbd05ad1e0ab9a18c9051f713366a")
0
> miner.start(1)
INFO [08-06|13:45:01] Updated mining threads threads=1
INFO [08-06|13:45:01] Transaction pool price threshold updated price=18000000000
InNuFlOl [
08> -06|13:45:01] Starting mining operation
D:\ethereum-examples\example_1>geth --datadir=./chaindata account list
Account #0: {9a37f388198bbd05ad1e0ab9a18c9051f713366a} keystore://D:\ethereum-ex
amples\example_1\chaindata\keystore\UTC--2017-08-04T09-12-46.182735600Z--9a37f38
8198bbd05ad1e0ab9a18c9051f713366a
D:\ethereum-examples\example_1>geth --datadir=./chaindata account list
Account #0: {9a37f388198bbd05ad1e0ab9a18c9051f713366a} keystore://D:\ethereum-ex
amples\example_1\chaindata\keystore\UTC--2017-08-04T09-12-46.182735600Z--9a37f38
8198bbd05ad1e0ab9a18c9051f713366a