Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add indexer /outputs route #1246

Merged
merged 16 commits into from
Sep 19, 2023

Conversation

Thoralf-M
Copy link
Member

@Thoralf-M Thoralf-M commented Sep 18, 2023

Description of change

Add indexer /outputs route with QueryParameter::UnlockableByAddress
Also updated the wallet to make use of it, if all output types should be synced, because this reduced the amount of requests as can be seen in the cli logs below.

Links to any relevant issues

Closes #1241

Type of change

  • Enhancement (a non-breaking change which adds functionality)

How the change has been tested

Running nodejs and python and with the cli wallet

Sync before this change

2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing DEBUG [SYNC] start syncing with SyncOptions { addresses: [], address_start_index: 0, address_start_index_internal: 0, force_syncing: false, sync_incoming_transactions: false, sync_pending_transactions: true, account: AccountSyncOptions { basic_outputs: true, nft_outputs: true, alias_outputs: true }, alias: AliasSyncOptions { basic_outputs: false, nft_outputs: false, alias_outputs: false, foundry_outputs: true }, nft: NftSyncOptions { basic_outputs: false, nft_outputs: false, alias_outputs: false }, sync_only_most_basic_outputs: false, sync_native_token_foundries: false }
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing DEBUG [SYNC] last time synced before 1694789744039ms
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing DEBUG [SYNC] sync_internal
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::addresses DEBUG [SYNC] get_addresses_to_sync
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing DEBUG [SYNC] addresses_to_sync 1
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::addresses::output_ids DEBUG [SYNC] start get_output_ids_for_addresses
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::addresses::output_ids::alias_foundry DEBUG [SYNC] get_alias_and_foundry_output_ids
2023-09-15 14:55:44 (UTC) reqwest::connect                           DEBUG starting new connection: http://localhost:14265/
2023-09-15 14:55:44 (UTC) reqwest::connect                           DEBUG starting new connection: http://localhost:14265/
2023-09-15 14:55:44 (UTC) reqwest::connect                           DEBUG starting new connection: http://localhost:14265/
2023-09-15 14:55:44 (UTC) reqwest::connect                           DEBUG starting new connection: http://localhost:14265/
2023-09-15 14:55:44 (UTC) reqwest::connect                           DEBUG starting new connection: http://localhost:14265/
2023-09-15 14:55:44 (UTC) reqwest::connect                           DEBUG starting new connection: http://localhost:14265/
2023-09-15 14:55:44 (UTC) reqwest::connect                           DEBUG starting new connection: http://localhost:14265/
2023-09-15 14:55:44 (UTC) reqwest::connect                           DEBUG starting new connection: http://localhost:14265/
2023-09-15 14:55:44 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 2 ms for 200 OK http://localhost:14265/api/indexer/v1/outputs/basic?address=tst1qpllaj0pyveqfkwxmnngz2c488hfdtmfrj3wfkgxtk4gtyrax0jax7rgxyj
2023-09-15 14:55:44 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 2 ms for 200 OK http://localhost:14265/api/indexer/v1/outputs/nft?address=tst1qpllaj0pyveqfkwxmnngz2c488hfdtmfrj3wfkgxtk4gtyrax0jax7rgxyj
2023-09-15 14:55:44 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 2 ms for 200 OK http://localhost:14265/api/indexer/v1/outputs/basic?expirationReturnAddress=tst1qpllaj0pyveqfkwxmnngz2c488hfdtmfrj3wfkgxtk4gtyrax0jax7rgxyj
2023-09-15 14:55:44 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 3 ms for 200 OK http://localhost:14265/api/indexer/v1/outputs/alias?governor=tst1qpllaj0pyveqfkwxmnngz2c488hfdtmfrj3wfkgxtk4gtyrax0jax7rgxyj
2023-09-15 14:55:44 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 3 ms for 200 OK http://localhost:14265/api/indexer/v1/outputs/nft?storageDepositReturnAddress=tst1qpllaj0pyveqfkwxmnngz2c488hfdtmfrj3wfkgxtk4gtyrax0jax7rgxyj
2023-09-15 14:55:44 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 3 ms for 200 OK http://localhost:14265/api/indexer/v1/outputs/alias?stateController=tst1qpllaj0pyveqfkwxmnngz2c488hfdtmfrj3wfkgxtk4gtyrax0jax7rgxyj
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::addresses::output_ids::alias_foundry DEBUG [SYNC] get_foundry_output_ids
2023-09-15 14:55:44 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 3 ms for 200 OK http://localhost:14265/api/indexer/v1/outputs/nft?expirationReturnAddress=tst1qpllaj0pyveqfkwxmnngz2c488hfdtmfrj3wfkgxtk4gtyrax0jax7rgxyj
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] start get_outputs
2023-09-15 14:55:44 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 3 ms for 200 OK http://localhost:14265/api/indexer/v1/outputs/basic?storageDepositReturnAddress=tst1qpllaj0pyveqfkwxmnngz2c488hfdtmfrj3wfkgxtk4gtyrax0jax7rgxyj
2023-09-15 14:55:44 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 0 ms for 200 OK http://localhost:14265/api/core/v2/outputs/0xe2d3354ed006f54454f0f440c70594dd04a67bbd917cf054022418fccd1d4d6b0000
2023-09-15 14:55:44 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 0 ms for 200 OK http://localhost:14265/api/core/v2/outputs/0xdf61aa77eaf0fa3e4d3a17c660763135f0423a26163cad181ffb5ee7112f710b0000
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] finished get_outputs in 379.93µs
2023-09-15 14:55:44 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 0 ms for 200 OK http://localhost:14265/api/indexer/v1/outputs/foundry?aliasAddress=tst1pptmrw2yp44a90y2q8mrjg6c7gcpe6ta706nawlskr8wdljrsclj7p4qjs4
2023-09-15 14:55:44 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 0 ms for 200 OK http://localhost:14265/api/indexer/v1/outputs/foundry?aliasAddress=tst1pzqmnr3q2lcuanhh4fz3hfyye4pp2x4gm0mm4uu2pxqrg38zj8rlj6tnm8h
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::addresses::output_ids DEBUG [SYNC] spent or not anymore synced alias/nft/foundries outputs: []
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::addresses::output_ids DEBUG [SYNC] finished get_output_ids_for_addresses in 4.75ms
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::addresses::outputs DEBUG [SYNC] start get_outputs_from_address_output_ids
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] start get_outputs
2023-09-15 14:55:44 (UTC) reqwest::connect                           DEBUG starting new connection: http://localhost:14265/
2023-09-15 14:55:44 (UTC) reqwest::connect                           DEBUG starting new connection: http://localhost:14265/
2023-09-15 14:55:44 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 0 ms for 200 OK http://localhost:14265/api/core/v2/outputs/0xe2d3354ed006f54454f0f440c70594dd04a67bbd917cf054022418fccd1d4d6b0000
2023-09-15 14:55:44 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 0 ms for 200 OK http://localhost:14265/api/core/v2/outputs/0xdf61aa77eaf0fa3e4d3a17c660763135f0423a26163cad181ffb5ee7112f710b0100
2023-09-15 14:55:44 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 0 ms for 200 OK http://localhost:14265/api/core/v2/outputs/0x70f0399635f84755b774f41f03a1f0c81701b9dc9b6a482ea8893afc0ea3af6b0000
2023-09-15 14:55:44 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 0 ms for 200 OK http://localhost:14265/api/core/v2/outputs/0xc1b40c1d034649174383718eb8047e2e0af5de6a3a2802add38c7eeba90683400000
2023-09-15 14:55:44 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 0 ms for 200 OK http://localhost:14265/api/core/v2/outputs/0x5a1a68d02a35b6e003fdfb160b58313405dac42e0c6302d5ad45662f3b65db520000
2023-09-15 14:55:44 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 0 ms for 200 OK http://localhost:14265/api/core/v2/outputs/0xdf61aa77eaf0fa3e4d3a17c660763135f0423a26163cad181ffb5ee7112f710b0000
2023-09-15 14:55:44 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 0 ms for 200 OK http://localhost:14265/api/core/v2/outputs/0x905c4b22f47ca7a8bb8ff14f87d76e9233d6d9e3e98a2516b3162e16a541b6f80000
2023-09-15 14:55:44 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 0 ms for 200 OK http://localhost:14265/api/core/v2/outputs/0x0573d5c3cb9550536e9fe67d26216ad2d573b7be7dc49c5ebce1e6148d8e5c5d0100
2023-09-15 14:55:44 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 0 ms for 200 OK http://localhost:14265/api/core/v2/outputs/0x556fc0d784b84190a91423adc9847adf10922fa67c391c7de3dddcd0bff3ebe90000
2023-09-15 14:55:44 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 0 ms for 200 OK http://localhost:14265/api/core/v2/outputs/0xd47cbb8a4f232b43c6b447bf2374f00fb847bb77f07a8a8d6aae8ea4ffd663a00100
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] finished get_outputs in 1.08ms
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] convert output_responses
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::addresses::outputs DEBUG [SYNC] finished get_outputs_from_address_output_ids in 1.14ms
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing DEBUG [SYNC] new_alias_and_nft_addresses: {AliasAddress(0x81b98e2057f1cecef7aa451ba484cd42151aa8dbf7baf38a09803444e291c7f9): Ed25519Address(0x7ffec9e1233204d9c6dce6812b1539ee96af691ca2e4d9065daa85907d33e5d3), NftAddress(0x9638447254177b28fb3effa179b6f64c41e837431c76b0479bd41246f28e3520): Ed25519Address(0x7ffec9e1233204d9c6dce6812b1539ee96af691ca2e4d9065daa85907d33e5d3), AliasAddress(0x57b1b9440d6bd2bc8a01f6392358f2301ce97df3f53ebbf0b0cee6fe43863f2f): Ed25519Address(0x7ffec9e1233204d9c6dce6812b1539ee96af691ca2e4d9065daa85907d33e5d3), NftAddress(0x867395ce0845981ddcf6021dd8bfbae7e4068eb9c0938e54854b7ba953b15f4e): Ed25519Address(0x7ffec9e1233204d9c6dce6812b1539ee96af691ca2e4d9065daa85907d33e5d3)}
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] start get_outputs
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] finished get_outputs in 580.00ns
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] convert output_responses
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] start get_outputs
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] finished get_outputs in 90.00ns
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] convert output_responses
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] start get_outputs
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] finished get_outputs in 100.00ns
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] convert output_responses
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] start get_outputs
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] finished get_outputs in 90.00ns
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] convert output_responses
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing DEBUG [SYNC] new_alias_and_nft_addresses: {}
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing DEBUG [SYNC] spent_or_not_synced_outputs: []
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::update          DEBUG [SYNC] Update account with new synced transactions
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::update          DEBUG [SYNC] storing account Alice with new synced data
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account                  DEBUG [save] saving account to database
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing::transactions DEBUG [SYNC] sync pending transactions
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::balance DEBUG [BALANCE] balance
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::participation DEBUG [get_voting_output]
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::output_claiming DEBUG [OUTPUT_CLAIMING] claimable_outputs
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::output_claiming DEBUG [OUTPUT_CLAIMING] available outputs to claim: 2
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::output_claiming DEBUG [OUTPUT_CLAIMING] claimable_outputs
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::output_claiming DEBUG [OUTPUT_CLAIMING] available outputs to claim: 2
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::balance DEBUG [BALANCE] locked outputs: {}
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::balance DEBUG [BALANCE] total_amount: 99997493989, locked_amount: 0, total_rent_amount: 1773000
2023-09-15 14:55:44 (UTC) iota_sdk::wallet::account::operations::syncing DEBUG [SYNC] finished syncing in 6.38ms
2023-09-15 14:55:44 (UTC) wallet::command::account                   INFO  Synced.
2023-09-15 14:55:44 (UTC) wallet::command::account                   INFO  Balance {
    base_coin: BaseCoinBalance {
        total: 99997493989,
        available: 99995720989,
        voting_power: 0,
    },
    required_storage_deposit: RequiredStorageDeposit {
        alias: 503000,
        basic: 496000,
        foundry: 528000,
        nft: 459000,
    },
    native_tokens: [
        NativeTokensBalance {
            token_id: TokenId(0x0857b1b9440d6bd2bc8a01f6392358f2301ce97df3f53ebbf0b0cee6fe43863f2f0100000000),
            total: 1000,
            available: 1000,
            metadata: None,
        },
        NativeTokensBalance {
            token_id: TokenId(0x0857b1b9440d6bd2bc8a01f6392358f2301ce97df3f53ebbf0b0cee6fe43863f2f0200000000),
            total: 1000,
            available: 1000,
            metadata: None,
        },
    ],
    nfts: [
        NftId(0x9638447254177b28fb3effa179b6f64c41e837431c76b0479bd41246f28e3520),
        NftId(0x867395ce0845981ddcf6021dd8bfbae7e4068eb9c0938e54854b7ba953b15f4e),
    ],
    aliases: [
        AliasId(0x81b98e2057f1cecef7aa451ba484cd42151aa8dbf7baf38a09803444e291c7f9),
        AliasId(0x57b1b9440d6bd2bc8a01f6392358f2301ce97df3f53ebbf0b0cee6fe43863f2f),
    ],
    foundries: [
        FoundryId(0x0857b1b9440d6bd2bc8a01f6392358f2301ce97df3f53ebbf0b0cee6fe43863f2f0200000000),
        FoundryId(0x0857b1b9440d6bd2bc8a01f6392358f2301ce97df3f53ebbf0b0cee6fe43863f2f0100000000),
    ],
    potentially_locked_outputs: {
        OutputId(0x70f0399635f84755b774f41f03a1f0c81701b9dc9b6a482ea8893afc0ea3af6b0000): true,
        OutputId(0x905c4b22f47ca7a8bb8ff14f87d76e9233d6d9e3e98a2516b3162e16a541b6f80000): true,
    },
}

