{
  "manifest_version": "1.0.0",
  "template": {
    "id": "38436daa-edbd-48bd-a4d4-65d206a0f464",
    "slug": "rzhVvU",
    "name": "Abstract Node",
    "description": "Abstract Mainnet External Node",
    "url": "https://railway.com/deploy/rzhVvU",
    "upstream": {
      "image": "matterlabs/external-node:v29.1.0"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:16"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "abstract-node",
      "source": {
        "image": "matterlabs/external-node:v29.1.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/db",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Postgres Data Path",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Postgres Hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Postgres Port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Postgres Username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Postgres DB Name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Postgres Password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Postgres DB Name",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Postgres DB URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Postgres Username",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL Cert Days",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Postgres Password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Databse Public URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Railway Spindown Time",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "RUST_LOG",
      "service": "abstract-node",
      "description": "Logging Options",
      "secret": false,
      "strategy": "default",
      "default": "warn,zksync=info,zksync_core::metadata_calculator=debug,zksync_state=debug,zksync_utils=debug,zksync_web3_decl::client=error"
    },
    {
      "key": "EN_WS_PORT",
      "service": "abstract-node",
      "description": "Websocket RPC Port",
      "secret": false,
      "strategy": "default",
      "default": "3061"
    },
    {
      "key": "DATABASE_URL",
      "service": "abstract-node",
      "description": "Postgres Database URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EN_HTTP_PORT",
      "service": "abstract-node",
      "description": "HTTP RPC Port",
      "secret": false,
      "strategy": "default",
      "default": "3060"
    },
    {
      "key": "EN_L1_CHAIN_ID",
      "service": "abstract-node",
      "description": "ETH Mainnet Chain ID",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "EN_L2_CHAIN_ID",
      "service": "abstract-node",
      "description": "Abstract Chain ID",
      "secret": false,
      "strategy": "default",
      "default": "2741"
    },
    {
      "key": "EN_MAIN_NODE_URL",
      "service": "abstract-node",
      "description": "Abstract Main Node URL",
      "secret": false,
      "strategy": "default",
      "default": "https://api.mainnet.abs.xyz"
    },
    {
      "key": "EN_ETH_CLIENT_URL",
      "service": "abstract-node",
      "description": "ETH L1 RPC URL",
      "secret": false,
      "strategy": "default",
      "default": "https://eth.llamarpc.com"
    },
    {
      "key": "DATABASE_POOL_SIZE",
      "service": "abstract-node",
      "description": "Postgres Database Pool Size",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "EN_PROMETHEUS_PORT",
      "service": "abstract-node",
      "description": "Metrics Port",
      "secret": false,
      "strategy": "default",
      "default": "3322"
    },
    {
      "key": "EN_HEALTHCHECK_PORT",
      "service": "abstract-node",
      "description": "Healthcheck Port",
      "secret": false,
      "strategy": "default",
      "default": "3081"
    },
    {
      "key": "EN_MERKLE_TREE_PATH",
      "service": "abstract-node",
      "description": "Lightweight Storage Path",
      "secret": false,
      "strategy": "default",
      "default": "./db/ext-node/lightweight"
    },
    {
      "key": "EN_STATE_CACHE_PATH",
      "service": "abstract-node",
      "description": "Statekeeper Cache Storage Path",
      "secret": false,
      "strategy": "default",
      "default": "./db/ext-node/state_keeper"
    },
    {
      "key": "EN_GAS_PRICE_SCALE_FACTOR",
      "service": "abstract-node",
      "description": "Gas Price Scaling Factor",
      "secret": false,
      "strategy": "default",
      "default": "1.5"
    },
    {
      "key": "EN_ESTIMATE_GAS_SCALE_FACTOR",
      "service": "abstract-node",
      "description": "Gas Estimation Scaling Factor",
      "secret": false,
      "strategy": "default",
      "default": "1.3"
    },
    {
      "key": "EN_SNAPSHOTS_RECOVERY_ENABLED",
      "service": "abstract-node",
      "description": "Indicates if snapshot recovery should be used",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "EN_SNAPSHOTS_OBJECT_STORE_MODE",
      "service": "abstract-node",
      "description": "GCS Object Storage Mode",
      "secret": false,
      "strategy": "default",
      "default": "GCSAnonymousReadOnly"
    },
    {
      "key": "EN_ESTIMATE_GAS_ACCEPTABLE_OVERESTIMATION",
      "service": "abstract-node",
      "description": "Acceptable Gas Overestimation Level",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "EN_SNAPSHOTS_OBJECT_STORE_BUCKET_BASE_URL",
      "service": "abstract-node",
      "description": "Bucket URL for Snapshot Recovery",
      "secret": false,
      "strategy": "default",
      "default": "raas-abstract-mainnet-external-node-snapshots"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "rzhVvU"
      }
    },
    "cli": "railway deploy --template rzhVvU",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "38436daa-edbd-48bd-a4d4-65d206a0f464",
            "serializedConfig": {
              "services": {
                "9bb23a29-b9f1-47a0-9063-76f4c18ee468": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": "wrapper.sh postgres --port=5432 -c max_connections=200 -c log_error_verbosity=terse -c shared_buffers=2GB -c effective_cache_size=4GB -c maintenance_work_mem=1GB -c checkpoint_completion_target=0.9 -c random_page_cost=1.1 -c effective_io_concurrency=200 -c min_wal_size=4GB -c max_wal_size=16GB -c max_worker_processes=16 -c checkpoint_timeout=1800",
                    "healthcheckPath": null,
                    "preDeployCommand": []
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:16"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Postgres Data Path",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Postgres Hostname",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Postgres Port",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Postgres Username",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Postgres DB Name",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Postgres Password",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Postgres DB Name",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres DB URL",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Postgres Username",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "SSL Cert Days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres Password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Databse Public URL",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Railway Spindown Time",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "9bb23a29-b9f1-47a0-9063-76f4c18ee468": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                },
                "e4c2552b-07eb-4127-8bfe-0e7078e6edaf": {
                  "icon": null,
                  "name": "abstract-node",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "matterlabs/external-node:v29.1.0"
                  },
                  "variables": {
                    "RUST_LOG": {
                      "isOptional": false,
                      "description": "Logging Options",
                      "defaultValue": "warn,zksync=info,zksync_core::metadata_calculator=debug,zksync_state=debug,zksync_utils=debug,zksync_web3_decl::client=error"
                    },
                    "EN_WS_PORT": {
                      "isOptional": true,
                      "description": "Websocket RPC Port",
                      "defaultValue": "3061"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres Database URL",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "EN_HTTP_PORT": {
                      "isOptional": false,
                      "description": "HTTP RPC Port",
                      "defaultValue": "3060"
                    },
                    "EN_L1_CHAIN_ID": {
                      "isOptional": false,
                      "description": "ETH Mainnet Chain ID",
                      "defaultValue": "1"
                    },
                    "EN_L2_CHAIN_ID": {
                      "isOptional": false,
                      "description": "Abstract Chain ID",
                      "defaultValue": "2741"
                    },
                    "EN_MAIN_NODE_URL": {
                      "isOptional": false,
                      "description": "Abstract Main Node URL",
                      "defaultValue": "https://api.mainnet.abs.xyz"
                    },
                    "EN_ETH_CLIENT_URL": {
                      "isOptional": false,
                      "description": "ETH L1 RPC URL",
                      "defaultValue": "https://eth.llamarpc.com"
                    },
                    "DATABASE_POOL_SIZE": {
                      "isOptional": false,
                      "description": "Postgres Database Pool Size",
                      "defaultValue": "10"
                    },
                    "EN_PROMETHEUS_PORT": {
                      "isOptional": true,
                      "description": "Metrics Port",
                      "defaultValue": "3322"
                    },
                    "EN_HEALTHCHECK_PORT": {
                      "isOptional": true,
                      "description": "Healthcheck Port",
                      "defaultValue": "3081"
                    },
                    "EN_MERKLE_TREE_PATH": {
                      "isOptional": false,
                      "description": "Lightweight Storage Path",
                      "defaultValue": "./db/ext-node/lightweight"
                    },
                    "EN_STATE_CACHE_PATH": {
                      "isOptional": false,
                      "description": "Statekeeper Cache Storage Path",
                      "defaultValue": "./db/ext-node/state_keeper"
                    },
                    "EN_GAS_PRICE_SCALE_FACTOR": {
                      "isOptional": false,
                      "description": "Gas Price Scaling Factor",
                      "defaultValue": "1.5"
                    },
                    "EN_ESTIMATE_GAS_SCALE_FACTOR": {
                      "isOptional": false,
                      "description": "Gas Estimation Scaling Factor",
                      "defaultValue": "1.3"
                    },
                    "EN_SNAPSHOTS_RECOVERY_ENABLED": {
                      "isOptional": false,
                      "description": "Indicates if snapshot recovery should be used",
                      "defaultValue": "true"
                    },
                    "EN_SNAPSHOTS_OBJECT_STORE_MODE": {
                      "isOptional": false,
                      "description": "GCS Object Storage Mode",
                      "defaultValue": "GCSAnonymousReadOnly"
                    },
                    "EN_ESTIMATE_GAS_ACCEPTABLE_OVERESTIMATION": {
                      "isOptional": false,
                      "description": "Acceptable Gas Overestimation Level",
                      "defaultValue": "5000"
                    },
                    "EN_SNAPSHOTS_OBJECT_STORE_BUCKET_BASE_URL": {
                      "isOptional": true,
                      "description": "Bucket URL for Snapshot Recovery",
                      "defaultValue": "raas-abstract-mainnet-external-node-snapshots"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "e4c2552b-07eb-4127-8bfe-0e7078e6edaf": {
                      "mountPath": "/db"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-15T04:14:48.407Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-14T08:01:45.003Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_b9455f87f9a0435da8d2",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": false,
        "detail": "1 service(s) crashed within 30s"
      }
    ]
  }
}
