Created
February 18, 2020 17:36
-
-
Save thejohnfreeman/5a0448802553df4392cc2c88f09d48ec 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
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
File "/home/jfreeman/code/xpring-py/xpring/client.py", line 108, in send | |
self.submit(signed_transaction) | |
File "/home/jfreeman/code/xpring-py/xpring/client.py", line 88, in submit | |
self.grpc_client.SubmitSignedTransaction(request) | |
File "/home/jfreeman/code/xpring-py/.venv/lib/python3.7/site-packages/grpc/_channel.py", line 826, in __call__ | |
return _end_unary_response_blocking(state, call, False, None) | |
File "/home/jfreeman/code/xpring-py/.venv/lib/python3.7/site-packages/grpc/_channel.py", line 729, in _end_unary_response_blocking | |
raise _InactiveRpcError(state) | |
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with: | |
status = StatusCode.UNKNOWN | |
details = "invalidTransaction" | |
debug_error_string = "{"created":"@1582047022.336645151","description":"Error received from peer ipv4:34.70.105.194:80","file":"src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"invalidTransaction","grpc_status":2}" | |
> |
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
import xpring | |
seed = 'ss5mwZhHGKSqDz3xvXD7Uo3wCr52V' | |
wallet = xpring.Wallet.from_seed(seed) | |
url = 'grpc.xpring.tech:80' | |
client = xpring.Client.from_url(url) | |
destination = 'rwvRYZsF7vRQHgJ9LgtoAdSP4X4sjaPoAJ' | |
client.send(wallet, destination, 10) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how the transaction is constructed: https://github.com/thejohnfreeman/xpring-py/blob/972c91686856421ea266e964d7132cf405a9485f/xpring/client.py#L61-L109