You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Payer Private Key |`true`|`--payer.private-key`|`XMTPD_PAYER_PRIVATE_KEY`| The `secp256k1` private key of the Ethereum Account you have already funded in the Funding Portal. Used to sign transactions and pay fees from your payer allowance in the Payer Registry smart contract. |
162
+
| App Chain RPC URL |`true`|`--contracts.app-chain.rpc-url`|`XMTPD_APP_CHAIN_RPC_URL`| The RPC URL of your Blockchain RPC provider's endpoint for XMTP Chain |
163
+
| Settlement Chain RPC URL |`true`|`--contracts.settlement-chain.rpc-url`|`XMTPD_SETTLEMENT_CHAIN_RPC_URL`| The RPC URL of your Blockchain RPC provider's endpoint for the Base chain |
162
164
| App Chain WSS URL |`true`|`--contracts.app-chain.wss-url`|`XMTPD_APP_CHAIN_WSS_URL`| The websocket URL of your Blockchain RPC provider's endpoint for XMTP Chain |
163
165
| Settlement Chain WSS URL |`true`|`--contracts.settlement-chain.wss-url`|`XMTPD_SETTLEMENT_CHAIN_WSS_URL`| The websocket URL of your Blockchain RPC provider's endpoint for the Base chain |
164
-
| Environment |`true`|`--contracts.environment`|`XMTPD_CONTRACTS_ENVIRONMENT`| The environment your XMTP Gateway Service will run in. Valid values are `local`, `testnet`, and `mainnet`|
165
-
| Enable Redis |`true`|`--redis.enable`|`XMTPD_REDIS_ENABLE`| Use Redis for nonce management and rate limiting. |
166
+
| Environment |`true`|`--contracts.environment`|`XMTPD_CONTRACTS_ENVIRONMENT`| The environment your XMTP Gateway Service will run in. Valid values are `anvil`, `testnet`, and `mainnet`|
166
167
| Redis Connection String |`false`|`--redis.connection-string`|`XMTPD_REDIS_CONNECTION_STRING`| The connection string for your Redis instance |
log.Fatalf("Failed to build gateway service: %v", err)
431
+
}
432
+
433
+
gatewayService.WaitForShutdown()
434
+
}
435
+
436
+
```
437
+
395
438
:::
396
439
397
440
## Authorize requests
@@ -443,7 +486,7 @@ We provide a Docker image that corresponds to the bare bones example above that
443
486
docker run -p 5050:5050 -p 5055:5055 -e XMTPD_PAYER_PRIVATE_KEY=... xmtp/xmtpd-gateway:main
444
487
```
445
488
446
-
Most production apps will require some level of customization to authorize user requests. We provide a sample Dockerfile in the xmtpd [`dev/docker`](https://github.com/xmtp/xmtpd/blob/main/dev/docker/gateway.Dockerfile) directory that you can use as a starting point.
489
+
Most production apps will require some level of customization to authorize user requests. You can fork our [example repository](https://github.com/xmtp/gateway-service-example), which includes a Dockerfile and a sample configuration.
447
490
448
491
The system is able to run without any external dependencies, but we recommend configuring a Redis instance to use for nonce management and rate limiting.
0 commit comments