안녕하세요, KAS wallet API를 통해 FDTx를 보내고 있습니다.
간헐적으로
(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, method: POST, kwargs: {‘headers’: {‘Content-Type’: ‘application/json’, ‘x-chain-id’: ‘8217’}, ‘auth’: <requests.auth.HTTPBasicAuth object at 0x7f08ed83d908>, ‘data’: '{“from” … (trunacted)
아래같은 에러가 뜨는데, 이유를 알 수 있을까요?
https://refs.klaytnapi.com/ko/wallet/latest#section/Error-Codes/400:-Bad-Request
의 에러코드 1065001 는
failed to send a raw transaction to klaytn node; -32000::insufficient funds of the sender for value
failed to send a raw transaction to klaytn node; -32000::not a program account (e.g., an account having code and storage)
failed to send a raw transaction to klaytn node; -32000::nonce too low
failed to send a raw transaction to klaytn node; -32000::insufficient funds of the fee payer for gas * price
로 나와있는데,
위 400 response의 이유는 there is another tx which has the same nonce in the tx pool 라고 써있습니다.
nonce는 0 (=default) 로 보내고 있습니다.
감사합니다.