{
  "manifest_version": "1.0.0",
  "template": {
    "id": "72e927f0-f161-44d9-a592-2a3ce9694e18",
    "slug": "pumplexity-dex-agent",
    "name": "pumplexity-dex-agent",
    "description": "Pumplexity DEX Agent is a self-hosted Solana trading agent.",
    "url": "https://railway.com/deploy/pumplexity-dex-agent",
    "upstream": {
      "repo_url": "https://github.com/pumplexity/pumplexity-dex-agent"
    }
  },
  "services": [
    {
      "name": "pumplexity-dex-agent",
      "source": {
        "repo": "https://github.com/pumplexity/pumplexity-dex-agent"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "AGENT_KEY",
      "service": "pumplexity-dex-agent",
      "description": "Agent key — register your agent at app.pumplexity.com/agents and copy the key shown ONCE on creation.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SOLANA_RPC_URL",
      "service": "pumplexity-dex-agent",
      "description": "Solana RPC. Defaults to the public mainnet RPC, which rate-limits at  ~10 RPS and drops sendRawTransaction broadcasts under load — fine for # testing, NOT recommended for production trading. For reliable fills get  a free Helius URL (60 seconds, 5M req/month free):  https://www.helius.dev/  → sign up → copy Mainnet RPC URL → paste here",
      "secret": false,
      "strategy": "default",
      "default": "https://api.mainnet-beta.solana.com"
    },
    {
      "key": "AGENT_LEDGER_PATH",
      "service": "pumplexity-dex-agent",
      "description": "Ledger storage path. Persists open positions + per-tranche state across restarts. Default is ./data/agent-ledger.json",
      "secret": false,
      "strategy": "default",
      "default": "/data/agent-ledger.json"
    },
    {
      "key": "PUMPLEXITY_API_URL",
      "service": "pumplexity-dex-agent",
      "description": "Pumplexity API base URL.",
      "secret": false,
      "strategy": "default",
      "default": "https://api.pumplexity.com"
    },
    {
      "key": "SOLANA_PRIVATE_KEY",
      "service": "pumplexity-dex-agent",
      "description": "Solana — agent's own keypair (base58 private key). Keep this secret. This wallet executes trades on your behalf and needs a small SOL balance to pay for transactions. The wallet pubkey is what you register in the Agent UI as the \"agent wallet\".",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "pumplexity-dex-agent"
      }
    },
    "cli": "railway deploy --template pumplexity-dex-agent",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "72e927f0-f161-44d9-a592-2a3ce9694e18",
            "serializedConfig": {
              "services": {
                "5cbde062-2eaf-4b3e-ad77-7909ed01bd55": {
                  "name": "pumplexity-dex-agent",
                  "source": {
                    "repo": "pumplexity/pumplexity-dex-agent",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "AGENT_KEY": {
                      "isOptional": false,
                      "description": "Agent key — register your agent at app.pumplexity.com/agents and copy the key shown ONCE on creation.",
                      "defaultValue": "{{AGENT_KEY}}"
                    },
                    "SOLANA_RPC_URL": {
                      "isOptional": true,
                      "description": "Solana RPC. Defaults to the public mainnet RPC, which rate-limits at  ~10 RPS and drops sendRawTransaction broadcasts under load — fine for # testing, NOT recommended for production trading. For reliable fills get  a free Helius URL (60 seconds, 5M req/month free):  https://www.helius.dev/  → sign up → copy Mainnet RPC URL → paste here",
                      "defaultValue": "https://api.mainnet-beta.solana.com"
                    },
                    "AGENT_LEDGER_PATH": {
                      "isOptional": false,
                      "description": "Ledger storage path. Persists open positions + per-tranche state across restarts. Default is ./data/agent-ledger.json",
                      "defaultValue": "/data/agent-ledger.json"
                    },
                    "PUMPLEXITY_API_URL": {
                      "isOptional": false,
                      "description": "Pumplexity API base URL.",
                      "defaultValue": "https://api.pumplexity.com"
                    },
                    "SOLANA_PRIVATE_KEY": {
                      "isOptional": false,
                      "description": "Solana — agent's own keypair (base58 private key). Keep this secret. This wallet executes trades on your behalf and needs a small SOL balance to pay for transactions. The wallet pubkey is what you register in the Agent UI as the \"agent wallet\".",
                      "defaultValue": "{{SOLANA_PRIVATE_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-09T04:02:44.926Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_3a1da9ce5cb348589da8",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": false,
        "detail": "1 service(s) crashed within 30s"
      }
    ]
  }
}
