Skip to content
This repository has been archived by the owner on Feb 12, 2025. It is now read-only.

Commit

Permalink
VG-8830 Fix Big int parsing overflow (#896)
Browse files Browse the repository at this point in the history
* VG-8830 Fix Big int parsing overflow

And:
* Bump libcore version
* Update tzkt explorer default configurations

* Add test

* Update http cache urls
  • Loading branch information
BertrandD authored Aug 22, 2022
1 parent 0d8e487 commit a3fa310
Show file tree
Hide file tree
Showing 25 changed files with 89 additions and 76 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ include_what_you_use() # add cmake conf option IWYU=ON to activate
# The project version number.
set(VERSION_MAJOR 4 CACHE STRING "Project major version number.")
set(VERSION_MINOR 3 CACHE STRING "Project minor version number.")
set(VERSION_PATCH 2 CACHE STRING "Project patch version number.")
set(VERSION_PATCH 3 CACHE STRING "Project patch version number.")
mark_as_advanced(VERSION_MAJOR VERSION_MINOR VERSION_PATCH)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY build)
Expand Down
2 changes: 1 addition & 1 deletion core/idl/wallet/tezos/tezos_like_wallet.djinni
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ TezosConfigurationDefaults = interface +c {
const TEZOS_DEFAULT_API_ENDPOINT: string = "https://explorers.api.live.ledger.com";
const TEZOS_DEFAULT_API_VERSION: string = "v3";
const TZSTATS_API_ENDPOINT: string = "https://xtz-explorer.api.vault.ledger.com/explorer";
const TZKT_API_ENDPOINT: string = "https://api.tzkt.io";
const TZKT_API_ENDPOINT: string = "https://xtz-tzkt-explorer.api.vault.ledger.com/";
const TEZOS_DEFAULT_NODE: string = "https://xtz-node.api.vault.ledger.com";
const TEZOS_OBSERVER_NODE_ENDPOINT_S3: string = "https://s3.tezos.com";
const TEZOS_OBSERVER_WS_ENDPOINT_S2: string = "wss://s2.tezos.com";
Expand Down
2 changes: 1 addition & 1 deletion core/src/api/TezosConfigurationDefaults.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace ledger {

void from_json(const nlohmann::json &j, BigInt &i) {
if (j.is_number_integer()) {
i = ledger::core::BigInt::fromScalar(j.get<int>());
i = ledger::core::BigInt::fromScalar(j.get<int64_t>());
} else if (j.is_string()) {
i = ledger::core::BigInt::fromString(j.get<std::string>());
} else {
Expand All @@ -71,7 +71,7 @@ namespace ledger {
}

void from_json(const nlohmann::json &j, TezosLikeBlockchainExplorer::Transaction &t) {
t.explorerId = std::to_string(j.at("id").get<int>());
t.explorerId = std::to_string(j.at("id").get<int64_t>());
j.at("hash").get_to(t.hash);
const auto timestamp = j.at("timestamp").get<std::string>();
t.receivedAt = DateUtils::fromJSON(timestamp);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
GET https://api.tzkt.io/v1/operations/transactions/count?level=2504881
GET https://xtz-tzkt-explorer.api.vault.ledger.com/v1/operations/transactions/count?level=2504881
0
1
37

GET https://api.tzkt.io/v1/blocks?sort.desc=id&limit=1
GET https://xtz-tzkt-explorer.api.vault.ledger.com/v1/blocks?sort.desc=id&limit=1
0
1
[{"cycle":499,"level":2504881,"hash":"BLdJnRA398hv3cd4ptqNTCrB8tVbEEUzV7oWuZ9eRsu1f4vtCgW","timestamp":"2022-07-04T10:11:29Z","proto":13,"payloadRound":0,"blockRound":0,"validations":6921,"deposit":0,"reward":10000000,"bonus":9660644,"fees":24064,"nonceRevealed":false,"proposer":{"alias":"TezosHODL","address":"tz1WnfXMPaNTBmH7DBPwqCWs9cPDJdkGBTZ8"},"producer":{"alias":"TezosHODL","address":"tz1WnfXMPaNTBmH7DBPwqCWs9cPDJdkGBTZ8"},"software":{"version":"v13.0","date":"2022-05-05T12:55:26Z"},"lbToggle":true,"lbToggleEma":131146050,"priority":0,"baker":{"alias":"TezosHODL","address":"tz1WnfXMPaNTBmH7DBPwqCWs9cPDJdkGBTZ8"},"lbEscapeVote":false,"lbEscapeEma":131146050}]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
GET https://xtz-tzkt-explorer.api.vault.ledger.com/v1/accounts/tz1YkqJKPWXjREzs9L32AZqe3yiEdfhSYx3x/balance
0
1
34061421443909

Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
GET https://api.tzkt.io/v1/accounts/tz1Xeg8GzmCYhs5pWxwzerryDiQqFZWTJHzg/balance
GET https://xtz-tzkt-explorer.api.vault.ledger.com/v1/accounts/tz1Xeg8GzmCYhs5pWxwzerryDiQqFZWTJHzg/balance
0
1
0

GET https://api.tzkt.io/v1/accounts/tz1Xeg8GzmCYhs5pWxwzerryDiQqFZWTJHzg
GET https://xtz-tzkt-explorer.api.vault.ledger.com/v1/accounts/tz1Xeg8GzmCYhs5pWxwzerryDiQqFZWTJHzg
0
1
{"id":329391,"type":"user","address":"tz1Xeg8GzmCYhs5pWxwzerryDiQqFZWTJHzg","publicKey":"edpkteNnvxz171eHjTdGmgg5MNVV9mu4JsE5zHZY7tWKKPobPyoJXq","revealed":false,"balance":0,"rollupBonds":0,"counter":69310730,"numContracts":0,"rollupsCount":0,"activeTokensCount":0,"tokenBalancesCount":0,"tokenTransfersCount":0,"numActivations":0,"numDelegations":0,"numOriginations":0,"numTransactions":13,"numReveals":1,"numRegisterConstants":0,"numSetDepositsLimits":0,"numMigrations":0,"txRollupOriginationCount":0,"txRollupSubmitBatchCount":0,"txRollupCommitCount":0,"txRollupReturnBondCount":0,"txRollupFinalizeCommitmentCount":0,"txRollupRemoveCommitmentCount":0,"txRollupRejectionCount":0,"txRollupDispatchTicketsCount":0,"transferTicketCount":0,"firstActivity":679352,"firstActivityTime":"2019-11-04T12:09:37Z","lastActivity":693812,"lastActivityTime":"2019-11-14T17:14:48Z"}
{"id":329391,"type":"user","address":"tz1Xeg8GzmCYhs5pWxwzerryDiQqFZWTJHzg","publicKey":"edpkteNnvxz171eHjTdGmgg5MNVV9mu4JsE5zHZY7tWKKPobPyoJXq","revealed":false,"balance":0,"rollupBonds":0,"counter":73941450,"numContracts":0,"rollupsCount":0,"activeTokensCount":0,"tokenBalancesCount":0,"tokenTransfersCount":0,"numActivations":0,"numDelegations":0,"numOriginations":0,"numTransactions":13,"numReveals":1,"numRegisterConstants":0,"numSetDepositsLimits":0,"numMigrations":0,"txRollupOriginationCount":0,"txRollupSubmitBatchCount":0,"txRollupCommitCount":0,"txRollupReturnBondCount":0,"txRollupFinalizeCommitmentCount":0,"txRollupRemoveCommitmentCount":0,"txRollupRejectionCount":0,"txRollupDispatchTicketsCount":0,"transferTicketCount":0,"firstActivity":679352,"firstActivityTime":"2019-11-04T12:09:37Z","lastActivity":693812,"lastActivityTime":"2019-11-14T17:14:48Z"}

GET https://api.tzkt.io/v1/blocks?sort.desc=id&limit=1
GET https://xtz-tzkt-explorer.api.vault.ledger.com/v1/blocks?sort.desc=id&limit=1
0
1
[{"cycle":502,"level":2527987,"hash":"BLi7TV9PXg7Esbtqdfx7fgTHzFzguAeRJh7pbqZmFka8sMtDuYS","timestamp":"2022-07-12T15:47:29Z","proto":13,"payloadRound":0,"blockRound":0,"validations":6945,"deposit":0,"reward":10000000,"bonus":9763508,"fees":68497,"nonceRevealed":false,"proposer":{"alias":"Chorus One","address":"tz1eEnQhbwf6trb8Q8mPb2RaPkNk2rN7BKi8"},"producer":{"alias":"Chorus One","address":"tz1eEnQhbwf6trb8Q8mPb2RaPkNk2rN7BKi8"},"software":{"version":"v13.0","date":"2022-05-05T12:55:26Z"},"lbToggle":true,"lbToggleEma":109951927,"priority":0,"baker":{"alias":"Chorus One","address":"tz1eEnQhbwf6trb8Q8mPb2RaPkNk2rN7BKi8"},"lbEscapeVote":false,"lbEscapeEma":109951927}]
[{"cycle":516,"level":2643913,"hash":"BLXP2qCUiER6aimwCutj3u91BU2imdCnwLRKyHZjVCCCPNNR93L","timestamp":"2022-08-22T10:55:14Z","proto":13,"payloadRound":0,"blockRound":0,"validations":6979,"deposit":0,"reward":10000000,"bonus":9909232,"fees":51505,"nonceRevealed":false,"proposer":{"address":"tz3RB4aoyjov4KEVRbuhvQ1CKJgBJMWhaeB8"},"producer":{"address":"tz3RB4aoyjov4KEVRbuhvQ1CKJgBJMWhaeB8"},"software":{"date":"2022-08-01T21:55:29Z"},"lbToggleEma":349410234,"priority":0,"baker":{"address":"tz3RB4aoyjov4KEVRbuhvQ1CKJgBJMWhaeB8"},"lbEscapeVote":false,"lbEscapeEma":349410234}]

GET https://api.tzkt.io/v1/accounts/tz1Xeg8GzmCYhs5pWxwzerryDiQqFZWTJHzg/operations?limit=100
GET https://xtz-tzkt-explorer.api.vault.ledger.com/v1/accounts/tz1Xeg8GzmCYhs5pWxwzerryDiQqFZWTJHzg/operations?limit=100
0
1
[{"type":"transaction","id":17660559,"level":693812,"timestamp":"2019-11-14T17:14:48Z","block":"BMGQeWHceeVP7WcoUwQCcuWxA9qRYbAfMX3GGvxWfazFJW4TJKn","hash":"ooLatTeAg7p3bTg1i6uZaqwp1BBe8vH7MggkiwL7cqy3nDueUPq","counter":2334142,"sender":{"address":"tz1PWFt4Ym6HedY78MgUP2kVDtSampGwprs5"},"gasLimit":18000,"gasUsed":10209,"storageLimit":257,"storageUsed":0,"bakerFee":42500,"storageFee":0,"allocationFee":257000,"target":{"address":"tz1Xeg8GzmCYhs5pWxwzerryDiQqFZWTJHzg"},"amount":3643740,"status":"backtracked","errors":[{"type":"contract.cannot_pay_storage_fee"},{"type":"context.storage_error"}],"hasInternals":false},{"type":"transaction","id":17572178,"level":690915,"timestamp":"2019-11-12T16:28:12Z","block":"BL6VCmGZj78PSxfp3WEF8MNJjVNx2R1XtnLLCj4TDoTKHJvZA36","hash":"ooKuv56iCwozbckJuXyxLh1z3t3q1kxZCfsd9qRtEBQSQBgo6vJ","counter":2263651,"sender":{"address":"tz1Xeg8GzmCYhs5pWxwzerryDiQqFZWTJHzg"},"gasLimit":18000,"gasUsed":10209,"storageLimit":257,"storageUsed":0,"bakerFee":10000,"storageFee":0,"allocationFee":0,"target":{"address":"tz1VUgoKvoPsczqPAJe1Lge2JBM3QSuSnhi3"},"amount":934247,"status":"applied","hasInternals":false},{"type":"transaction","id":17397506,"level":684942,"timestamp":"2019-11-08T11:14:02Z","block":"BLHXPqGnmS6KjxJEy5n2gRbkk81KCpmxRu1QNLvxaErVGMEzvQZ","hash":"oou3fXsa1cZycKySBTNdUMJawhtioMcARCqmnjYpSC1Abw3Lq7w","counter":2263650,"sender":{"address":"tz1Xeg8GzmCYhs5pWxwzerryDiQqFZWTJHzg"},"gasLimit":18000,"gasUsed":10207,"storageLimit":257,"storageUsed":0,"bakerFee":4500,"storageFee":0,"allocationFee":0,"target":{"address":"tz1VUgoKvoPsczqPAJe1Lge2JBM3QSuSnhi3"},"amount":100000,"status":"applied","hasInternals":false},{"type":"transaction","id":17351332,"level":683702,"timestamp":"2019-11-07T14:13:09Z","block":"BLweTyFxsuc6cY9VE58NqGwaMsKDYcdHPr7sT6LXr1y1p73H2hy","hash":"ooKyxTXNd5y5BMhgL4XwD5qFm2zMrxEywsw17fgehX8SNgLs5gn","counter":2263649,"sender":{"address":"tz1Xeg8GzmCYhs5pWxwzerryDiQqFZWTJHzg"},"gasLimit":18000,"gasUsed":10207,"storageLimit":257,"storageUsed":0,"bakerFee":8700,"storageFee":0,"allocationFee":257000,"target":{"address":"tz1PDy4GwHZUdtuERzVHv32ypRpmunxVpbRe"},"amount":1000000,"status":"applied","hasInternals":false},{"type":"transaction","id":17344233,"level":683463,"timestamp":"2019-11-07T10:09:29Z","block":"BLqTB32hyazacbc1oPMFWR9ot1D4bZp4YvWjGBNvUe3DQ3U9yUa","hash":"oniiSPUcLKKtPGG7jtiYXD4ycWPmF7kET2LBPxtwiwnTs6YUH5X","counter":2276107,"sender":{"address":"tz1YkAjh5mm5gJ5u3VbFLEtpAG7cFo7PfCux"},"gasLimit":18000,"gasUsed":10207,"storageLimit":257,"storageUsed":0,"bakerFee":57879,"storageFee":0,"allocationFee":0,"target":{"address":"tz1Xeg8GzmCYhs5pWxwzerryDiQqFZWTJHzg"},"amount":2000000,"status":"applied","hasInternals":false},{"type":"transaction","id":17308643,"level":682436,"timestamp":"2019-11-06T16:39:44Z","block":"BMe2zxSJbVqkGNbut49tDWtUFBpisQdhChnnvNk5VFbahgtq3Dn","hash":"ooqCRoCRZaTDtvzxvxCsbCyYWqQeuCXHF8pKJX2jeRy2HvB7eZX","counter":2263648,"sender":{"address":"tz1Xeg8GzmCYhs5pWxwzerryDiQqFZWTJHzg"},"gasLimit":18000,"gasUsed":10207,"storageLimit":257,"storageUsed":0,"bakerFee":1420,"storageFee":0,"allocationFee":0,"target":{"address":"tz1VUgoKvoPsczqPAJe1Lge2JBM3QSuSnhi3"},"amount":200000,"status":"applied","hasInternals":false},{"type":"transaction","id":17304847,"level":682284,"timestamp":"2019-11-06T14:04:57Z","block":"BLAbJ9ob2MWxNXHx9FPp65vniU2LDHQXztQ4yVyzDDGzgcW1qku","hash":"opP3xwhKhNEwCWsk7koCQXEwRK4rC6uAVYHtpQpJr8fdwGdJZnT","counter":2263647,"sender":{"address":"tz1Xeg8GzmCYhs5pWxwzerryDiQqFZWTJHzg"},"gasLimit":18000,"gasUsed":10207,"storageLimit":257,"storageUsed":0,"bakerFee":2500,"storageFee":0,"allocationFee":0,"target":{"address":"tz1YkAjh5mm5gJ5u3VbFLEtpAG7cFo7PfCux"},"amount":500000,"status":"applied","hasInternals":false},{"type":"transaction","id":17304769,"level":682281,"timestamp":"2019-11-06T14:01:57Z","block":"BKr9gRtGsGYqST6vDVGPvYKaonqYqiR5Cv1SrrSWa6nL9L7TFzn","hash":"opV4k3Vr5EftSzoDRGuuuqnHCYRW55ckstfqGnTJyKQa8749eJr","counter":2263646,"sender":{"address":"tz1Xeg8GzmCYhs5pWxwzerryDiQqFZWTJHzg"},"gasLimit":18000,"gasUsed":10207,"storageLimit":257,"storageUsed":0,"bakerFee":2500,"storageFee":0,"allocationFee":0,"target":{"address":"tz1YkAjh5mm5gJ5u3VbFLEtpAG7cFo7PfCux"},"amount":1000000,"status":"applied","hasInternals":false},{"type":"transaction","id":17303780,"level":682242,"timestamp":"2019-11-06T13:21:37Z","block":"BLsiDcDBQnqPF2fZP178iK1zzcxd1RNwEjXAdP5D1CFuX3Gcugd","hash":"ooaZnj71WWrzG2by1mAX9sGXXKk46sAg19FR1tBcY7VSMEAm1wp","counter":2263645,"sender":{"address":"tz1Xeg8GzmCYhs5pWxwzerryDiQqFZWTJHzg"},"gasLimit":18000,"gasUsed":10207,"storageLimit":257,"storageUsed":0,"bakerFee":2500,"storageFee":0,"allocationFee":257000,"target":{"address":"tz1VUgoKvoPsczqPAJe1Lge2JBM3QSuSnhi3"},"amount":1513242,"status":"applied","hasInternals":false},{"type":"reveal","id":17303779,"level":682242,"timestamp":"2019-11-06T13:21:37Z","block":"BLsiDcDBQnqPF2fZP178iK1zzcxd1RNwEjXAdP5D1CFuX3Gcugd","hash":"ooaZnj71WWrzG2by1mAX9sGXXKk46sAg19FR1tBcY7VSMEAm1wp","sender":{"address":"tz1Xeg8GzmCYhs5pWxwzerryDiQqFZWTJHzg"},"counter":2263644,"gasLimit":18000,"gasUsed":10000,"bakerFee":2500,"status":"applied"},{"type":"transaction","id":17301335,"level":682147,"timestamp":"2019-11-06T11:44:31Z","block":"BLYYhEjTNDqEom7qhnLKox6qNxmdfXNUhmNsrvZaZtF6QsQarNn","hash":"ooUar4RXrx1XzRP9RrSciPWeRd2VrLHJRrduchSnbxGD5n5EmDk","counter":2225294,"sender":{"address":"tz1hyXNyqp8viRrsCc1WBRdzjrDWxDF45cRP"},"gasLimit":18000,"gasUsed":10207,"storageLimit":257,"storageUsed":0,"bakerFee":2500,"storageFee":0,"allocationFee":0,"target":{"address":"tz1Xeg8GzmCYhs5pWxwzerryDiQqFZWTJHzg"},"amount":1396109,"status":"applied","hasInternals":false},{"type":"transaction","id":17275575,"level":681200,"timestamp":"2019-11-05T19:33:09Z","block":"BLt79wLg8ESGEJFSQPRHwH9EqybDoDMxuPEXYnsoak27rCqvoaA","hash":"oozC9k5uAbSxpQKGEcWFiHUdprb9ERazWhqvXGn2aH3XKH6v4uc","counter":2276105,"sender":{"address":"tz1YkAjh5mm5gJ5u3VbFLEtpAG7cFo7PfCux"},"gasLimit":18000,"gasUsed":10207,"storageLimit":257,"storageUsed":0,"bakerFee":2500,"storageFee":0,"allocationFee":0,"target":{"address":"tz1Xeg8GzmCYhs5pWxwzerryDiQqFZWTJHzg"},"amount":2000000,"status":"applied","hasInternals":false},{"type":"transaction","id":17271960,"level":681083,"timestamp":"2019-11-05T17:33:29Z","block":"BLNmB1L5mzjETHVS85ANynNEHgqHacbhbybgLrPkEpgbpKf6vHw","hash":"oo1B57aJFzGvBSEphbkYSmAfkgJXABmDfmHmfkdp6XFSpxvJNXn","counter":2225292,"sender":{"address":"tz1hyXNyqp8viRrsCc1WBRdzjrDWxDF45cRP"},"gasLimit":18000,"gasUsed":10207,"storageLimit":257,"storageUsed":0,"bakerFee":12840,"storageFee":0,"allocationFee":0,"target":{"address":"tz1Xeg8GzmCYhs5pWxwzerryDiQqFZWTJHzg"},"amount":200000,"status":"applied","hasInternals":false},{"type":"transaction","id":17217217,"level":679352,"timestamp":"2019-11-04T12:09:37Z","block":"BMFZj8x1chhQxvGUAjZeF9CgTjdYirwpSj4CVfiox6jKJtog3wX","hash":"opEChAfyhxCFxmRpxxqJqpstE6pM2z9wBtFtB9bhKp1Y9TxS9zY","counter":2225291,"sender":{"address":"tz1hyXNyqp8viRrsCc1WBRdzjrDWxDF45cRP"},"gasLimit":18000,"gasUsed":10207,"storageLimit":300,"storageUsed":0,"bakerFee":2500,"storageFee":0,"allocationFee":257000,"target":{"address":"tz1Xeg8GzmCYhs5pWxwzerryDiQqFZWTJHzg"},"amount":200000,"status":"applied","hasInternals":false}]
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -225,4 +225,12 @@ TEST_F(LedgerApiTezosLikeBlockchainExplorerTests, GeTransactionsInBigBlock) {
EXPECT_FALSE(result->isZero());
EXPECT_GT(result->toUint64(), 0);
EXPECT_LT(result->toUint64(), 10000);
}

TEST_F(LedgerApiTezosLikeBlockchainExplorerTests, GetHugeBalance) {
// This tests checks the fix of an overflow when getting account with huge balance
auto address = std::dynamic_pointer_cast<TezosLikeAddress>(TezosLikeAddress::parse("tz1YkqJKPWXjREzs9L32AZqe3yiEdfhSYx3x", Currency("tezos").forkOfTezos(params))); // Example address of a big delegator
auto result = uv::wait(explorer->getBalance(std::vector<TezosLikeKeychain::Address>{address}));
EXPECT_TRUE(result->isPositive());
EXPECT_GT(result->toUint64(), std::numeric_limits<int>::max());
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
using namespace std;

namespace {
const std::string kExplorerUrl = "https://api.tzkt.io";
const std::string kExplorerUrl = "https://xtz-tzkt-explorer.api.vault.ledger.com";
}

class TezosLikeWalletSynchronization : public BaseFixture {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ GET https://xtz-node.api.live.ledger.com/chains/main/blocks/head/context/contrac
"7522927"


GET https://api.tzkt.io/v1/accounts/tz1YnM9JMYof5yKXzs3XptoJ1RMf1Ri7RuGF/balance
GET https://xtz-tzkt-explorer.api.vault.ledger.com/v1/accounts/tz1YnM9JMYof5yKXzs3XptoJ1RMf1Ri7RuGF/balance
0
1
101688

GET https://api.tzkt.io/v1/blocks?sort.desc=id&limit=1
GET https://xtz-tzkt-explorer.api.vault.ledger.com/v1/blocks?sort.desc=id&limit=1
0
1
[{"cycle":500,"level":2507503,"hash":"BM7DwCS3pjsMSp3gpF4Z8Dj24YVoVP8ZzCs4SVHpjpXk2caFj42","timestamp":"2022-07-05T08:38:44Z","proto":13,"payloadRound":0,"blockRound":0,"validations":6851,"deposit":0,"reward":10000000,"bonus":9360624,"fees":273166,"nonceRevealed":false,"proposer":{"alias":"Norn Delegate","address":"tz1cSj7fTex3JPd1p1LN1fwek6AV1kH93Wwc"},"producer":{"alias":"Norn Delegate","address":"tz1cSj7fTex3JPd1p1LN1fwek6AV1kH93Wwc"},"software":{"version":"v13.0","date":"2022-05-05T12:55:26Z"},"lbToggleEma":127423865,"priority":0,"baker":{"alias":"Norn Delegate","address":"tz1cSj7fTex3JPd1p1LN1fwek6AV1kH93Wwc"},"lbEscapeVote":false,"lbEscapeEma":127423865}]

GET https://api.tzkt.io/v1/accounts/tz1YnM9JMYof5yKXzs3XptoJ1RMf1Ri7RuGF/operations?limit=100
GET https://xtz-tzkt-explorer.api.vault.ledger.com/v1/accounts/tz1YnM9JMYof5yKXzs3XptoJ1RMf1Ri7RuGF/operations?limit=100
0
1
[{"type":"transaction","id":40356846,"level":1330307,"timestamp":"2021-02-04T09:04:23Z","block":"BLkqeVdvakPyEVmJSwMtcFWbGfAr75iMdTZrM8avPaD7tkfcvqP","hash":"opL9ynJ97b84eeuebMitDRowbc746boixTSgysVgezw9Hn7kyMB","counter":9351481,"sender":{"address":"tz2MeLEMc2aBEQy71VKRpppBHbPmyFbkxK8m"},"gasLimit":1627,"gasUsed":1427,"storageLimit":0,"storageUsed":0,"bakerFee":369,"storageFee":0,"allocationFee":0,"target":{"address":"tz1YnM9JMYof5yKXzs3XptoJ1RMf1Ri7RuGF"},"amount":100000,"status":"applied","hasInternals":false},{"type":"transaction","id":38516177,"level":1287970,"timestamp":"2021-01-04T17:21:39Z","block":"BMBkNAPb9yRJELH4f4Smr5JcuF5SD9Jc7JUWH9mEMHZn4BKEB2L","hash":"onpKtmX9nyrJzMRNrWb9UcUHu3p5Q1d3E5T8kGaSK4YizvcoViM","counter":7522927,"sender":{"address":"tz1YnM9JMYof5yKXzs3XptoJ1RMf1Ri7RuGF"},"gasLimit":1627,"gasUsed":1427,"storageLimit":0,"storageUsed":0,"bakerFee":416,"storageFee":0,"allocationFee":0,"target":{"address":"tz2MeLEMc2aBEQy71VKRpppBHbPmyFbkxK8m"},"amount":10000,"status":"applied","hasInternals":false},{"type":"transaction","id":38516136,"level":1287969,"timestamp":"2021-01-04T17:20:39Z","block":"BKuzeoUVw6dR6SLkipz3xx6Q6Qk6aAy97Ndt9FCEX5mzmWCXzNK","hash":"ooatxJFR6pK6bAjhKNKf12fvAdtW4TRvH7dZYacAQYhyiL6QQvL","counter":7522926,"sender":{"address":"tz1YnM9JMYof5yKXzs3XptoJ1RMf1Ri7RuGF"},"gasLimit":1627,"gasUsed":1427,"storageLimit":0,"storageUsed":0,"bakerFee":417,"storageFee":0,"allocationFee":0,"target":{"address":"tz2MeLEMc2aBEQy71VKRpppBHbPmyFbkxK8m"},"amount":80000,"status":"applied","hasInternals":false},{"type":"transaction","id":34351120,"level":1183505,"timestamp":"2020-10-23T08:40:12Z","block":"BMDtRwahQYhtm8UYJxaF3fodXEWzajgGAB9asAXH9tY2e1qvnpK","hash":"onyYeGLeSyy9JP1zmvfvAuUwhoEGwNUgXmaGLWLMacte1gpCb9M","counter":7522925,"sender":{"address":"tz1YnM9JMYof5yKXzs3XptoJ1RMf1Ri7RuGF"},"gasLimit":10407,"gasUsed":10207,"storageLimit":0,"storageUsed":0,"bakerFee":1246,"storageFee":0,"allocationFee":0,"target":{"address":"tz2B7ibGZBtVFLvRYBfe4Q9uw7SRE62MKZCD"},"amount":5000,"status":"applied","hasInternals":false},{"type":"reveal","id":34351119,"level":1183505,"timestamp":"2020-10-23T08:40:12Z","block":"BMDtRwahQYhtm8UYJxaF3fodXEWzajgGAB9asAXH9tY2e1qvnpK","hash":"onyYeGLeSyy9JP1zmvfvAuUwhoEGwNUgXmaGLWLMacte1gpCb9M","sender":{"address":"tz1YnM9JMYof5yKXzs3XptoJ1RMf1Ri7RuGF"},"counter":7522924,"gasLimit":10200,"gasUsed":10000,"bakerFee":1233,"status":"applied"},{"type":"transaction","id":34350796,"level":1183493,"timestamp":"2020-10-23T08:28:12Z","block":"BL67XN1mU2wGGi8MPzvFNyrjLaDdtnxUdUbDpYs6Ws8cVfy1Tm6","hash":"ood2tS8MmAjAfsauGs6tDCc9BqsFx7qPHREBgXWi7XyidE3qi5Z","counter":7314353,"sender":{"address":"tz2B7ibGZBtVFLvRYBfe4Q9uw7SRE62MKZCD"},"gasLimit":10407,"gasUsed":10207,"storageLimit":257,"storageUsed":0,"bakerFee":1295,"storageFee":0,"allocationFee":257000,"target":{"address":"tz1YnM9JMYof5yKXzs3XptoJ1RMf1Ri7RuGF"},"amount":100000,"status":"applied","hasInternals":false}]
Expand Down
Loading

0 comments on commit a3fa310

Please sign in to comment.