@elytro/assets / Modules
Ƭ Result<T
, E
>: Ok
<T
, E
> | Err
<T
, E
>
Defines a Result type, which can be either Ok or Err.
Name |
---|
T |
E |
result/lib.esm/Result.d.ts:4
▸ getAsset(chainId
, address
): Promise
<Result
<TokenInfo
, Error
>>
Get the token information from the token list.
Name | Type |
---|---|
chainId |
number |
address |
string |
Promise
<Result
<TokenInfo
, Error
>>
{Promise<Result<TokenInfo, Error>>}