1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "source": """// SPDX-License-Identifier: MIT
9pragma solidity ^0.8.20;
10
11contract Vault {
12 address public owner;
13 mapping(address => uint256) public bal;
14
15 constructor() { owner = msg.sender; }
16
17 function withdraw(uint256 a) external {
18 require(bal[msg.sender] >= a);
19 (bool ok, ) = msg.sender.call{value: a}(\"\");
20 require(ok);
21 bal[msg.sender] -= a;
22 }
23}
24""" }
25
26
27run = client.actor("shroud-audit/solidity-security-scanner").call(run_input=run_input)
28
29
30print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
31for item in client.dataset(run.default_dataset_id).iterate_items():
32 print(item)
33
34