안녕하세요. 클레이튼에서 일반 송금을 진행하는데 궁금한게 있어 문의 남깁니다.
가스를 21000으로 주면 가스가 부족하다는 에러를 KAS 노드에서 전달합니다.
구체적으로 이런 값들입니다.
“Transaction ran out of gas. Please provide more gas:
{
“blockHash”: “0x82485ec07c6320a39554bdf961a42f99086df92115bccd4472e6f57adc3e58ef”,
“blockNumber”: “0x56830ef”,
“contractAddress”: null,
“from”: “0xe03e4ebdda56f8b6e59f444c1c9c3791b7172d62”,
“gas”: “0x5208”,
“gasPrice”: “0xae9f7bcc00”,
“gasUsed”: “0x5208”,
“input”: “0x”,
“logs”: [],
“logsBloom”: “0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000”,
“nonce”: “0xa”,
“senderTxHash”: “0xb1733a49a4c94c3572d9dd0098b0a8b360c0e422610d3fa51086044550cb2bb0”,
“signatures”: [
{
“V”: “0x7f5”,
“R”: “0x65dae64132ef59219898b02980beb1203dcc6207d3921ee0f39be5597815c6ec”,
“S”: “0x1685a30a26297baae13368b6ce3c113754b194af93bbef1b7504266ca11ca617”
}
],
“status”: “0x1”,
“to”: “0xa4b5c49a4b84c0ef9afc3650af2e555f70767fbe”,
“transactionHash”: “0xb1733a49a4c94c3572d9dd0098b0a8b360c0e422610d3fa51086044550cb2bb0”,
“transactionIndex”: “0x0”,
“type”: “TxTypeLegacyTransaction”,
“typeInt”: 0,
“value”: “0x5af3107a4000”
}”
가스로 21001을 주면 트랜잭션 성공하고 실제 사용한 Gas Used는 21000로 나오는데요. 이건 어떤 상황일까요?
참고로 트랜잭션을 보낼때는 caver에서 아래 api를 사용합니다.
caver.rpc.klay.sendRawTransaction(rawTx)