UNPKG

bitcoin-cli-ts

Version:

Auto-generated Bitcoin client library for bitcoind JSON-RPC API

16 lines (15 loc) 619 B
// Auto synced from github actions. Don't change this file import { __rest } from "tslib"; import request from '../../rpc-request'; /** * ping * * Requests that a ping be sent to all other nodes, to measure ping time. * Results provided in getpeerinfo, pingtime and pingwait fields are decimal seconds. * Ping command is handled in queue with all other commands, so it measures processing backlog, not just network ping. * */ export function ping(params) { var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]); return request({ method: 'ping', params: methodParams }, bitcoind); }