트랜잭션
getTransaction
트랜잭션 ID의 트랜잭션 raw데이터를 반환합니다.
Parameters
Return Value
Transaction raw data
Example
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"resultCode": "200",
"resultMessage": "Success",
"resultData": {
"txId": "0x886e679c77b3cbe513fe9fa31856c14f7b9085eaa054d07111f081739b0e4235",
"blockNumber": 10416,
"rawData": "{\"hash\":\"0x886e679c77b3cbe513fe9fa31856c14f7b90...",\"nonceRaw\":\"0x0\"}",
"txType": "transfer",
"method": "Transfer",
"fromAddress": "0x12f57af0a78bcb8ef7ad657a91a0e4912f149046",
"toAddress": "0x76d0e3dbd6a58e017e22fd06ef5a7b1539a49106",
"value": "0xd3c21bcecceda1000000",
"input": "0x00",
"txTime": "2022-04-11T09:16:17",
"status": 1,
"revertReason": "",
"gasValue": "21004000"
}
}
}
getTransactionInfo
트랜잭션 ID의 데이터베이스에 저장된 트랜잭션 raw 데이터를 반환합니다.
Parameters
Return Value
데이터베이스에 저장된 트랜잭션 raw 데이터.
Example
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"resultCode": "200",
"resultMessage": "Success",
"resultData": {
"txId": "0x886e679c77b3cbe513fe9fa31856c14f7b9085eaa054d07111f081739b0e4235",
"blockNumber": 10416,
"rawData": "{\"hash\":\"0x886e679c77b3cbe513fe9fa31856c14f7b90...",\"nonceRaw\":\"0x0\"}",
"txType": "transfer",
"method": "Transfer",
"fromAddress": "0x12f57af0a78bcb8ef7ad657a91a0e4912f149046",
"toAddress": "0x76d0e3dbd6a58e017e22fd06ef5a7b1539a49106",
"value": "0xd3c21bcecceda1000000",
"input": "0x00",
"txTime": "2022-04-11T09:16:17",
"status": 1,
"revertReason": "",
"gasValue": "21004000"
}
}
}
getTransactionCount
지난 15일 동안의 일별 생성 목록을 반환합니다
Parameters
None
Return Value
count of per day data
Example
{
"jsonrpc": "2.0",
"id": "00456",
"result": {
"resultCode": "200",
"resultMessage": "Success",
"resultData": {
"totalCount": 14914,
"list": [
{
"date": "1116",
"count": 0
},
...
{
"date": "1130",
"count": 0
}
]
}
}
}
getTransactionList
페이지 단위의 트랜잭션 정보 목록을 반환합니다.
Parameters
Return Value
Example
{
"jsonrpc": "2.0",
"id": "00456",
"result": {
"pageNumber": 1,
"pageSize": 10,
"totalPages": 6,
"totalElements": 54,
"list": [
{
"txId": "0x886e679c77b3cbe513fe9fa31856c14f7b9085eaa054d07111f081739b0e4235",
"blockNumber": 10416,
"rawData": "{\"hash\":\"0x886e679c77b3cbe513fe9fa31856c14f7b90...",\"nonceRaw\":\"0x0\"}",
"txType": "transfer",
"method": "Transfer",
"fromAddress": "0x12f57af0a78bcb8ef7ad657a91a0e4912f149046",
"toAddress": "0x76d0e3dbd6a58e017e22fd06ef5a7b1539a49106",
"value": "0xd3c21bcecceda1000000",
"input": "0x00",
"txTime": "2022-04-11T09:16:17",
"status": 1,
"revertReason": "",
"gasValue": "21004000"
},
...
]
}
}
getTransactionRecentList
트랜잭션 정보에서 요청 개수만큼 최신 목록을 반환합니다.
Parameters
Return Value
Example
{
"jsonrpc": "2.0",
"id": "00456",
"result": {
"pageNumber": 1,
"pageSize": 10,
"totalPages": 1,
"totalElements": 10,
"list": [
{
"txId": "0x886e679c77b3cbe513fe9fa31856c14f7b9085eaa054d07111f081739b0e4235",
"blockNumber": 10416,
"rawData": "{\"hash\":\"0x886e679c77b3cbe513fe9fa31856c14f7b90...",\"nonceRaw\":\"0x0\"}",
"txType": "transfer",
"method": "Transfer",
"fromAddress": "0x12f57af0a78bcb8ef7ad657a91a0e4912f149046",
"toAddress": "0x76d0e3dbd6a58e017e22fd06ef5a7b1539a49106",
"value": "0xd3c21bcecceda1000000",
"input": "0x00",
"txTime": "2022-04-11T09:16:17",
"status": 1,
"revertReason": "",
"gasValue": "21004000"
},
...
]
}
}
Last updated