Files
xrpl-dev-portal/content/references/rippled-api/admin-rippled-methods/peer-management-methods/peer_reservations_add.md

1.8 KiB

peer_reservations_add

[Source]

The {{currentpage.name}} method adds a reserved slot for a specific peer server in the XRP Ledger peer-to-peer network.

The {{currentpage.name}} method is an admin method that cannot be run by unprivileged users.

Request Format

An example of the request format:

WebSocket

{
    TODO
}

JSON-RPC

{
    "method": "{{currentpage.name}}",
    "params": [
        TODO
    ]
}

Commandline

#Syntax: {{currentpage.name}} TODO
rippled {{currentpage.name}}

The request includes the following parameters:

Field Type Description
TODO_request_params

Response Format

An example of a successful response:

JSON-RPC

{
  TODO
}

Commandline

Loading: "/etc/rippled.cfg"
Connecting to 127.0.0.1:5005

{
  TODO
}

The response follows the [standard format][], with a successful result containing the following fields:

Field Type Description
TODO_params

Possible Errors

  • Any of the [universal error types][].
  • TODO_errors
  • invalidParams - One or more fields are specified incorrectly, or one or more required fields are missing.

{% include '_snippets/rippled-api-links.md' %} {% include '_snippets/tx-type-links.md' %} {% include '_snippets/rippled_versions.md' %}