Created
June 26, 2018 14:39
-
-
Save lucas-maicoin/bf29af19f6a488f2509d74b406e1f127 to your computer and use it in GitHub Desktop.
cleos --print-request --print-response transfer lucaszhang15 lucaszhang11 "0.1 EOS" "test"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cleos --print-request --print-response transfer lucaszhang15 lucaszhang11 "0.1 EOS" "test" | |
REQUEST: | |
--------------------- | |
POST /v1/chain/get_currency_stats HTTP/1.0 | |
Host: localhost | |
content-length: 63 | |
Accept: */* | |
Connection: close | |
{ | |
"json": false, | |
"code": "eosio.token", | |
"symbol": "EOS" | |
} | |
--------------------- | |
RESPONSE: | |
--------------------- | |
{ | |
"EOS": { | |
"supply": "1001603799.2155 EOS", | |
"max_supply": "10000000000.0000 EOS", | |
"issuer": "eosio" | |
} | |
} | |
--------------------- | |
REQUEST: | |
--------------------- | |
POST /v1/chain/abi_json_to_bin HTTP/1.0 | |
Host: localhost | |
content-length: 171 | |
Accept: */* | |
Connection: close | |
{ | |
"code": "eosio.token", | |
"action": "transfer", | |
"args": { | |
"from": "lucaszhang15", | |
"to": "lucaszhang11", | |
"quantity": "0.1000 EOS", | |
"memo": "test" | |
} | |
} | |
--------------------- | |
RESPONSE: | |
--------------------- | |
{ | |
"binargs": "50029ba67d6c908e10029ba67d6c908ee80300000000000004454f53000000000474657374" | |
} | |
--------------------- | |
REQUEST: | |
--------------------- | |
POST /v1/chain/get_info HTTP/1.0 | |
Host: localhost | |
content-length: 0 | |
Accept: */* | |
Connection: close | |
--------------------- | |
RESPONSE: | |
--------------------- | |
{ | |
"server_version": "c9b7a247", | |
"chain_id": "aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906", | |
"head_block_num": 2752595, | |
"last_irreversible_block_num": 2752270, | |
"last_irreversible_block_id": "0029ff0ebe1dd717f47cc0f8bf1fd15cbb57e82b88d24f341deb11f57c33f679", | |
"head_block_id": "002a0053de96c0b0e7cf8c8f8e8e11c3dfcca12321b4f883b99dd20ecd695929", | |
"head_block_time": "2018-06-26T14:32:54.000", | |
"head_block_producer": "eosstorebest", | |
"virtual_block_cpu_limit": 200000000, | |
"virtual_block_net_limit": 1048576000, | |
"block_cpu_limit": 199900, | |
"block_net_limit": 1048576 | |
} | |
--------------------- [229/2000] | |
REQUEST: | |
--------------------- | |
POST /v1/wallet/get_public_keys HTTP/1.0 | |
Host: localhost | |
content-length: 0 | |
Accept: */* | |
Connection: close | |
--------------------- | |
RESPONSE: | |
--------------------- | |
[ | |
"EOS5ZxpFzmqybRZjoBt9Xavb3PrYBG8LNf91aag2KaCdE1nEb2G8Y" | |
] | |
--------------------- | |
REQUEST: | |
--------------------- | |
POST /v1/chain/get_required_keys HTTP/1.0 | |
Host: localhost | |
content-length: 671 | |
Accept: */* | |
Connection: close | |
{ | |
"transaction": { | |
"expiration": "2018-06-26T14:33:24", | |
"ref_block_num": 65294, | |
"ref_block_prefix": 4173364468, | |
"max_net_usage_words": 0, | |
"max_cpu_usage_ms": 0, | |
"delay_sec": 0, | |
"context_free_actions": [], | |
"actions": [{ | |
"account": "eosio.token", | |
"name": "transfer", | |
"authorization": [{ | |
"actor": "lucaszhang15", | |
"permission": "active" | |
} | |
], | |
"data": "50029ba67d6c908e10029ba67d6c908ee80300000000000004454f53000000000474657374" | |
} | |
], | |
"transaction_extensions": [] | |
}, | |
"available_keys": [ [182/2000] | |
"EOS5ZxpFzmqybRZjoBt9Xavb3PrYBG8LNf91aag2KaCdE1nEb2G8Y" | |
] | |
} | |
--------------------- | |
RESPONSE: | |
--------------------- | |
{ | |
"required_keys": [ | |
"EOS5ZxpFzmqybRZjoBt9Xavb3PrYBG8LNf91aag2KaCdE1nEb2G8Y" | |
] | |
} | |
--------------------- | |
REQUEST: | |
--------------------- | |
POST /v1/wallet/sign_transaction HTTP/1.0 | |
Host: localhost | |
content-length: 753 | |
Accept: */* | |
Connection: close | |
[{ | |
"expiration": "2018-06-26T14:33:24", | |
"ref_block_num": 65294, | |
"ref_block_prefix": 4173364468, | |
"max_net_usage_words": 0, | |
"max_cpu_usage_ms": 0, | |
"delay_sec": 0, | |
"context_free_actions": [], | |
"actions": [{ | |
"account": "eosio.token", | |
"name": "transfer", | |
"authorization": [{ | |
"actor": "lucaszhang15", | |
"permission": "active" | |
} | |
], | |
"data": "50029ba67d6c908e10029ba67d6c908ee80300000000000004454f53000000000474657374" | |
} | |
], | |
"transaction_extensions": [], | |
"signatures": [], | |
"context_free_data": [] | |
},[ | |
"EOS5ZxpFzmqybRZjoBt9Xavb3PrYBG8LNf91aag2KaCdE1nEb2G8Y" | |
], | |
"aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906" | |
] | |
--------------------- | |
RESPONSE: | |
--------------------- | |
{ | |
"expiration": "2018-06-26T14:33:24", | |
"ref_block_num": 65294, | |
"ref_block_prefix": 4173364468, | |
"max_net_usage_words": 0, | |
"max_cpu_usage_ms": 0, | |
"delay_sec": 0, | |
"context_free_actions": [], | |
"actions": [{ | |
"account": "eosio.token", | |
"name": "transfer", | |
"authorization": [{ | |
"actor": "lucaszhang15", | |
"permission": "active" | |
} | |
], | |
"data": "50029ba67d6c908e10029ba67d6c908ee80300000000000004454f53000000000474657374" | |
} | |
], | |
"transaction_extensions": [], | |
"signatures": [ | |
"SIG_K1_Jwzjrxg5hHDxRVSsC5hMFVh69yyfhsUbyzyf2kCDZJhEcFVZiJWB5Ny11pDPvkJK37cfRrgxX6fso9WaRYv2D4utLbCST3" | |
], | |
"context_free_data": [] | |
} | |
--------------------- | |
REQUEST: | |
--------------------- | |
POST /v1/chain/push_transaction HTTP/1.0 | |
Host: localhost | |
content-length: 386 | |
Accept: */* | |
Connection: close | |
{ | |
"signatures": [ | |
"SIG_K1_Jwzjrxg5hHDxRVSsC5hMFVh69yyfhsUbyzyf2kCDZJhEcFVZiJWB5Ny11pDPvkJK37cfRrgxX6fso9WaRYv2D4utLbCST3" | |
], | |
"compression": "none", | |
"packed_context_free_data": "", | |
"packed_trx": "b44e325b0efff47cc0f8000000000100a6823403ea3055000000572d3ccdcd0150029ba67d6c908e00000000a8ed32322550029ba67d6c908e10029ba67d6c908ee80300000000000004454f5300000000047465737400" | |
} | |
--------------------- | |
RESPONSE: | |
--------------------- | |
{ | |
"transaction_id": "7621985bb461ac3148f513bf9321b20fe53165f71b39176abc6c0a5c737a21a6", | |
"processed": { | |
"id": "7621985bb461ac3148f513bf9321b20fe53165f71b39176abc6c0a5c737a21a6", | |
"receipt": { | |
"status": "executed", | |
"cpu_usage_us": 750, | |
"net_usage_words": 17 | |
}, | |
"elapsed": 750, | |
"net_usage": 136, | |
"scheduled": false, | |
"action_traces": [{ | |
"receipt": { | |
"receiver": "eosio.token", | |
"act_digest": "4c7a0c1b54337738dbd1feba0aedf632c1b171c12473494ef56d207f9d808333", | |
"global_sequence": 7278228, | |
"recv_sequence": 938342, | |
"auth_sequence": [[ | |
"lucaszhang15", | |
38 | |
] | |
], | |
"code_sequence": 1, | |
"abi_sequence": 1 | |
}, | |
"act": { | |
"account": "eosio.token", | |
"name": "transfer", | |
"authorization": [{ | |
"actor": "lucaszhang15", | |
"permission": "active" | |
} | |
], | |
"data": { | |
"from": "lucaszhang15", | |
"to": "lucaszhang11", | |
"quantity": "0.1000 EOS", | |
"memo": "test" | |
}, | |
"hex_data": "50029ba67d6c908e10029ba67d6c908ee80300000000000004454f53000000000474657374" | |
}, | |
"elapsed": 458, | |
"cpu_usage": 0, | |
"console": "", | |
"total_cpu_usage": 0, | |
"trx_id": "7621985bb461ac3148f513bf9321b20fe53165f71b39176abc6c0a5c737a21a6", | |
"inline_traces": [{ | |
"receipt": { | |
"receiver": "lucaszhang15", | |
"act_digest": "4c7a0c1b54337738dbd1feba0aedf632c1b171c12473494ef56d207f9d808333", | |
"global_sequence": 7278229, | |
"recv_sequence": 12, | |
"auth_sequence": [[ | |
"lucaszhang15", | |
39 | |
] | |
], | |
"code_sequence": 1, | |
"abi_sequence": 1 | |
}, | |
"act": { | |
"account": "eosio.token", | |
"name": "transfer", | |
"authorization": [{ | |
"actor": "lucaszhang15", | |
"permission": "active" | |
} | |
], | |
"data": { | |
"from": "lucaszhang15", | |
"to": "lucaszhang11", [15/2000] | |
"quantity": "0.1000 EOS", | |
"memo": "test" | |
}, | |
"hex_data": "50029ba67d6c908e10029ba67d6c908ee80300000000000004454f53000000000474657374" | |
}, | |
"elapsed": 4, | |
"cpu_usage": 0, | |
"console": "", | |
"total_cpu_usage": 0, | |
"trx_id": "7621985bb461ac3148f513bf9321b20fe53165f71b39176abc6c0a5c737a21a6", | |
"inline_traces": [] | |
},{ | |
"receipt": { | |
"receiver": "lucaszhang11", | |
"act_digest": "4c7a0c1b54337738dbd1feba0aedf632c1b171c12473494ef56d207f9d808333", | |
"global_sequence": 7278230, | |
"recv_sequence": 1, | |
"auth_sequence": [[ | |
"lucaszhang15", | |
40 | |
] | |
], | |
"code_sequence": 1, | |
"abi_sequence": 1 | |
}, | |
"act": { | |
"account": "eosio.token", | |
"name": "transfer", | |
"authorization": [{ | |
"actor": "lucaszhang15", | |
"permission": "active" | |
} | |
], | |
"data": { | |
"from": "lucaszhang15", | |
"to": "lucaszhang11", | |
"quantity": "0.1000 EOS", | |
"memo": "test" | |
}, | |
"hex_data": "50029ba67d6c908e10029ba67d6c908ee80300000000000004454f53000000000474657374" | |
}, | |
"elapsed": 7, | |
"cpu_usage": 0, | |
"console": "", | |
"total_cpu_usage": 0, | |
"trx_id": "7621985bb461ac3148f513bf9321b20fe53165f71b39176abc6c0a5c737a21a6", | |
"inline_traces": [] | |
} | |
] | |
} | |
], | |
"except": null | |
} | |
} | |
--------------------- | |
executed transaction: 7621985bb461ac3148f513bf9321b20fe53165f71b39176abc6c0a5c737a21a6 136 bytes 750 us | |
# eosio.token <= eosio.token::transfer {"from":"lucaszhang15","to":"lucaszhang11","quantity":"0.1000 EOS","memo":"test"} | |
# lucaszhang15 <= eosio.token::transfer {"from":"lucaszhang15","to":"lucaszhang11","quantity":"0.1000 EOS","memo":"test"} | |
# lucaszhang11 <= eosio.token::transfer {"from":"lucaszhang15","to":"lucaszhang11","quantity":"0.1000 EOS","memo":"test"} | |
warning: transaction executed locally, but may not be confirmed by the network yet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment