Created
December 4, 2018 23:10
-
-
Save andrewgordstewart/5186dd8731e3f218746592bb6efc53be to your computer and use it in GitHub Desktop.
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
eth_gasPrice | |
> { | |
> "method": "eth_gasPrice", | |
> "params": [], | |
> "id": 42, | |
> "jsonrpc": "2.0" | |
> } | |
eth_getTransactionCount | |
> { | |
> "method": "eth_getTransactionCount", | |
> "params": [ | |
> "0x5409ed021d9299bf6814279a6a1411a7e866a631", | |
> "latest" | |
> ], | |
> "id": 42, | |
> "jsonrpc": "2.0" | |
> } | |
eth_gasPrice | |
> { | |
> "method": "eth_gasPrice", | |
> "params": [], | |
> "id": 42, | |
> "jsonrpc": "2.0" | |
> } | |
eth_getTransactionCount | |
> { | |
> "method": "eth_getTransactionCount", | |
> "params": [ | |
> "0x5409ed021d9299bf6814279a6a1411a7e866a631", | |
> "latest" | |
> ], | |
> "id": 42, | |
> "jsonrpc": "2.0" | |
> } | |
< { | |
< "id": 42, | |
< "jsonrpc": "2.0", | |
< "result": "0x77359400" | |
< } | |
< { | |
< "id": 42, | |
< "jsonrpc": "2.0", | |
< "result": "0x30d" | |
< } | |
< { | |
< "id": 42, | |
< "jsonrpc": "2.0", | |
< "result": "0x77359400" | |
< } | |
< { | |
< "id": 42, | |
< "jsonrpc": "2.0", | |
< "result": "0x30d" | |
< } | |
eth_sendRawTransaction | |
> { | |
> "method": "eth_sendRawTransaction", | |
> "params": [ | |
> "0xf9015182030d8477359400832dc6c09457725558fb980633ea3b6222855586683828747a80b8e429c840b40000000000000000000000006ecbe1db9ef729cbe972c83fb886247691fb6beb000000000000000000000000eb2d1506b1228a1f99995fcef2e5abeb3ca2713400000000000000000000000000000000000000000000000000000000000000fff9550ac0d1a44e14df814afdd11c1c6ee979118e74cf76ac95e9ae2d05fde672000000000000000000000000000000000000000000000000000000000000001b1440ef12fed7db0afe1a5f0102315d4cb4d5f8f67a3c9b5ad72486ef3eb97797115a500611b68b3484b8ca0e78959c6eb88bc15ee9d241684dc496ce5e823cc68602cef47f0834a0e3607319024daab22d670b6dd5b41ec766b28d06e05503cee6aecd6a404473ffa050fb53cc7488d96c59ee7888bdfa1606d91253ca671537be8958262c41830497" | |
> ], | |
> "id": 42, | |
> "jsonrpc": "2.0" | |
> } | |
eth_estimateGas | |
> { | |
> "method": "eth_estimateGas", | |
> "params": [ | |
> { | |
> "gasPrice": "0x77359400", | |
> "from": "0x5409ED021D9299bf6814279A6A1411A7e866A631", | |
> "data": "0x608060405234801561001057600080fd5b50610527806100206000396000f3fe6080604052600436106100565763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166329c840b4811461005b57806347e7ef241461007057806352a9039c14610083575b600080fd5b61006e6100693660046102bb565b6100b9565b005b61006e61007e366004610357565b6101f0565b34801561008f57600080fd5b506100a361009e366004610295565b610258565b6040516100b091906104b2565b60405180910390f35b73ffffffffffffffffffffffffffffffffffffffff8716600090815260208190526040902054851115610121576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610118906104a2565b60405180910390fd5b6040805160008152602080820180845287905260ff8616828401526060820185905260808201849052915173ffffffffffffffffffffffffffffffffffffffff8a169260019260a080820193601f1981019281900390910190855afa15801561018e573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff161415156101e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161011890610492565b50505050505050565b348114610229576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101189061047c565b73ffffffffffffffffffffffffffffffffffffffff909116600090815260208190526040902080549091019055565b60006020819052908152604090205481565b600061027682356104dc565b9392505050565b600061027682356104d9565b600061027682356104e7565b6000602082840312156102a757600080fd5b60006102b3848461026a565b949350505050565b600080600080600080600060e0888a0312156102d657600080fd5b60006102e28a8a61026a565b97505060206102f38a828b0161026a565b96505060406103048a828b0161027d565b95505060606103158a828b0161027d565b94505060806103268a828b01610289565b93505060a06103378a828b0161027d565b92505060c06103488a828b0161027d565b91505092959891949750929550565b6000806040838503121561036a57600080fd5b6000610376858561026a565b92505060206103878582860161027d565b9150509250929050565b602381527f6465706f73697420616d6f756e74206d757374206d61746368206d73672e766160208201527f6c75650000000000000000000000000000000000000000000000000000000000604082015260600190565b602b81527f57697468647261773a206e6f7420617574686f72697a65642062792066726f6d60208201527f5061727469636970616e74000000000000000000000000000000000000000000604082015260600190565b601381527f57697468647261773a206f766572647261776e00000000000000000000000000602082015260400190565b610476816104d9565b82525050565b6020808252810161048c81610391565b92915050565b6020808252810161048c816103e7565b6020808252810161048c8161043d565b6020810161048c828461046d565b73ffffffffffffffffffffffffffffffffffffffff1690565b90565b600061048c826104c0565b60ff169056fea265627a7a723058207af5ca5e7f57d49455198a0ce70f5ea538c37e9ad94584b812d212eab2613eb56c6578706572696d656e74616cf50037" | |
> } | |
> ], | |
> "id": 42, | |
> "jsonrpc": "2.0" | |
> } | |
< { | |
< "id": 42, | |
< "jsonrpc": "2.0", | |
< "result": "0xb4c7ca0e721125cd3a4d22fe2a44e72d5c3d099d4ba8fc8e15e170fca9bb1ef9", | |
< "error": { | |
< "message": "VM Exception while processing transaction: revert Withdraw: not authorized by fromParticipant", | |
< "code": -32000, | |
< "data": { | |
< "0xb4c7ca0e721125cd3a4d22fe2a44e72d5c3d099d4ba8fc8e15e170fca9bb1ef9": { | |
< "error": "revert", | |
< "program_counter": 289, | |
< "return": "0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002b57697468647261773a206e6f7420617574686f72697a65642062792066726f6d5061727469636970616e74000000000000000000000000000000000000000000", | |
< "reason": "Withdraw: not authorized by fromParticipant" | |
< }, | |
< "stack": "i: VM Exception while processing transaction: revert Withdraw: not authorized by fromParticipant\n at Function.i.fromResults (/Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/lib/utils/runtimeerror.js:91:1)\n at /Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/lib/blockchain_double.js:539:1\n at /Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/async/internal/once.js:12:1\n at p (/Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/async/internal/eachOfLimit.js:61:1)\n at /Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/async/internal/eachOfLimit.js:71:1\n at a.default (/Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/async/eachLimit.js:43:1)\n at /Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/async/internal/doLimit.js:9:1\n at v.r.emit (/Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/async-eventemitter/lib/AsyncEventEmitter.js:42:1)\n at /Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/ethereumjs-vm/dist/runBlock.js:52:1\n at /Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/ethereumjs-vm/dist/runBlock.js:174:1\n at /Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/ethereumjs-vm/dist/cache.js:110:1\n at /Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/async/dist/async.js:473:1\n at d (/Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/async/dist/async.js:1006:1)\n at /Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/async/dist/async.js:1016:1\n at Da (/Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/async/dist/async.js:3196:1)\n at Object.<anonymous> (/Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/async/dist/async.js:1046:1)\n at /Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/ethereumjs-vm/dist/cache.js:106:1\n at /Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/async/dist/async.js:969:1\n at n (/Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/async/dist/async.js:5225:1)\n at /Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/ethereumjs-vm/dist/cache.js:103:1\n at n (/Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/async/dist/async.js:5223:1)\n at /Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/ethereumjs-vm/dist/cache.js:103:1", | |
< "name": "i" | |
< } | |
< } | |
< } | |
Transaction: 0xb4c7ca0e721125cd3a4d22fe2a44e72d5c3d099d4ba8fc8e15e170fca9bb1ef9 | |
Gas usage: 36408 | |
Block Number: 782 | |
Block Time: Tue Dec 04 2018 14:09:37 GMT-0700 (Mountain Standard Time) | |
Runtime Error: revert | |
< { | |
< "id": 42, | |
< "jsonrpc": "2.0", | |
< "result": "0x6068e" | |
< } | |
eth_sendRawTransaction | |
> { | |
> "method": "eth_sendRawTransaction", | |
> "params": [ | |
> "0xf905a182030d84773594008306068e8080b90547608060405234801561001057600080fd5b50610527806100206000396000f3fe6080604052600436106100565763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166329c840b4811461005b57806347e7ef241461007057806352a9039c14610083575b600080fd5b61006e6100693660046102bb565b6100b9565b005b61006e61007e366004610357565b6101f0565b34801561008f57600080fd5b506100a361009e366004610295565b610258565b6040516100b091906104b2565b60405180910390f35b73ffffffffffffffffffffffffffffffffffffffff8716600090815260208190526040902054851115610121576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610118906104a2565b60405180910390fd5b6040805160008152602080820180845287905260ff8616828401526060820185905260808201849052915173ffffffffffffffffffffffffffffffffffffffff8a169260019260a080820193601f1981019281900390910190855afa15801561018e573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff161415156101e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161011890610492565b50505050505050565b348114610229576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101189061047c565b73ffffffffffffffffffffffffffffffffffffffff909116600090815260208190526040902080549091019055565b60006020819052908152604090205481565b600061027682356104dc565b9392505050565b600061027682356104d9565b600061027682356104e7565b6000602082840312156102a757600080fd5b60006102b3848461026a565b949350505050565b600080600080600080600060e0888a0312156102d657600080fd5b60006102e28a8a61026a565b97505060206102f38a828b0161026a565b96505060406103048a828b0161027d565b95505060606103158a828b0161027d565b94505060806103268a828b01610289565b93505060a06103378a828b0161027d565b92505060c06103488a828b0161027d565b91505092959891949750929550565b6000806040838503121561036a57600080fd5b6000610376858561026a565b92505060206103878582860161027d565b9150509250929050565b602381527f6465706f73697420616d6f756e74206d757374206d61746368206d73672e766160208201527f6c75650000000000000000000000000000000000000000000000000000000000604082015260600190565b602b81527f57697468647261773a206e6f7420617574686f72697a65642062792066726f6d60208201527f5061727469636970616e74000000000000000000000000000000000000000000604082015260600190565b601381527f57697468647261773a206f766572647261776e00000000000000000000000000602082015260400190565b610476816104d9565b82525050565b6020808252810161048c81610391565b92915050565b6020808252810161048c816103e7565b6020808252810161048c8161043d565b6020810161048c828461046d565b73ffffffffffffffffffffffffffffffffffffffff1690565b90565b600061048c826104c0565b60ff169056fea265627a7a723058207af5ca5e7f57d49455198a0ce70f5ea538c37e9ad94584b812d212eab2613eb56c6578706572696d656e74616cf500378602cef47f0833a0883ccce2653e772b9903d8f3444f8f19bb5ea4bbb5989e9fdc83540eb8f27b02a044eb6e3c8ad772b3621be6867506c33fe4fbf880e6d4cb27dd0963291815db18" | |
> ], | |
> "id": 42, | |
> "jsonrpc": "2.0" | |
> } | |
< { | |
< "id": 42, | |
< "jsonrpc": "2.0", | |
< "error": { | |
< "message": "the tx doesn't have the correct nonce. account has nonce of: 782 tx has nonce of: 781", | |
< "code": -32000, | |
< "data": { | |
< "stack": "r: the tx doesn't have the correct nonce. account has nonce of: 782 tx has nonce of: 781\n at r.blockchain.getQueuedNonce (/Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/lib/statemanager.js:875:1)\n at /Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/lib/blockchain_double.js:379:1\n at /Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/merkle-patricia-tree/baseTrie.js:77:1\n at /Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/merkle-patricia-tree/baseTrie.js:461:1\n at Object.return (/Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/merkle-patricia-tree/baseTrie.js:485:1)\n at /Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/merkle-patricia-tree/baseTrie.js:285:1\n at e (/Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/merkle-patricia-tree/baseTrie.js:521:1)\n at /Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/merkle-patricia-tree/baseTrie.js:516:1\n at /Users/andrewstewart/Code/magmo/devtools/node_modules/ganache-cli/build/webpack:/ganache/node_modules/ganache-core/node_modules/merkle-patricia-tree/baseTrie.js:180:1\n at process.internalTickCallback (internal/process/next_tick.js:70:11)", | |
< "name": "r" | |
< } | |
< } | |
< } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment