dAppBooster
Preparing search index...
utils/tokenListsCache
addTokenToTokenList
Function addTokenToTokenList
addTokenToTokenList
(
token
:
{
address
:
string
;
chainId
:
number
;
decimals
:
number
;
extensions
?:
Record
<
string
,
|
string
|
number
|
bigint
|
boolean
|
Record
<
string
,
|
string
|
number
|
bigint
|
boolean
|
Record
<
string
,
string
|
number
|
bigint
|
boolean
|
null
|
undefined
>
|
null
|
undefined
,
>
|
null
|
undefined
,
>
;
logoURI
?:
string
;
name
:
string
;
symbol
:
string
;
}
,
)
:
void
Updates the token lists cache with the provided token.
Parameters
token
:
{
address
:
string
;
chainId
:
number
;
decimals
:
number
;
extensions
?:
Record
<
string
,
|
string
|
number
|
bigint
|
boolean
|
Record
<
string
,
|
string
|
number
|
bigint
|
boolean
|
Record
<
string
,
string
|
number
|
bigint
|
boolean
|
null
|
undefined
>
|
null
|
undefined
,
>
|
null
|
undefined
,
>
;
logoURI
?:
string
;
name
:
string
;
symbol
:
string
;
}
The token to add to the cache.
Returns
void
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
dAppBooster
Loading...
Updates the token lists cache with the provided token.