mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-04 15:23:39 +00:00
14 lines
513 B
JavaScript
14 lines
513 B
JavaScript
// @flow
|
|
import Big from 'bignumber.js';
|
|
import type { TransactionWithoutGas } from 'libs/transaction';
|
|
import type { Token } from 'config/data';
|
|
|
|
export interface INode {
|
|
getBalance(_address: string): Promise<Big>,
|
|
getTokenBalance(_address: string, _token: Token): Promise<Big>,
|
|
getTokenBalances(_address: string, _tokens: Token[]): Promise<Big>,
|
|
estimateGas(_tx: TransactionWithoutGas): Promise<Big>,
|
|
getTransactionCount(_address: string): Promise<string>,
|
|
sendRawTx(_tx: string): Promise<string>
|
|
}
|