Transaction

getTransaction

Returns a transaction raw data of transaction id.

Parameters

NameTypeDescription

transactionId

String

Transaction id to get.

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

Returns a transaction raw data stored database of transaction id.

Parameters

NameTypeDescription

transactionId

String

Transaction id to get.

Return Value

Transaction raw data stored database.

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

Returns a list of creations per day for the last 15 days.

Parameters

None

Return Value

NameTypeDescription

totalCount

Long

Count transaction for the last 15 days.

list

count of per day data

count of per day data

NameTypeDescription

date

String

Date. ex) "1116"

count

Long

count of day

Example

{
    "jsonrpc": "2.0",
    "id": "00456",
    "result": {
        "resultCode": "200",
        "resultMessage": "Success",
        "resultData": {
            "totalCount": 14914,
            "list": [
                {
                    "date": "1116",
                    "count": 0
                },
                ...
                {
                    "date": "1130",
                    "count": 0
                }
            ]
        }
    }                      
}

getTransactionList

Returns the transaction information list in units of pages.

Parameters

NameTypeDescription

pageNumber

Long

Page number to get. start from 1.

pageSize

Integer

Number per page.

order

Integer

0 : Order of descending, 1 : Order of ascending

Return Value

NameTypeDescription

pageNumber

Long

pageSize

Integer

totalPages

Long

totalElements

Long

list

list of transaction info

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

Returns a list that is as recent as count from transaction information.

Parameters

NameTypeDescription

count

Integer

Number of recent count.

Return Value

NameTypeDescription

pageNumber

Long

pageSize

Integer

totalPages

Long

totalElements

Long

list

list of transaction info

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