@vafanassieff/bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
14 lines • 614 B
JavaScript
// Auto synced from github actions. Don't change this file
import request from '../../rpc-request.js';
/**
* sendtoaddress "address" amount ( "comment" "comment_to" subtractfeefromamount replaceable conf_target "estimate_mode" avoid_reuse fee_rate verbose )
*
* Send an amount to a given address.
* Requires wallet passphrase to be set with walletpassphrase call if wallet is encrypted.
*
*/
export function sendToAddress(params) {
const { bitcoind, ...methodParams } = params;
return request({ method: 'sendtoaddress', params: methodParams }, bitcoind);
}
//# sourceMappingURL=send-to-address.js.map