-
Notifications
You must be signed in to change notification settings - Fork 12
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
Issue while transfering Native Matic token (Status Pending - This txn hash was found in our secondary node and should be picked up by our indexer in a short while) #5
Comments
Your transaction is in pending state, it might be due to low gas or wrong nonce. Try sending the tx with higher gas fee. |
@ujjwalgupta94 is there a way to estimate gas price using maticjs api ? Ethers.js has a way to do it which resolved the issue - https://docs.ethers.io/v5/api/providers/provider/#Provider-estimateGas |
@savannahar68 from the ether docs -
|
@ujjwalgupta94 that's right |
yes that is already calculated for each transaction, you can see for yourself by using like this -
this is how the result will look like -
The |
I'm running transfer_matic.js code given in example dir of this repository to transfer Native Matic token from one account to other account. Whenever I run the code the transaction is successful but the Matic is not transferred, and this is what I see on polygonscan
transaction hash - 0xcacf05fbcc7b32817e4ddc5c6cf6f19e9fdbb13a56826e6784b73a1f1e4e7bc5
I'm doing this on
network - testnet
version - mumbai
From Private key -
From address - https://mumbai.polygonscan.com/address/0x89A7D20d87146c36dfD72cB0B85C728E0C57E778
To address - https://mumbai.polygonscan.com/address/0xde55899b7f9091ef0db6ffd38ddd976493e17092
Root RPC - Goreli RPC
Child RPC - MATIC mumbai RPC
Have tried
multiple RPC and wallet key
combination and the RPC and wallet are on testnet (mumbai). I've also tried withmultiple Gas Limit
starting from the highest which gives error for high txn fees than cap, till low, getting same error for all the combinations.I've enough MATIC in my wallet. (Do i also need ETH in my wallet ?)
@ujjwalgupta94 can you help here. Have been scratching my head since 2 days on this issue.
Let me know if you need any other information which will help in resolving the issue.
The text was updated successfully, but these errors were encountered: