diff --git a/book/src/jsonrpc-api.md b/book/src/jsonrpc-api.md index 831680b75f..a008f52b90 100644 --- a/book/src/jsonrpc-api.md +++ b/book/src/jsonrpc-api.md @@ -22,8 +22,9 @@ Methods --- * [confirmTransaction](#confirmtransaction) -* [getBalance](#getbalance) * [getAccountInfo](#getaccountinfo) +* [getBalance](#getbalance) +* [getConfirmationTime](#getconfirmationTime) * [getLastId](#getlastid) * [getSignatureStatus](#getsignaturestatus) * [getTransactionCount](#gettransactioncount) @@ -201,6 +202,25 @@ curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1, "m {"jsonrpc":"2.0","result":268,"id":1} ``` +--- +### getConfirmationTime +Returns the current cluster confirmation time in milliseconds + +##### Parameters: +None + +##### Results: +* `integer` - confirmation time in milliseconds, as unsigned 64-bit integer + +##### Example: +```bash +// Request +curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1, "method":"getConfirmationTime"}' http://localhost:8899 + +// Result +{"jsonrpc":"2.0","result":500,"id":1} +``` + --- ### requestAirdrop