I did a ckETH transaction in ICPSWAP.
From the dashboard, it looks like I enabled an APPROVE transaction first, then an ICP → ckETH transaction.
However, in the rosetta api it shows that I transferred a transaction with an ICP amount of 0 before making ICP → ckETH transaction.
In other words, there is no record of an Approve transaction in the rosetta api, but rather a transaction with an ICP of 0 instead of an Approve transaction.
I know this is a harmless issue, but am curious as to why exactly this would cause the rosetta api and dashboard to display differently?
And the hash of the two transactions doesn’t match, this is the dashboard hash:
cf9b288bd0101eb0fb603468a25bf0ef7541c95732ed57906988f8a49b617fdf
And this is rosetta hash:
cab120759a05ff8615b5c6263c29f31c45cac670e0ef640d8711904ff7de664c
But rosetta hash can’t query the data in dashboard, it can only be queried through api node, here is the data return value of rosetta
{
"block_identifier": {
"index": 12802495,
"hash": "b00df8bdd22505cd7b9b44059b16e055c4faaeed315a72908c741bce5f5841aa"
},
"transaction": {
"metadata": {
"block_height": 12802495,
"memo": 0,
"timestamp": 1720668189304666600
},
"operations": [
{
"account": {
"address": "0d21ad80532098e7ee1f47c5a3cc3e11ab69aa4b637516b56bccbad1a8d7ee27"
},
"amount": {
"currency": {
"symbol": "ICP",
"decimals": 8
},
"value": "0"
},
"operation_identifier": {
"index": 0
},
"status": "COMPLETED",
"type": "TRANSACTION"
},
{
"account": {
"address": "df0104537832781dc8ed6f68298bb68edf788e2d03a81c47332f3981caa6646d"
},
"amount": {
"currency": {
"symbol": "ICP",
"decimals": 8
},
"value": "0"
},
"operation_identifier": {
"index": 1
},
"status": "COMPLETED",
"type": "TRANSACTION"
},
{
"account": {
"address": "0d21ad80532098e7ee1f47c5a3cc3e11ab69aa4b637516b56bccbad1a8d7ee27"
},
"amount": {
"value": "-10000",
"currency": {
"symbol": "ICP",
"decimals": 8
}
},
"operation_identifier": {
"index": 2
},
"status": "COMPLETED",
"type": "FEE"
}
],
"transaction_identifier": {
"hash": "cab120759a05ff8615b5c6263c29f31c45cac670e0ef640d8711904ff7de664c"
}
}
}