@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
26 lines (21 loc) • 621 B
text/typescript
import { Query } from './Query'
import { PublicAddressResponse } from '../../entities/PublicAddressResponse'
export class GetPublicAddress extends Query<PublicAddressResponse> {
ENDPOINT: string = 'chain/get_pub_address'
fioAddress: string
chainCode: string
tokenCode: string
constructor(fioAddress: string, chainCode: string, tokenCode: string) {
super()
this.fioAddress = fioAddress
this.chainCode = chainCode
this.tokenCode = tokenCode
}
async getData() {
return {
fio_address: this.fioAddress,
chain_code: this.chainCode,
token_code: this.tokenCode
}
}
}