UNPKG

bitcoin-cli-ts

Version:

Auto-generated Bitcoin client library for bitcoind JSON-RPC API

15 lines (14 loc) 525 B
// Auto synced from github actions. Don't change this file import { __rest } from "tslib"; import request from '../../rpc-request'; /** * signmessage "address" "message" * * Sign a message with the private key of an address * Requires wallet passphrase to be set with walletpassphrase call if wallet is encrypted. * */ export function signMessage(params) { var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]); return request({ method: 'signmessage', params: methodParams }, bitcoind); }