@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) • 645 B
text/typescript
import { FioDomainsResponse } from '../../entities/FioDomainsResponse'
import { Query } from './Query'
export class GetDomains extends Query<FioDomainsResponse> {
public ENDPOINT: string = 'chain/get_fio_domains'
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 }
}
}