diff --git a/docs/src/api/methods/_getBlockTime.mdx b/docs/src/api/methods/_getBlockTime.mdx index 50ef1de6fb..7fc991b5b8 100644 --- a/docs/src/api/methods/_getBlockTime.mdx +++ b/docs/src/api/methods/_getBlockTime.mdx @@ -34,7 +34,6 @@ in a set of recent blocks recorded on the ledger. ### Result: - `` - estimated production time, as Unix timestamp (seconds since the Unix epoch) -- `` - timestamp is not available for this block @@ -54,6 +53,8 @@ curl http://localhost:8899 -X POST -H "Content-Type: application/json" -d ' ### Response: +When a block time is available: + ```json { "jsonrpc": "2.0", @@ -62,6 +63,19 @@ curl http://localhost:8899 -X POST -H "Content-Type: application/json" -d ' } ``` +When a block time is not available: + +```json +{ + "jsonrpc": "2.0", + "error": { + "code": -32004, + "message": "Block not available for slot 150" + }, + "id": 1 +} +``` +