API getTransaction

ํŠธ๋žœ์žญ์…˜ ํ•ด์‰ฌ๋กœ ๊ฐ’์„ ์š”์ฒญํ•˜๋ฉด ํ•ด๋‹น ํŠธ๋žœ์žญ์…˜ ์ •๋ณด๋ฅผ ์•Œ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
๊ฒฐ๊ณผ๊ฐ’ result.confirmations์œผ๋กœ ํŠธ๋žœ์žญ์…˜ pending์—ฌ๋ถ€๋„ ์•Œ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์š”์ฒญ ์ฃผ์†Œ

POST http://{url}/getTransaction

Request

ParameterTypeDescription
TxstringTransaction ์ฃผ์†Œ
  • 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
    }
    }