@fioprotocol/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
30 lines (24 loc) • 772 B
text/typescript
import {EndPoint, NftsResponse} from '../../entities'
import {RequestConfig} from '../Transactions'
import {Query} from './Query'
export type NftsByFioAddressQueryProps = {
fioAddress: string
limit?: number
offset?: number,
}
export type NftsByFioAddressQueryData = {
fio_address: string
limit?: number
offset?: number,
}
export class GetNftsByFioAddress extends Query<NftsByFioAddressQueryData, NftsResponse> {
public ENDPOINT = `chain/${EndPoint.getNftsFioAddress}` as const
constructor(config: RequestConfig, public props: NftsByFioAddressQueryProps) {
super(config)
}
public getData = () => ({
fio_address: this.props.fioAddress,
limit: this.props.limit,
offset: this.props.offset,
})
}