tx · 6n9SPZGXkQR2xT6eY6XGZGvzv2FXqW8ULo6bCStXs4ia

3N9ttyLcRwDo7L4EmJkbS3ZFuQJygivupsL:  -0.00500000 Waves

2024.02.15 15:46 [2977337] invoke 3N9ttyLcRwDo7L4EmJkbS3ZFuQJygivupsL > 3N9tKixzqTYWnEXQxrDQ5pBTGvQd6sFsvmV commitTask()

3N9tKixzqTYWnEXQxrDQ5pBTGvQd6sFsvmV: checked_out_by_92ovWCy1Zf8CSsTLLLssC74m8yn5yPMqVp9fmVacou97_chatgpt_SHyMEhvsPhTTiQCfQHbr9xt3McCRhAGPME8PtLz4bNY_9Ba7tjxSEN6U2dAmug28HNQHjNyET1gRZVfrcmgTfsHC: true -> null
3N9tKixzqTYWnEXQxrDQ5pBTGvQd6sFsvmV: SHyMEhvsPhTTiQCfQHbr9xt3McCRhAGPME8PtLz4bNY_9Ba7tjxSEN6U2dAmug28HNQHjNyET1gRZVfrcmgTfsHC_commit_timestamp_chatgpt: 1708001167257
3N9tKixzqTYWnEXQxrDQ5pBTGvQd6sFsvmV: SHyMEhvsPhTTiQCfQHbr9xt3McCRhAGPME8PtLz4bNY_9Ba7tjxSEN6U2dAmug28HNQHjNyET1gRZVfrcmgTfsHC_commit_height_chatgpt: 2977337
3N9tKixzqTYWnEXQxrDQ5pBTGvQd6sFsvmV: SHyMEhvsPhTTiQCfQHbr9xt3McCRhAGPME8PtLz4bNY_9Ba7tjxSEN6U2dAmug28HNQHjNyET1gRZVfrcmgTfsHC_result_chatgpt: "To find out how many active wallets exist on the Waves blockchain in a certain day, you can use the Waves Node REST API. Follow the steps below:

1. First, you need to set up a connection to the Waves Node API. You can use cURL or any HTTP client library in your preferred programming language.

2. Make a GET request to the `/addresses` endpoint, specifying the number of transactions per page using the `limit` parameter and page number using the `page` parameter. The maximum allowed limit is 1000.

3. Iterate over the response data, which contains a list of addresses and their transaction counts. Filter out the addresses that have a non-zero transaction count, as these are considered active wallets.

4. Count the filtered addresses to get the total number of active wallets.

Here is an example using PHP:

```php
<?php
// Set the API endpoint
$apiEndpoint = 'https://nodes.wavesnodes.com';

// Specify the date in YYYY-MM-DD format
$targetDate = '2022-01-01';

// Set the limit of transactions per page
$limit = 1000;

// Initialize the page number
$page = 1;

// Initialize the total number of active wallets
$totalActiveWallets = 0;

do {
    // Make a GET request to the /addresses endpoint
    $requestUrl = "{$apiEndpoint}/addresses?page={$page}&limit={$limit}";
    $response = file_get_contents($requestUrl);
    $data = json_decode($response, true);

    // Check if the response is successful
    if ($data['status'] === 'success') {
        // Iterate over the addresses
        foreach ($data['addresses'] as $address) {
            // Check if the address has non-zero transactions
            if ($address['transactionCount'] > 0) {
                $totalActiveWallets++;
            }
        }
    }

    $page++;
} while (count($data['addresses']) > 0);

echo "Total active wallets on {$targetDate}: {$totalActiveWallets}";
```

Replace `$targetDate` with the date you want to count the active wallets for. Keep in mind that this method may take a significant amount of time for a large number of wallets, as it retrieves addresses in pages. Adjust the `$limit` value according to your needs."
3N9tKixzqTYWnEXQxrDQ5pBTGvQd6sFsvmV: SHyMEhvsPhTTiQCfQHbr9xt3McCRhAGPME8PtLz4bNY_9Ba7tjxSEN6U2dAmug28HNQHjNyET1gRZVfrcmgTfsHC_status_chatgpt: "checked_out" -> "done"

