Skip to content

Commit

Permalink
docs: add all rpc methods
Browse files Browse the repository at this point in the history
  • Loading branch information
theBeardA committed Sep 9, 2023
1 parent 14df07c commit 73c7c42
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions docs/rpc/openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,27 @@
}
]
},
{
"name": "flk_account_info",
"summary": "Retrieves information about a acccount for a public key.",
"params": [
{
"name": "public_key",
"description": "The public key of the account",
"required": true,
"schema": {
"$ref": "#/components/schemas/Address"
}
}
],
"result": {
"name": "account_info",
"description": "Detailed information about the account",
"schema": {
"$ref": "#/components/schemas/AccountInfo"
}
}
},
{
"name": "flk_get_node_info",
"summary": "Retrieves information about a node given its public key.",
Expand Down Expand Up @@ -709,6 +730,24 @@
}
}
]
},
{
"name": "flk_get_last_epoch_hash",
"summary": "Get the hash of the most recently ended epoch.",
"params": [],
"result": {
"name": "LastEpochHash",
"description": "A 32-byte array representing the unique hash of the last epoch.",
"schema": {
"type": "array",
"items": {
"type": "integer",
"format": "uint8"
},
"minItems": 32,
"maxItems": 32
}
}
}
],
"components": {
Expand Down Expand Up @@ -830,6 +869,33 @@
"nonce"
]
},
"AccountInfo": {
"type": "object",
"properties": {
"flk_balance": {
"$ref": "#/components/schemas/HpFixed18",
"description": "The accounts FLK balance"
},
"stables_balance": {
"$ref": "#/components/schemas/HpFixed6",
"description": "The accounts stables balance"
},
"bandwidth_balance": {
"type": "integer"
},
"nonce": {
"type": "integer",
"format":"uint64",
"description": "The nonce of the account"
}
},
"required": [
"flk_balance",
"stables_balance",
"bandwidth_balance",
"nonce"
]
},
"Worker": {
"type": "object",
"properties": {
Expand Down

0 comments on commit 73c7c42

Please sign in to comment.