UNPKG

@shapeshiftoss/fiosdk

Version:

The Foundation for Interwallet Operability (FIO) is a consortium of leading blockchain wallets, exchanges and payments providers that seeks to accelerate blockchain adoption by reducing the risk, complexity, and inconvenience of sending and receiving cryp

21 lines (17 loc) 656 B
import { FioAddressesResponse } from '../../entities/FioAddressesResponse' import { Query } from './Query' export class GetAddresses extends Query<FioAddressesResponse> { public ENDPOINT: string = 'chain/get_fio_addresses' public fioPublicKey: string public limit: number | null public offset: number | null constructor(fioPublicKey: string, limit: number | null = null, offset: number | null = null) { super() this.fioPublicKey = fioPublicKey this.limit = limit this.offset = offset } public async getData() { return { fio_public_key: this.fioPublicKey, limit: this.limit || null, offset: this.offset || null } } }