2.2 KiB
seo, labels
| seo | labels | |||
|---|---|---|---|---|
|
|
Configure gRPC
The rippled server has a limited gRPC API it can provide. Clio servers use this API to retrieve data about the latest validated ledgers and transactions. You can enable the gRPC API on your server with a new configuration stanza.
{% admonition type="warning" name="Caution" %}gRPC support is intended specifically for providing data to Clio servers. Breaking changes to the gRPC API may occur without warning or it may be removed entirely in future versions of the server.{% /admonition %}
Prerequisites
To enable gRPC, you must meet the following prerequisites:
-
You must have installed rippled.
-
Your server must be able to bind to the port you choose.
Steps
To enable gRPC on your server, complete the following steps:
-
Ensure the
[port_grpc]stanza is in yourrippledconfig file.[port_grpc] port = 50051 ip = 127.0.0.1portdefines the port the server listens on for gRPC connections from client applications. The recommended port is50051.ipdefines which interfaces the server listens on.127.0.0.1limits connections to the local loopback network (same machine) and is enabled by default. Changing the value to0.0.0.0listens on all available network interfaces.
{% partial file="/docs/_snippets/conf-file-location.md" /%}
-
Start (or restart) the
rippledservice.sudo systemctl restart rippled
See Also
- Concepts:
- Tutorials:
- References:
{% raw-partial file="/docs/_snippets/common-links.md" /%}