From dae3bf30c70633eb8347ef28caf2644df74131b1 Mon Sep 17 00:00:00 2001 From: Boris Oncev Date: Wed, 7 Aug 2024 12:39:03 +0200 Subject: [PATCH] update RPC docs --- node-daemon/docs/RPC.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/node-daemon/docs/RPC.md b/node-daemon/docs/RPC.md index 88623f19e..277306263 100644 --- a/node-daemon/docs/RPC.md +++ b/node-daemon/docs/RPC.md @@ -347,6 +347,41 @@ EITHER OF 2) null ``` +### Method `chainstate_pool_data` + +Returns the pool data of the pool associated with the given pool address. + +Returns `None` (null) if the pool is not found. + + +Parameters: +``` +{ "pool_address": string } +``` + +Returns: +``` +EITHER OF + 1) { + "pledge": { + "atoms": number string, + "decimal": decimal string, + }, + "rewards": { + "atoms": number string, + "decimal": decimal string, + }, + "vrf_public_key": bech32 string, + "decommission_key": bech32 string, + "margin_ratio_per_thousand": string, + "cost_per_block": { + "atoms": number string, + "decimal": decimal string, + }, + } + 2) null +``` + ### Method `chainstate_delegation_share` Given a pool defined by a pool address, and a delegation address,