Back

[**] - 记录一次转账失败.(太巧了吧!过于灵异了)

发布时间: 2018-10-16 01:54:00

该bug 记录在:https://github.com/paritytech/parity-ethereum/issues/9747

失败的第一步, 
curl http://10.146.0.2:8800 -X POST -H 'Content-type: application/json' --data '{"jsonrpc":"2.0", "method":"personal_unlockAccount", "params":["0x84f6fd74d23f6a63ec9276bacb68fec5465ab1eb", "v+5H1(mGZUk+b@3T%xgaYH176BnV7Ka0*9#asdfsadfwn8A@LEV%@9N&8eT0eakTMuGqu4CU", null], "id":0}' 

失败的第二部: 
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0", "method":"eth_sendTransaction", "params":[{"from": "0x84f6fd74d23f6a63ec9276bacb68fec5465ab1eb", "to":"0x925ccd95f17640be707c4c8ae713177dfc91ce7e", "gas": "0x15f90", "gasPrice": "0xdf8475800", "value": "0x6ccd46763f10000" }], "id": 0}' http://10.146.0.2:8800 

试试这个呢?

成功的第一步:
curl http://10.146.0.2:8800 -X POST -H 'Content-type: application/json' --data '{"jsonrpc":"2.0", "method":"personal_unlockAccount", "params":["0x925ccd95f17640be707c4c8ae713177dfc91ce7e", "password", null], "id":0}'

成功的第二部:
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0", "method":"eth_sendTransaction", "params":[{"from": "0x925ccd95f17640be707c4c8ae713177dfc91ce7e", "to":"0x8f5ae589fd2467396c8b25559637dbf5c4401464", "gas": "0x15f90", "gasPrice": "0x9502f9000", "value": "0x1b4fbd92b5f8000" }], "id": 0}' http://10.146.0.2:8800

# 使用 personal_sendTransaction ?
curl --data '{"method":"personal_sendTransaction","params":[{"from":"0x925ccd95f17640be707c4c8ae713177dfc91ce7e","to":"0x8f5ae589fd2467396c8b25559637dbf5c4401464","data":"0x41cd5add4fd13aedd64521e363ea279923575ff39718065d38bd46f0e6632e8e","value":"0x186a0"},"hunter2"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

#  新方法, 可以
curl --data '{"method":"personal_sendTransaction","params":[{"from":"0x925ccd95f17640be707c4c8ae713177dfc91ce7e","to":"0x8f5ae589fd2467396c8b25559637dbf5c4401464","data":"0x41cd5add4fd13aedd64521e363ea279923575ff39718065d38bd46f0e6632e8e","value":"0x4a9b6384488000","gas":"0x15f90","gasPrice": "0x9502f9000"},"password"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST http://10.146.0.2:8800

#  新方法, 可以 , ce7e账户
curl --data '{"method":"personal_sendTransaction","params":[{"from":"0x925ccd95f17640be707c4c8ae713177dfc91ce7e","to":"0x8f5ae589fd2467396c8b25559637dbf5c4401464","data":"0x41cd5add4fd13aedd64521e363ea279923575ff39718065d38bd46f0e6632e8e","value":"0x4e28e2290f0000","gas":"0x15f90","gasPrice": "0x9502f9000"},"password"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST http://10.146.0.2:8800

#  新方法, 失败, 问题账户
curl --data '{"method":"personal_sendTransaction","params":[{"from":"0x84f6fd74d23f6a63ec9276bacb68fec5465ab1eb","to":"0x8f5ae589fd2467396c8b25559637dbf5c4401464","data":"0x41cd5add4fd13aedd64521e363ea279923575ff39718065d38bd46f0e6632e8e","value":"0x4e28e2290f0000","gas":"0x15f90","gasPrice": "0x9502f9000"},"v+5H1(mGZUk+b@3T%xgaYH176BnV7Ka0*9#wn8A@LEV%@9T0eakTMuGqu4CU"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST http://10.146.0.2:8800

# 新方法, 测试一下. 
curl --data '{"method":"personal_sendTransaction","params":[{"from":"0x475def6930ced01053dac4b572932eda12c849d1","to":"0x8f5ae589fd2467396c8b25559637dbf5c4401464","data":"0x41cd5add4fd13aedd64521e363ea279923575ff39718065d38bd46f0e6632e8e","value":"0x4e28e2290f0000","gas":"0x15f90","gasPrice": "0x9502f9000"},"bR%f#!vnrNK0!Fb*c?x@IRvYNyRe%J&lUW$6hKkDh%g%/RN$cPSl5VT65kntS"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST http://10.146.0.2:8800

Back