Get Swap Transactions
GET/api/v1/swap/transactions/:swapType
PRO_PLUS [20 Credits]
Request
Path Parameters
Possible values: [Swapscanner
, _1inch
]
Swap type
Query Parameters
Account address
start-number of block-range
end-number of block-range
Possible values: >= 1
Results page you want to retrieve (1..N)
Number of records per page, min: 1, Max: 2000
Responses
- 200
OK
- */*
- Schema
- Example (from schema)
Schema
Array [
]
results
object[]
required
Possible values: [Account Update
, Fee Delegated Account Update
, Fee Delegated Account Update With Ratio
, Cancel
, Fee Delegated Cancel
, Fee Delegated Cancel With Ratio
, Smart Contract Deploy
, Fee Delegated Smart Contract Deploy
, Fee Delegated Smart Contract Deploy With Ratio
, Smart Contract Execution
, Fee Delegated Smart Contract Execution
, Fee Delegated Smart Contract Execution With Ratio
, Legacy
, Chain Data Anchoring
, Fee Delegated Chain Data Anchoring
, Fee Delegated Chain Data Anchoring With Ratio
, Value Transfer
, Fee Delegated Value Transfer
, Fee Delegated Value Transfer With Ratio
, Value Transfer Memo
, Fee Delegated Value Transfer Memo
, Fee Delegated Value Transfer Memo With Ratio
, Ethereum Access List
, Ethereum Dynamic Fee
]
Possible values: [Swapscanner
, _1inch
]
from_account
object
required
Possible values: [EOA
, SCA
, UNKNOWN
]
Possible values: [ERC20
, KIP7
, KIP17
, KIP37
, ERC721
, ERC1155
, CONSENSUS_NODE
, CUSTOM
, UNKNOWN
, UNKNOWN_
]
contract
object
to_account
object
required
Possible values: [EOA
, SCA
, UNKNOWN
]
Possible values: [ERC20
, KIP7
, KIP17
, KIP37
, ERC721
, ERC1155
, CONSENSUS_NODE
, CUSTOM
, UNKNOWN
, UNKNOWN_
]
contract
object
sender_account
object
required
Possible values: [EOA
, SCA
, UNKNOWN
]
Possible values: [ERC20
, KIP7
, KIP17
, KIP37
, ERC721
, ERC1155
, CONSENSUS_NODE
, CUSTOM
, UNKNOWN
, UNKNOWN_
]
contract
object
receiver_account
object
required
Possible values: [EOA
, SCA
, UNKNOWN
]
Possible values: [ERC20
, KIP7
, KIP17
, KIP37
, ERC721
, ERC1155
, CONSENSUS_NODE
, CUSTOM
, UNKNOWN
, UNKNOWN_
]
contract
object
input_token
object
required
Possible values: [ERC20
, KIP7
, KIP17
, KIP37
, ERC721
, ERC1155
, CONSENSUS_NODE
, CUSTOM
, UNKNOWN
, UNKNOWN_
]
output_token
object
required
Possible values: [ERC20
, KIP7
, KIP17
, KIP37
, ERC721
, ERC1155
, CONSENSUS_NODE
, CUSTOM
, UNKNOWN
, UNKNOWN_
]
paging
object
required
property
object
{
"results": [
{
"block_number": 0,
"transaction_hash": "string",
"transaction_index": 0,
"transaction_type": "Account Update",
"amount": 0,
"transaction_fee": 0,
"method_id": "string",
"timestamp": 0,
"swap_type": "Swapscanner",
"from_account": {
"address": "string",
"account_type": "EOA",
"contract_type": "ERC20",
"contract": {
"symbol": "string",
"name": "string",
"icon": "string",
"verified": true
},
"kns_domain": "string",
"address_label": "string"
},
"to_account": {
"address": "string",
"account_type": "EOA",
"contract_type": "ERC20",
"contract": {
"symbol": "string",
"name": "string",
"icon": "string",
"verified": true
},
"kns_domain": "string",
"address_label": "string"
},
"sender_account": {
"address": "string",
"account_type": "EOA",
"contract_type": "ERC20",
"contract": {
"symbol": "string",
"name": "string",
"icon": "string",
"verified": true
},
"kns_domain": "string",
"address_label": "string"
},
"receiver_account": {
"address": "string",
"account_type": "EOA",
"contract_type": "ERC20",
"contract": {
"symbol": "string",
"name": "string",
"icon": "string",
"verified": true
},
"kns_domain": "string",
"address_label": "string"
},
"input_token": {
"contract_address": "string",
"contract_type": "ERC20"
},
"output_token": {
"contract_address": "string",
"contract_type": "ERC20"
},
"input_amount": 0,
"output_amount": 0
}
],
"paging": {
"total_count": 0,
"current_page": 0,
"last": true,
"total_page": 0
},
"property": {}
}