Functions
Const call
call( network: Network , params: [ { data?: undefined | string ; from?: undefined | string ; gas?: undefined | number ; gasPrice?: undefined | number ; to: string ; value?: undefined | number } , Tag ] ) : Promise < string >
Parameters
params: [ { data?: undefined | string ; from?: undefined | string ; gas?: undefined | number ; gasPrice?: undefined | number ; to: string ; value?: undefined | number } , Tag ]
Returns Promise < string >
Const getChainId
getChainId( network: Network ) : Promise < number >
Parameters
Returns Promise < number >
Const getEtherBalances
getEtherBalances( network: Network , addresses: string [] ) : Promise < Record < string , bigint > >
Parameters
Returns Promise < Record < string , bigint > >
Const getNameHash
getNameHash( name: string ) : string
Parameters
Returns string
Const getNetwork
getNetwork( provider: string ) : Promise < undefined | Network >
Parameters
Returns Promise < undefined | Network >
Const getSupportedNetworks
Const getTokenBalances
getTokenBalances( network: Network , tokenAddress: string , addresses: string [] ) : Promise < Record < string , bigint > >
Parameters
tokenAddress: string
addresses: string []
Returns Promise < Record < string , bigint > >
Const getVersion
getVersion( network: Network ) : Promise < number >
Parameters
Returns Promise < number >
Const isEthScanSupported
isEthScanSupported( network: Network ) : Promise < boolean >
Parameters
Returns Promise < boolean >
Const isValidAddress
isValidAddress( address: string ) : boolean
Parameters
Returns boolean
Const loadBalance
loadBalance<F, First>( fn: F , values: First [] , retries?: number ) : ( ... args: Parameters < OmitFirstArg < F > > ) => Promise < Await < ReturnType < F > > >
Type parameters
F: ( first: First , ... args: any [] ) => Promise < any >
First
Parameters
fn: F
values: First []
retries: number = 3
Returns ( ... args: Parameters < OmitFirstArg < F > > ) => Promise < Await < ReturnType < F > > >
( ... args: Parameters < OmitFirstArg < F > > ) : Promise < Await < ReturnType < F > > >
Parameters
Rest ... args: Parameters < OmitFirstArg < F > >
Returns Promise < Await < ReturnType < F > > >
Const normalise
normalise( name: string ) : string
Parameters
Returns string
Const resolveName
resolveName( network: Network , name: string ) : Promise < undefined | string >
Parameters
Returns Promise < undefined | string >
roundRobin
roundRobin<T>( array: T [] ) : Generator < T , T >
Type parameters
Parameters
Returns Generator < T , T >
Legend
Variable
Function
Function with type parameter
Type alias
Interface
Interface with type parameter
Send an
eth_call
call to the network.