{ "type": 16, "id": "6n9SPZGXkQR2xT6eY6XGZGvzv2FXqW8ULo6bCStXs4ia", "fee": 500000, "feeAssetId": null, "timestamp": 1708001206718, "version": 2, "chainId": 84, "sender": "3N9ttyLcRwDo7L4EmJkbS3ZFuQJygivupsL", "senderPublicKey": "92ovWCy1Zf8CSsTLLLssC74m8yn5yPMqVp9fmVacou97", "proofs": [ "3hVEbQ1LZ7otViAJYWbysUqfA9S9cXovZPXSKyHP7P7JfbhpZgX4iRpvjYvryiwMEvnCT5X6rnbFTGp7XqyUXAT6" ], "dApp": "3N9tKixzqTYWnEXQxrDQ5pBTGvQd6sFsvmV", "payment": [], "call": { "function": "commitTask", "args": [ { "type": "string", "value": "SHyMEhvsPhTTiQCfQHbr9xt3McCRhAGPME8PtLz4bNY_9Ba7tjxSEN6U2dAmug28HNQHjNyET1gRZVfrcmgTfsHC" }, { "type": "string", "value": "To find out how many active wallets exist on the Waves blockchain in a certain day, you can use the Waves Node REST API. Follow the steps below:\n\n1. First, you need to set up a connection to the Waves Node API. You can use cURL or any HTTP client library in your preferred programming language.\n\n2. Make a GET request to the `/addresses` endpoint, specifying the number of transactions per page using the `limit` parameter and page number using the `page` parameter. The maximum allowed limit is 1000.\n\n3. Iterate over the response data, which contains a list of addresses and their transaction counts. Filter out the addresses that have a non-zero transaction count, as these are considered active wallets.\n\n4. Count the filtered addresses to get the total number of active wallets.\n\nHere is an example using PHP:\n\n```php\n<?php\n// Set the API endpoint\n$apiEndpoint = 'https://nodes.wavesnodes.com';\n\n// Specify the date in YYYY-MM-DD format\n$targetDate = '2022-01-01';\n\n// Set the limit of transactions per page\n$limit = 1000;\n\n// Initialize the page number\n$page = 1;\n\n// Initialize the total number of active wallets\n$totalActiveWallets = 0;\n\ndo {\n // Make a GET request to the /addresses endpoint\n $requestUrl = "{$apiEndpoint}/addresses?page={$page}&limit={$limit}";\n $response = file_get_contents($requestUrl);\n $data = json_decode($response, true);\n\n // Check if the response is successful\n if ($data['status'] === 'success') {\n // Iterate over the addresses\n foreach ($data['addresses'] as $address) {\n // Check if the address has non-zero transactions\n if ($address['transactionCount'] > 0) {\n $totalActiveWallets++;\n }\n }\n }\n\n $page++;\n} while (count($data['addresses']) > 0);\n\necho "Total active wallets on {$targetDate}: {$totalActiveWallets}";\n```\n\nReplace `$targetDate` with the date you want to count the active wallets for. Keep in mind that this method may take a significant amount of time for a large number of wallets, as it retrieves addresses in pages. Adjust the `$limit` value according to your needs." } ] }, "height": 2977337, "applicationStatus": "succeeded", "spentComplexity": 67, "stateChanges": { "data": [ { "key": "SHyMEhvsPhTTiQCfQHbr9xt3McCRhAGPME8PtLz4bNY_9Ba7tjxSEN6U2dAmug28HNQHjNyET1gRZVfrcmgTfsHC_status_chatgpt", "type": "string", "value": "done" }, { "key": "SHyMEhvsPhTTiQCfQHbr9xt3McCRhAGPME8PtLz4bNY_9Ba7tjxSEN6U2dAmug28HNQHjNyET1gRZVfrcmgTfsHC_result_chatgpt", "type": "string", "value": "To find out how many active wallets exist on the Waves blockchain in a certain day, you can use the Waves Node REST API. Follow the steps below:\n\n1. First, you need to set up a connection to the Waves Node API. You can use cURL or any HTTP client library in your preferred programming language.\n\n2. Make a GET request to the `/addresses` endpoint, specifying the number of transactions per page using the `limit` parameter and page number using the `page` parameter. The maximum allowed limit is 1000.\n\n3. Iterate over the response data, which contains a list of addresses and their transaction counts. Filter out the addresses that have a non-zero transaction count, as these are considered active wallets.\n\n4. Count the filtered addresses to get the total number of active wallets.\n\nHere is an example using PHP:\n\n```php\n<?php\n// Set the API endpoint\n$apiEndpoint = 'https://nodes.wavesnodes.com';\n\n// Specify the date in YYYY-MM-DD format\n$targetDate = '2022-01-01';\n\n// Set the limit of transactions per page\n$limit = 1000;\n\n// Initialize the page number\n$page = 1;\n\n// Initialize the total number of active wallets\n$totalActiveWallets = 0;\n\ndo {\n // Make a GET request to the /addresses endpoint\n $requestUrl = "{$apiEndpoint}/addresses?page={$page}&limit={$limit}";\n $response = file_get_contents($requestUrl);\n $data = json_decode($response, true);\n\n // Check if the response is successful\n if ($data['status'] === 'success') {\n // Iterate over the addresses\n foreach ($data['addresses'] as $address) {\n // Check if the address has non-zero transactions\n if ($address['transactionCount'] > 0) {\n $totalActiveWallets++;\n }\n }\n }\n\n $page++;\n} while (count($data['addresses']) > 0);\n\necho "Total active wallets on {$targetDate}: {$totalActiveWallets}";\n```\n\nReplace `$targetDate` with the date you want to count the active wallets for. Keep in mind that this method may take a significant amount of time for a large number of wallets, as it retrieves addresses in pages. Adjust the `$limit` value according to your needs." }, { "key": "SHyMEhvsPhTTiQCfQHbr9xt3McCRhAGPME8PtLz4bNY_9Ba7tjxSEN6U2dAmug28HNQHjNyET1gRZVfrcmgTfsHC_commit_height_chatgpt", "type": "integer", "value": 2977337 }, { "key": "SHyMEhvsPhTTiQCfQHbr9xt3McCRhAGPME8PtLz4bNY_9Ba7tjxSEN6U2dAmug28HNQHjNyET1gRZVfrcmgTfsHC_commit_timestamp_chatgpt", "type": "integer", "value": 1708001167257 }, { "key": "checked_out_by_92ovWCy1Zf8CSsTLLLssC74m8yn5yPMqVp9fmVacou97_chatgpt_SHyMEhvsPhTTiQCfQHbr9xt3McCRhAGPME8PtLz4bNY_9Ba7tjxSEN6U2dAmug28HNQHjNyET1gRZVfrcmgTfsHC", "value": null } ], "transfers": [], "issues": [], "reissues": [], "burns": [], "sponsorFees": [], "leases": [], "leaseCancels": [], "invokes": [] } }

github/deemru/w8io/169f3d6 
16.03 ms