1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "tokens": [
12 {
13 "chain": "base",
14 "tokenAddress": "0x4200000000000000000000000000000000000006",
15 "name": "Synthetic Base Example",
16 "symbol": "DEMO",
17 "decimals": 18,
18 "websiteUrl": "https://example.com",
19 "socialUrls": [
20 "https://example.com/community"
21 ]
22 },
23 {
24 "chain": "solana",
25 "tokenAddress": "So11111111111111111111111111111111111111112",
26 "name": "Synthetic Solana Example",
27 "symbol": "DEMO",
28 "decimals": 9
29 }
30 ]
31};
32
33
34const run = await client.actor("afkdigital/new-token-social-liquidity-enricher").call(input);
35
36
37console.log('Results from dataset');
38console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
39const { items } = await client.dataset(run.defaultDatasetId).listItems();
40items.forEach((item) => {
41 console.dir(item);
42});
43
44