@vafanassieff/bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
26 lines (22 loc) • 731 B
text/typescript
// Auto synced from github actions. Don't change this file
import { Bitcoind } from '../../types.js'
import request from '../../rpc-request.js'
type AddPeerAddressParams = {
bitcoind: Bitcoind
/* The IP address of the peer */
address: string
/* The port of the peer */
port: number
/* If true, attempt to add the peer to the tried addresses table */
tried?: boolean
}
/**
* addpeeraddress "address" port ( tried )
*
* Add the address of a potential peer to an address manager table. This RPC is for testing only.
*
*/
export function addPeerAddress(params: AddPeerAddressParams) {
const { bitcoind, ...methodParams } = params
return request({ method: 'addpeeraddress', params: methodParams }, bitcoind)
}