import { GraphQLClient as GraphQLClientClass } from 'graphql-request/dist/index' ; import { operationsData } from '../operations' ; import { OnchainTransferRequest , Account } from '../types' ; import * as types from './interface' ; import Api from '../api' ; class Send extends Api { constructor ( client ) { super ( client ) ; } getEstimatedNetworkFee ( opts ) { return this . query ( operationsData . getNetworkFees , opts ) ; } sendCrypto ( opts ) { return this . query ( operationsData . send , opts ) ; } getBalance ( opts ? ) { if ( opts && opts . crypto ) { return this . query ( operationsData . getBalance , opts ) ; } return this . query ( operationsData . getAllBalances ) ; } } export default Send ;