List the available methods on the JSON-RPC API
The JSON-RPC API behind this HTTP API can have an arbitrary set of endpoints enabled.
This method allows an application to check for the existence of the JSON-RPC before calling the requests method.
Responses
- 200
- 400
- 500
Successful listing
application/json
Schema
Example (from schema)
Example 1
Schema
result object
{
"result": {
"registeredMethods": [
null
]
}
}
Listing the registered methods
{
"result": {
"registeredMethods": [
"client.connect_wallet",
"client.disconnect_wallet",
"client.list_keys",
"client.send_transaction"
]
}
}
Something went wrong
application/json
Schema
Example (from schema)
Schema
errors object
{
"errors": {
"message": "string",
"data": "string"
}
}
Something failed internally. Nothing can be done about it.
GET /v2/methods
Request
Request
curl / cURL
curl -L -X GET 'http://localhost:1789/api/v2/methods' \
-H 'Accept: application/json'
python / requests
curl -L -X GET 'http://localhost:1789/api/v2/methods' \
-H 'Accept: application/json'
go / native
curl -L -X GET 'http://localhost:1789/api/v2/methods' \
-H 'Accept: application/json'
nodejs / axios
curl -L -X GET 'http://localhost:1789/api/v2/methods' \
-H 'Accept: application/json'