import type { KyInstance } from 'ky' export interface GetBitcoinAddressOutput { address: string } type GetBitcoinAddress = () => Promise export const createGetBitcoinAddress = ( instance: Readonly ): GetBitcoinAddress => { return async () => { return instance.get('account/address/bitcoin').json() } }