diff --git a/src/RPC/Network.ts b/src/RPC/Network.ts index 0b204a2..de9e874 100644 --- a/src/RPC/Network.ts +++ b/src/RPC/Network.ts @@ -68,4 +68,14 @@ export class Network extends RPCBase { ): Promise<{ addednode: string }> { return this.call<{ addednode: string }>('getaddednodeinfo', dns, node); } + + /** + * Returns the hash of the best block in the longest block chain + * + * @returns {Promise} + * @memberof Network + */ + public async getBestBlockhash(): Promise { + return this.call('getbestblockhash'); + } }