What Should I Do If a FeeDelegationTransaction Error Occurs?
Hello. This is Klaytn API Service team.
Please refer to the following information regarding an FDTx error.
When making a FeeDelegationTransaction (FDTx) through KAS Wallet API, the following error may occur intermittently.
(body={‘code’: 1065001, ‘message’: ‘failed to send a raw transaction to klaytn node; -32000::there is another tx which has the same nonce in the tx pool’, ‘requestId’: ‘a5cff3d7-da12-4e52-bc24-95a69972302e’})args: url: https://wallet-api.klaytnapi.com/v2/tx/fd/value 2, method: POST, kwargs: {‘headers’: {‘Content-Type’: ‘application/json’, ‘x-chain-id’: ‘8217’}, ‘auth’: <requests.auth.HTTPBasicAuth object at 0x7f08ed83d908>, ‘data’: '{“from” … (trunacted)
The 400 response that occurred in the example above returned the message "there is another tx which has the same nonce in the tx pool", so you may assume that an error occurred regarding the nonce value.
This error can occur when transactions are flowing in too quickly. Currently, the automatic nonce functionality provided by the Wallet API is used based on the last successful nonce of the Klaytn account, so it limits any unprocessed transactions that have the same nonce. Hence for now, if you want to make transactions quickly, you can do so by manually managing the nonce.
For additional inquiries, click on Inquiry Registration at the top of the KAS Help Center page if you are using a paid plan, or leave a post on the KAS community if you are using a free plan.
Thank you.
Klaytn API Service team.