UNPKG

@vafanassieff/bitcoin-cli-ts

Version:

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

15 lines 542 B
// Auto synced from github actions. Don't change this file import request from '../../rpc-request.js'; /** * sendmsgtopeer peer_id "msg_type" "msg" * * Send a p2p message to a peer specified by id. * The message type and body must be provided, the message header will be generated. * This RPC is for testing only. * */ export function sendmsgToPeer(params) { const { bitcoind, ...methodParams } = params; return request({ method: 'sendmsgtopeer', params: methodParams }, bitcoind); } //# sourceMappingURL=sendmsg-to-peer.js.map