@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
39 lines • 1.44 kB
TypeScript
import { EncryptKeyResponse, GetObtDataDecryptedResponse, GetObtDataResponse, KeysPair } from '../../entities';
import { RequestConfig } from '../Transactions';
import { Query } from './Query';
export type ObtDataQueryProps = {
fioPublicKey: string;
limit?: number;
offset?: number;
tokenCode?: string;
includeEncrypted?: boolean;
encryptKeys?: Map<string, KeysPair[]>;
getEncryptKey: (fioAddress: string) => Promise<EncryptKeyResponse>;
};
export type ObtDataQueryData = {
fio_public_key: string;
limit?: number;
offset?: number;
};
export declare class ObtDataQuery extends Query<ObtDataQueryData, GetObtDataDecryptedResponse> {
ENDPOINT: "chain/get_obt_data";
isEncrypted: boolean;
props: ReturnType<ObtDataQuery['getResolvedProps']>;
constructor(config: RequestConfig, props: ObtDataQueryProps);
getData: () => {
fio_public_key: string;
limit: number | undefined;
offset: number | undefined;
};
getResolvedProps: (props: ObtDataQueryProps) => {
includeEncrypted: boolean;
tokenCode: string;
fioPublicKey: string;
limit?: number;
offset?: number;
encryptKeys?: Map<string, KeysPair[]>;
getEncryptKey: (fioAddress: string) => Promise<EncryptKeyResponse>;
};
decrypt(result: GetObtDataResponse): Promise<GetObtDataDecryptedResponse>;
}
//# sourceMappingURL=ObtDataQuery.d.ts.map