multichain-api
Version:
MultiChain JSON-RPC Client
21 lines (20 loc) • 619 B
TypeScript
import { RpcRequest } from '../RpcRequest';
import { RpcResponse } from '../RpcResponse';
/**
* JSON-RPC request for the *getblockhash* command.
*/
export interface GetBlockHashRequest extends RpcRequest {
readonly method: 'getblockhash';
readonly params: [number];
}
/**
* JSON-RPC response for the *getblockhash* command.
*/
export interface GetBlockHashResponse extends RpcResponse {
readonly result: GetBlockHashResult | null;
}
/**
* Result of the *getblockhash* command.
*/
export declare type GetBlockHashResult = any;
export declare function GetBlockHash(height: number): GetBlockHashRequest;