bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
16 lines (15 loc) • 559 B
JavaScript
// Auto synced from github actions. Don't change this file
import { __rest } from "tslib";
import request from '../../rpc-request';
/**
* 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) {
var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]);
return request({ method: 'sendmsgtopeer', params: methodParams }, bitcoind);
}