API getTransaction
ํธ๋์ญ์
ํด์ฌ๋ก ๊ฐ์ ์์ฒญํ๋ฉด ํด๋น ํธ๋์ญ์
์ ๋ณด๋ฅผ ์ ์ ์์ต๋๋ค.
๊ฒฐ๊ณผ๊ฐ result.confirmations
์ผ๋ก ํธ๋์ญ์
pending์ฌ๋ถ๋ ์ ์ ์์ต๋๋ค.
์์ฒญ ์ฃผ์
POST http://{url}/getTransaction
Request
Parameter | Type | Description |
---|---|---|
Tx | string | Transaction ์ฃผ์ |
Example
{"Tx": "0x1a2s3d..."}
Response
Example
์๋ ์์ ๋result.confirmations
์ ์ ๋ณด๊ฐ 1์ด์์ด๋ฏ๋ก ์ฒด๊ฒฐ๋ ํธ๋์ญ์ ์ ๋๋ค.ํด๋น ํธ๋์ญ์ ์ ์ ๋ณด๋ฅผ ๋ฐํํฉ๋๋ค.
result.confirmations
์ ์ ๋ณด๊ฐ 0์ด๋ฉด ํด๋น ํธ๋์ญ์ ์ด pending, 1์ด์์ด๋ฉด ํธ๋์ญ์ ์ด ์ฒด๊ฒฐ ๋ ๊ฒ์ ๋๋ค.{"result": {"hash": "0x4d929e41cc864d6bf398fb97e8b30f5da30360c84388278fa652d7d5596a458c","type": 2,"accessList": [],"blockHash": "0x95fc80b6f4ca4e7f238907ada62d405d1862667e2ac4fe976467bd85462e7692","blockNumber": 27289041,"transactionIndex": 9,"confirmations": 14,"from": "0x3af0A1d2c053ca2e6072015EdB44Bc57db63a9c6","gasPrice": {"type": "BigNumber","hex": "0x0722da9e54"},"maxPriorityFeePerGas": {"type": "BigNumber","hex": "0x0722da9e54"},"maxFeePerGas": {"type": "BigNumber","hex": "0x0722da9e54"},"gasLimit": {"type": "BigNumber","hex": "0x0493e0"},"to": "0xCeca5dE7bbB16C951D6c8F7A70ac7caA9E8d34af","value": {"type": "BigNumber","hex": "0x00"},"nonce": 96,"data": "0xa9059cbb0000000000000000000000006053858641cc482ba3cf07a4ce94c6cd4af564730000000000000000000000000000000000000000000000000de0b6b3a7640000","r": "0xb1235afb0b3556e65ff3d68a11b2ef856ae05adeb8ef31619d746b8a3b8e9d16","s": "0x70e58fbb0de9a97bc279ac4c748ae3240e354d3ae65132b484f909a2da698459","v": 1,"creates": null,"chainId": 80001}}