Python Mass Transactions Nonce

Viewed 10

currently am using web3.py to send transactions in python which has led to some problems

web3 = Web3(Web3.HTTPProvider("https://mainnet.infura.io/v3/xxx"))
PA=web3.eth.account.from_key(private_key)
nonce = web3.eth.get_transaction_count(PA.address,'pending')

Code above gets nonce that is supposed to include pending transaction, which it doesnt, also yea i know i can just increment it manually and i do that, the issue is that this can be running like 2 threads at same time so i cant really manage it.

Is there any external wallet i can use for this ? instead of loading pk to web3 just use local api of that wallet or smt ?

Or maybe a node that shows pending transactions instantly after u submit em ?

Anything appreciated.

0 Answers
Related