Sync after this change

2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing DEBUG [SYNC] start syncing with SyncOptions { addresses: [], address_start_index: 0, address_start_index_internal: 0, force_syncing: false, sync_incoming_transactions: false, sync_pending_transactions: true, account: AccountSyncOptions { basic_outputs: true, nft_outputs: true, alias_outputs: true }, alias: AliasSyncOptions { basic_outputs: false, nft_outputs: false, alias_outputs: false, foundry_outputs: true }, nft: NftSyncOptions { basic_outputs: false, nft_outputs: false, alias_outputs: false }, sync_only_most_basic_outputs: false, sync_native_token_foundries: false }
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing DEBUG [SYNC] last time synced before 1695123194254ms
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing DEBUG [SYNC] sync_internal
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing::addresses DEBUG [SYNC] get_addresses_to_sync
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing DEBUG [SYNC] addresses_to_sync 1
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing::addresses::output_ids DEBUG [SYNC] start get_output_ids_for_addresses
2023-09-19 11:33:14 (UTC) reqwest::connect                           DEBUG starting new connection: http://localhost:14265/
2023-09-19 11:33:14 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 1 ms for 200 OK http://localhost:14265/api/indexer/v1/outputs?unlockableByAddress=tst1qpllaj0pyveqfkwxmnngz2c488hfdtmfrj3wfkgxtk4gtyrax0jax7rgxyj
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing::addresses::output_ids DEBUG [SYNC] spent or not anymore synced alias/nft/foundries outputs: []
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing::addresses::output_ids DEBUG [SYNC] finished get_output_ids_for_addresses in 1.82ms
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing::addresses::outputs DEBUG [SYNC] start get_outputs_from_address_output_ids
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] start get_outputs
2023-09-19 11:33:14 (UTC) reqwest::connect                           DEBUG starting new connection: http://localhost:14265/
2023-09-19 11:33:14 (UTC) reqwest::connect                           DEBUG starting new connection: http://localhost:14265/
2023-09-19 11:33:14 (UTC) reqwest::connect                           DEBUG starting new connection: http://localhost:14265/
2023-09-19 11:33:14 (UTC) reqwest::connect                           DEBUG starting new connection: http://localhost:14265/
2023-09-19 11:33:14 (UTC) reqwest::connect                           DEBUG starting new connection: http://localhost:14265/
2023-09-19 11:33:14 (UTC) reqwest::connect                           DEBUG starting new connection: http://localhost:14265/
2023-09-19 11:33:14 (UTC) reqwest::connect                           DEBUG starting new connection: http://localhost:14265/
2023-09-19 11:33:14 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 0 ms for 200 OK http://localhost:14265/api/core/v2/outputs/0x556fc0d784b84190a91423adc9847adf10922fa67c391c7de3dddcd0bff3ebe90000
2023-09-19 11:33:14 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 1 ms for 200 OK http://localhost:14265/api/core/v2/outputs/0xc1b40c1d034649174383718eb8047e2e0af5de6a3a2802add38c7eeba90683400000
2023-09-19 11:33:14 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 0 ms for 200 OK http://localhost:14265/api/core/v2/outputs/0x0573d5c3cb9550536e9fe67d26216ad2d573b7be7dc49c5ebce1e6148d8e5c5d0100
2023-09-19 11:33:14 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 1 ms for 200 OK http://localhost:14265/api/core/v2/outputs/0x5a1a68d02a35b6e003fdfb160b58313405dac42e0c6302d5ad45662f3b65db520000
2023-09-19 11:33:14 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 1 ms for 200 OK http://localhost:14265/api/core/v2/outputs/0x905c4b22f47ca7a8bb8ff14f87d76e9233d6d9e3e98a2516b3162e16a541b6f80000
2023-09-19 11:33:14 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 1 ms for 200 OK http://localhost:14265/api/core/v2/outputs/0x70f0399635f84755b774f41f03a1f0c81701b9dc9b6a482ea8893afc0ea3af6b0000
2023-09-19 11:33:14 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 1 ms for 200 OK http://localhost:14265/api/core/v2/outputs/0xe2d3354ed006f54454f0f440c70594dd04a67bbd917cf054022418fccd1d4d6b0000
2023-09-19 11:33:14 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 1 ms for 200 OK http://localhost:14265/api/core/v2/outputs/0xdf61aa77eaf0fa3e4d3a17c660763135f0423a26163cad181ffb5ee7112f710b0000
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] finished get_outputs in 1.51ms
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] convert output_responses
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing::addresses::outputs DEBUG [SYNC] finished get_outputs_from_address_output_ids in 1.57ms
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing DEBUG [SYNC] new_alias_and_nft_addresses: {NftAddress(0x867395ce0845981ddcf6021dd8bfbae7e4068eb9c0938e54854b7ba953b15f4e): Ed25519Address(0x7ffec9e1233204d9c6dce6812b1539ee96af691ca2e4d9065daa85907d33e5d3), AliasAddress(0x57b1b9440d6bd2bc8a01f6392358f2301ce97df3f53ebbf0b0cee6fe43863f2f): Ed25519Address(0x7ffec9e1233204d9c6dce6812b1539ee96af691ca2e4d9065daa85907d33e5d3), NftAddress(0x9638447254177b28fb3effa179b6f64c41e837431c76b0479bd41246f28e3520): Ed25519Address(0x7ffec9e1233204d9c6dce6812b1539ee96af691ca2e4d9065daa85907d33e5d3), AliasAddress(0x81b98e2057f1cecef7aa451ba484cd42151aa8dbf7baf38a09803444e291c7f9): Ed25519Address(0x7ffec9e1233204d9c6dce6812b1539ee96af691ca2e4d9065daa85907d33e5d3)}
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] start get_outputs
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] finished get_outputs in 630.00ns
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] convert output_responses
2023-09-19 11:33:14 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 0 ms for 200 OK http://localhost:14265/api/indexer/v1/outputs/foundry?aliasAddress=tst1pptmrw2yp44a90y2q8mrjg6c7gcpe6ta706nawlskr8wdljrsclj7p4qjs4
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] start get_outputs
2023-09-19 11:33:14 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 0 ms for 200 OK http://localhost:14265/api/core/v2/outputs/0xd47cbb8a4f232b43c6b447bf2374f00fb847bb77f07a8a8d6aae8ea4ffd663a00100
2023-09-19 11:33:14 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 0 ms for 200 OK http://localhost:14265/api/core/v2/outputs/0xdf61aa77eaf0fa3e4d3a17c660763135f0423a26163cad181ffb5ee7112f710b0100
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] finished get_outputs in 361.05µs
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] convert output_responses
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] start get_outputs
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] finished get_outputs in 360.00ns
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] convert output_responses
2023-09-19 11:33:14 (UTC) iota_sdk::client::node_manager::http_client DEBUG GET: 0 ms for 200 OK http://localhost:14265/api/indexer/v1/outputs/foundry?aliasAddress=tst1pzqmnr3q2lcuanhh4fz3hfyye4pp2x4gm0mm4uu2pxqrg38zj8rlj6tnm8h
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] start get_outputs
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] finished get_outputs in 610.00ns
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing::outputs DEBUG [SYNC] convert output_responses
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing DEBUG [SYNC] new_alias_and_nft_addresses: {}
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing DEBUG [SYNC] spent_or_not_synced_outputs: []
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::update          DEBUG [SYNC] Update account with new synced transactions
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::update          DEBUG [SYNC] storing account Alice with new synced data
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account                  DEBUG [save] saving account to database
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing::transactions DEBUG [SYNC] sync pending transactions
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::balance DEBUG [BALANCE] balance
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::participation DEBUG [get_voting_output]
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::output_claiming DEBUG [OUTPUT_CLAIMING] claimable_outputs
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::output_claiming DEBUG [OUTPUT_CLAIMING] available outputs to claim: 2
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::output_claiming DEBUG [OUTPUT_CLAIMING] claimable_outputs
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::output_claiming DEBUG [OUTPUT_CLAIMING] available outputs to claim: 2
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::balance DEBUG [BALANCE] locked outputs: {}
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::balance DEBUG [BALANCE] total_amount: 99998000000, locked_amount: 0, total_rent_amount: 1773000
2023-09-19 11:33:14 (UTC) iota_sdk::wallet::account::operations::syncing DEBUG [SYNC] finished syncing in 5.70ms
2023-09-19 11:33:14 (UTC) wallet::command::account                   INFO  Synced.
2023-09-19 11:33:14 (UTC) wallet::command::account                   INFO  Balance {
    base_coin: BaseCoinBalance {
        total: 99998000000,
        available: 99996227000,
        voting_power: 0,
    },
    required_storage_deposit: RequiredStorageDeposit {
        alias: 503000,
        basic: 1002000,
        foundry: 528000,
        nft: 459000,
    },
    native_tokens: [
        NativeTokensBalance {
            token_id: TokenId(0x0857b1b9440d6bd2bc8a01f6392358f2301ce97df3f53ebbf0b0cee6fe43863f2f0100000000),
            total: 1000,
            available: 1000,
            metadata: None,
        },
        NativeTokensBalance {
            token_id: TokenId(0x0857b1b9440d6bd2bc8a01f6392358f2301ce97df3f53ebbf0b0cee6fe43863f2f0200000000),
            total: 1000,
            available: 1000,
            metadata: None,
        },
    ],
    nfts: [
        NftId(0x867395ce0845981ddcf6021dd8bfbae7e4068eb9c0938e54854b7ba953b15f4e),
        NftId(0x9638447254177b28fb3effa179b6f64c41e837431c76b0479bd41246f28e3520),
    ],
    aliases: [
        AliasId(0x81b98e2057f1cecef7aa451ba484cd42151aa8dbf7baf38a09803444e291c7f9),
        AliasId(0x57b1b9440d6bd2bc8a01f6392358f2301ce97df3f53ebbf0b0cee6fe43863f2f),
    ],
    foundries: [
        FoundryId(0x0857b1b9440d6bd2bc8a01f6392358f2301ce97df3f53ebbf0b0cee6fe43863f2f0200000000),
        FoundryId(0x0857b1b9440d6bd2bc8a01f6392358f2301ce97df3f53ebbf0b0cee6fe43863f2f0100000000),
    ],
    potentially_locked_outputs: {},
}

Change checklist

  • I have followed the contribution guidelines for this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that new and existing unit tests pass locally with my changes

@Thoralf-M Thoralf-M changed the base branch from develop to 1.1 September 18, 2023 12:05
kwek20
kwek20 previously approved these changes Sep 18, 2023
DaughterOfMars
DaughterOfMars previously approved these changes Sep 18, 2023
DaughterOfMars
DaughterOfMars previously approved these changes Sep 19, 2023
@Thoralf-M Thoralf-M marked this pull request as draft September 19, 2023 10:05
@Thoralf-M Thoralf-M marked this pull request as ready for review September 19, 2023 11:36
@thibault-martinez thibault-martinez merged commit 9975a40 into iotaledger:1.1 Sep 19, 2023
23 checks passed
@Thoralf-M Thoralf-M deleted the new-indexer-route branch September 19, 2023 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add /outputs indexer route and QueryParameter::UnlockableByAddress
4 participants