{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a441589c-e674-423a-9526-d673247869bb",
    "slug": "wallet-auth",
    "name": "wallet-auth",
    "description": "Wallet auth API: SIWE, Nostr NIP-98 and Solana signature verification",
    "url": "https://railway.com/deploy/wallet-auth",
    "upstream": {
      "repo_url": "https://github.com/INAPP-Mobile/wallet-auth"
    }
  },
  "services": [
    {
      "name": "wallet-auth",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/wallet-auth"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PUBLIC_URL",
      "service": "wallet-auth",
      "description": "Canonical public origin (resolves on second deploy).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PAID_VERIFY",
      "service": "wallet-auth",
      "description": "'off' disables the x402 paywall (gate-only mode).",
      "secret": false,
      "strategy": "default",
      "default": "off"
    },
    {
      "key": "X402_PAY_TO",
      "service": "wallet-auth",
      "description": "Wallet receiving x402 payments — replace with your own.",
      "secret": false,
      "strategy": "default",
      "default": "0x90b0dC893406d6eA63bb077ED59F5e8340f98d84"
    },
    {
      "key": "SESSION_SECRET",
      "service": "wallet-auth",
      "description": "Auto-generated HS256 signing secret.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "X402_PRICE_USD",
      "service": "wallet-auth",
      "description": "Price per oracle verification.",
      "secret": false,
      "strategy": "default",
      "default": "$0.001"
    },
    {
      "key": "GATE_COOKIE_NAME",
      "service": "wallet-auth",
      "description": "Forward-auth session cookie name.",
      "secret": false,
      "strategy": "default",
      "default": "wa_session"
    },
    {
      "key": "NONCE_TTL_MINUTES",
      "service": "wallet-auth",
      "description": "Challenge lifetime (minutes).",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "SESSION_TTL_HOURS",
      "service": "wallet-auth",
      "description": "Session token lifetime (hours).",
      "secret": false,
      "strategy": "default",
      "default": "24"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "wallet-auth"
      }
    },
    "cli": "railway deploy --template wallet-auth",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a441589c-e674-423a-9526-d673247869bb",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "e27e7184-e77a-4b95-aa0b-358a3e937f6e": {
                  "icon": null,
                  "name": "wallet-auth",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/wallet-auth",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PUBLIC_URL": {
                      "description": "Canonical public origin (resolves on second deploy).",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "PAID_VERIFY": {
                      "description": "'off' disables the x402 paywall (gate-only mode).",
                      "defaultValue": "off"
                    },
                    "X402_PAY_TO": {
                      "description": "Wallet receiving x402 payments — replace with your own.",
                      "defaultValue": "0x90b0dC893406d6eA63bb077ED59F5e8340f98d84"
                    },
                    "SESSION_SECRET": {
                      "description": "Auto-generated HS256 signing secret.",
                      "defaultValue": "{{SESSION_SECRET}}"
                    },
                    "X402_PRICE_USD": {
                      "description": "Price per oracle verification.",
                      "defaultValue": "$0.001"
                    },
                    "X402_CDP_KEY_ID": {
                      "isOptional": true,
                      "description": "Coinbase CDP API key ID for the x402 facilitator.",
                      "defaultValue": ""
                    },
                    "GATE_COOKIE_NAME": {
                      "description": "Forward-auth session cookie name.",
                      "defaultValue": "wa_session"
                    },
                    "NONCE_TTL_MINUTES": {
                      "description": "Challenge lifetime (minutes).",
                      "defaultValue": "10"
                    },
                    "SESSION_TTL_HOURS": {
                      "description": "Session token lifetime (hours).",
                      "defaultValue": "24"
                    },
                    "X402_CDP_KEY_SECRET": {
                      "isOptional": true,
                      "description": "Coinbase CDP API key secret (PEM EC or base64 Ed25519).",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "e27e7184-e77a-4b95-aa0b-358a3e937f6e": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-13T10:14:32.962Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-12T17:46:29.796Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_8c385b8f487a4f6ab7eb",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 79,
    "typical_build_seconds": 21,
    "typical_start_seconds": 10,
    "slowest_service": "wallet-auth"
  }
}
