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