@bloom-trade/finance-connector
Version:
Is a package entended to be used with multiple web3 and web2 providers to interact with blockchains.
34 lines (33 loc) • 1.02 kB
TypeScript
import { ProviderConnector } from '../connector';
import { IProviderConnector } from '../../@types/index';
import { Chain, Provider, Transaction } from '@bloom-trade/types';
export declare class ProviderConnectorImpl extends ProviderConnector implements IProviderConnector {
getBalance(): Promise<{
asset: string;
balance: string;
description: string;
detail: {
address: string;
provider: string;
chain: string;
balance: string;
}[];
}[]>;
getTransactionHistory(filters: {
from: 'beginning' | {
selfCustodialProviders?: {
chain: Chain;
block: number;
}[];
custodialProviders?: {
id: Provider;
block?: number;
date: number;
}[];
};
order?: 'asc' | 'desc';
filters?: {
onlyStables?: boolean;
};
}): Promise<Transaction[] | undefined>;
}