Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

binascii.Error: Non-hexadecimal digit found #3

Open
rajatahujaatinmobi opened this issue Nov 18, 2021 · 0 comments
Open

binascii.Error: Non-hexadecimal digit found #3

rajatahujaatinmobi opened this issue Nov 18, 2021 · 0 comments

Comments

@rajatahujaatinmobi
Copy link

So when i try to run your scripts on my laptop
It gives this error. can you suggest how can i fix it ?
True
{"args": {"token0": "0xB690CCE5cAAB6dE576609A5801B94178aE40A99d", "token1": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c", "pair": "0x6f10e8818b7F07e864dC8bF82ca72CD3644E2382", "": 554595}, "event": "PairCreated", "logIndex": 406, "transactionIndex": 96, "transactionHash": "0x62719ae1f4fa5dc1f59d64107e2a3afcea630a73072876144e443f8e5a110837", "address": "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73", "blockHash": "0x470d6a54835992a4737f63e85421464da71325542af3a05e87cbc1186b9c1a2f", "blockNumber": 12745866}
Token0: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"
Token1: "0xB690CCE5cAAB6dE576609A5801B94178aE40A99d"
next pair
here
Traceback (most recent call last):
File "sniper.py", line 123, in
main()
File "sniper.py", line 112, in main
loop.run_until_complete(
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "sniper.py", line 98, in log_loop
handle_event(PairCreated)
File "sniper.py", line 89, in handle_event
buy()
File "sniper.py", line 50, in buy
signed_txn = web3.eth.account.sign_transaction(pancakeswap2_txn, 'tuition humble gun budget equal collect polar rally virus warfare fix tennis')
File "/Users/rahuja/Library/Python/3.8/lib/python/site-packages/eth_utils/decorators.py", line 18, in _wrapper
return self.method(obj, *args, **kwargs)
File "/Users/rahuja/Library/Python/3.8/lib/python/site-packages/eth_account/account.py", line 727, in sign_transaction
account = self.from_key(private_key)
File "/Users/rahuja/Library/Python/3.8/lib/python/site-packages/eth_utils/decorators.py", line 18, in _wrapper
return self.method(obj, *args, **kwargs)
File "/Users/rahuja/Library/Python/3.8/lib/python/site-packages/eth_account/account.py", line 250, in from_key
key = self._parsePrivateKey(private_key)
File "/Users/rahuja/Library/Python/3.8/lib/python/site-packages/eth_utils/decorators.py", line 18, in _wrapper
return self.method(obj, *args, **kwargs)
File "/Users/rahuja/Library/Python/3.8/lib/python/site-packages/eth_account/account.py", line 774, in _parsePrivateKey
return self._keys.PrivateKey(HexBytes(key))
File "/Users/rahuja/Library/Python/3.8/lib/python/site-packages/hexbytes/main.py", line 23, in new
bytesval = to_bytes(val)
File "/Users/rahuja/Library/Python/3.8/lib/python/site-packages/hexbytes/_utils.py", line 17, in to_bytes
return hexstr_to_bytes(val)
File "/Users/rahuja/Library/Python/3.8/lib/python/site-packages/hexbytes/_utils.py", line 50, in hexstr_to_bytes
return binascii.unhexlify(ascii_hex)
binascii.Error: Non-hexadecimal digit found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant