import type { KyInstance } from 'ky' export interface AddBitcoinAddressInput { format?: 'p2tr' | 'p2wpkh' } export interface AddBitcoinAddressOutput { address: string createdAt: string } type AddBitcoinAddress = ( input?: Readonly ) => Promise export const createAddBitcoinAddress = ( instance: Readonly ): AddBitcoinAddress => { return async (input) => { return instance.post('account/address/bitcoin', { json: input }).json() } }