// Auto synced from github actions. Don't change this file

import { Bitcoind } from '../../types.js'
import request from '../../rpc-request.js'

type WalletDisplayAddressParams = {
  bitcoind: Bitcoind
  /* bitcoin address to display */
  address: string
}

/**
 * walletdisplayaddress "address"
 *
 * Display address on an external signer for verification.
 *
 */
export function walletDisplayAddress(params: WalletDisplayAddressParams) {
  const { bitcoind, ...methodParams } = params
  return request(
    { method: 'walletdisplayaddress', params: methodParams },
    bitcoind
  )
}
