{
  "openapi": "3.0.1",
  "info": {
    "title": "Solana On-chain: Token Risk, Snipers, Wallet PnL",
    "description": "On-chain checks for Solana tokens and wallets: rug risk (LP burn, mint and freeze authority, holders), early buyers and snipers, the most profitable wallets on a token, deployer rug history, real sell slippage, organic volume, bulk prices, wallet PnL and win rate, and market-cap milestone studies.",
    "version": "1.0",
    "x-build-id": "DwoeXIRKFGdpL6bEQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/stlakchain~solana-token-wallet-onchain/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-stlakchain-solana-token-wallet-onchain",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/stlakchain~solana-token-wallet-onchain/runs": {
      "post": {
        "operationId": "runs-sync-stlakchain-solana-token-wallet-onchain",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/stlakchain~solana-token-wallet-onchain/run-sync": {
      "post": {
        "operationId": "run-sync-stlakchain-solana-token-wallet-onchain",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "dataset"
        ],
        "properties": {
          "dataset": {
            "title": "Dataset",
            "enum": [
              "token-risk",
              "token-early-buyers",
              "token-pnl-leaders",
              "wallet-pnl",
              "token-deployer",
              "token-exit-check",
              "token-quality",
              "token-prices",
              "milestone-study"
            ],
            "type": "string",
            "description": "What to fetch. Each dataset uses the fields below marked for it; fields for other datasets are ignored.",
            "default": "token-risk"
          },
          "tokens": {
            "title": "Token addresses",
            "type": "array",
            "description": "Solana token mint address. Add as many as you need; each token is looked up in turn. Used by: token-risk, token-early-buyers, token-pnl-leaders, token-deployer, token-exit-check, token-quality, token-prices.",
            "default": [
              "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"
            ],
            "items": {
              "type": "string"
            }
          },
          "wallets": {
            "title": "Wallet addresses",
            "type": "array",
            "description": "Solana wallet address. Add as many as you need; each wallet is looked up in turn. Used by: wallet-pnl.",
            "default": [
              "498g1rVnFcnjBjpfw1xyqA1WvgQXUU8RWuELjxkjAayQ"
            ],
            "items": {
              "type": "string"
            }
          },
          "limit": {
            "title": "Limit",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many early buyers to return (default 20). Used by: token-early-buyers, token-pnl-leaders."
          },
          "includeHoldings": {
            "title": "Include holdings",
            "type": "boolean",
            "description": "Also return current token balances by value (default true). Used by: wallet-pnl."
          },
          "deployer": {
            "title": "Deployer",
            "type": "string",
            "description": "Skip the lookup and inspect this deployer wallet directly. Used by: token-deployer."
          },
          "usd": {
            "title": "USD",
            "minimum": 10,
            "maximum": 1000000,
            "type": "integer",
            "description": "Sell size in USD to quote (default 10,000). Used by: token-exit-check."
          },
          "thresholdUsd": {
            "title": "Threshold USD",
            "minimum": 10000,
            "maximum": 1000000000,
            "type": "integer",
            "description": "The market cap milestone (default 3,000,000). Used by: milestone-study."
          },
          "cohort": {
            "title": "Cohort",
            "enum": [
              "launches",
              "reached"
            ],
            "type": "string",
            "description": "'launches' (default) = every token created in the window, the only honest base rate. 'reached' = tokens that got near the milestone, ~7x more crossers per call but biased toward winners. Used by: milestone-study."
          },
          "daysAgoFrom": {
            "title": "Days ago from",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Cohort start, days ago (default 120). Used by: milestone-study."
          },
          "daysAgoTo": {
            "title": "Days ago to",
            "minimum": 0,
            "maximum": 364,
            "type": "integer",
            "description": "Cohort end, days ago (default 30). Leave a gap to now so tokens have had time to move. Used by: milestone-study."
          },
          "sample": {
            "title": "Sample",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "How many tokens to study (default 25). Each costs one upstream call. Under the 'launches' cohort roughly 1 in 20 crosses $3M, so a small sample measures the base rate but rarely enough crossers for the rest. Used by: milestone-study."
          },
          "minPeakMultiple": {
            "title": "Min peak multiple",
            "minimum": 1,
            "type": "integer",
            "description": "What counts as 'went higher' (default 1.5x). Do not set this to 1.0: reaching the line requires settling above it, so a later close above it is near-guaranteed and 'went higher' would read ~100% by construction. Used by: milestone-study."
          },
          "maxItems": {
            "title": "Maximum rows",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after this many rows, whatever the inputs would produce. Caps the cost of a run.",
            "default": 1000
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}