bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
18 lines (17 loc) • 472 B
TypeScript
import { Bitcoind } from '../../types';
type SendmsgToPeerParams = {
bitcoind: Bitcoind;
peer_id: number;
msg_type: string;
msg: string;
};
/**
* 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 declare function sendmsgToPeer(params: SendmsgToPeerParams): Promise<any>;
export {};