Search
Preparing search index...
The search index is not available
@psychedelic/plug-controller
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@psychedelic/plug-controller
PlugKeyRing/modules/NetworkModule/Network
Mainnet
Class Mainnet
Hierarchy
Network
Mainnet
Index
Constructors
constructor
Properties
default
Tokens
host
id
is
Custom
ledger
Canister
Id
name
registeredNFTS
registered
Tokens
Accessors
tokens
Methods
create
Agent
edit
get
Nft
Info
get
Token
Info
get
Tokens
registerNFT
register
Token
remove
Token
toJSON
token
ByCanister
Id
Constructors
constructor
new
Mainnet
(
__namedParameters
:
{
registeredTokens
?:
RegisteredToken
[]
;
onChange
?:
any
}
, fetch
:
any
)
:
Mainnet
Parameters
__namedParameters:
{
registeredTokens
?:
RegisteredToken
[]
;
onChange
?:
any
}
Optional
registered
Tokens
?:
RegisteredToken
[]
on
Change
:
function
on
Change
(
)
:
void
Returns
void
fetch:
any
Returns
Mainnet
Properties
default
Tokens
default
Tokens
:
StandardToken
[]
host
host
:
string
id
id
:
string
is
Custom
is
Custom
:
boolean
Optional
ledger
Canister
Id
ledger
Canister
Id
:
string
name
name
:
string
registeredNFTS
registeredNFTS
:
RegisteredNFT
[]
registered
Tokens
registered
Tokens
:
RegisteredToken
[]
Accessors
tokens
get
tokens
(
)
:
StandardToken
[]
Returns
StandardToken
[]
Methods
create
Agent
create
Agent
(
__namedParameters
:
{
defaultIdentity
:
SignIdentity
}
)
:
HttpAgent
Parameters
__namedParameters:
{
defaultIdentity
:
SignIdentity
}
default
Identity
:
SignIdentity
Returns
HttpAgent
edit
edit
(
)
:
void
Returns
void
get
Nft
Info
get
Nft
Info
(
__namedParameters
:
Object
)
:
Promise
<
{
canisterId
:
string
;
description
?:
string
;
icon
?:
string
;
name
:
string
;
registeredBy
:
never
[]
;
standard
:
string
;
tokens
:
NFTDetails
<
string
|
bigint
>
[]
}
>
Parameters
__namedParameters:
Object
Returns
Promise
<
{
canisterId
:
string
;
description
?:
string
;
icon
?:
string
;
name
:
string
;
registeredBy
:
never
[]
;
standard
:
string
;
tokens
:
NFTDetails
<
string
|
bigint
>
[]
}
>
get
Token
Info
get
Token
Info
(
__namedParameters
:
Object
)
:
Promise
<
RegisteredToken
>
Parameters
__namedParameters:
Object
Returns
Promise
<
RegisteredToken
>
get
Tokens
get
Tokens
(
walletId
:
any
)
:
StandardToken
[]
Parameters
walletId:
any
Returns
StandardToken
[]
registerNFT
registerNFT
(
__namedParameters
:
Object
)
:
Promise
<
RegisteredNFT
[]
>
Parameters
__namedParameters:
Object
Returns
Promise
<
RegisteredNFT
[]
>
register
Token
register
Token
(
__namedParameters
:
{
canisterId
:
string
;
defaultIdentity
:
SignIdentity
;
logo
?:
string
;
standard
:
string
;
walletId
:
string
}
)
:
Promise
<
StandardToken
[]
>
Parameters
__namedParameters:
{
canisterId
:
string
;
defaultIdentity
:
SignIdentity
;
logo
?:
string
;
standard
:
string
;
walletId
:
string
}
canister
Id
:
string
default
Identity
:
SignIdentity
Optional
logo
?:
string
standard
:
string
wallet
Id
:
string
Returns
Promise
<
StandardToken
[]
>
remove
Token
remove
Token
(
__namedParameters
:
{
canisterId
:
string
}
)
:
Promise
<
RegisteredToken
[]
>
Parameters
__namedParameters:
{
canisterId
:
string
}
canister
Id
:
string
Returns
Promise
<
RegisteredToken
[]
>
toJSON
toJSON
(
)
:
Omit
<
NetworkParams
,
"onChange"
>
Returns
Omit
<
NetworkParams
,
"onChange"
>
token
ByCanister
Id
token
ByCanister
Id
(
canisterId
:
string
)
:
undefined
|
StandardToken
Parameters
canisterId:
string
Returns
undefined
|
StandardToken
Modules
Plug
Key
Ring/modules/
Network
Module/
Network
Mainnet
constructor
default
Tokens
host
id
is
Custom
ledger
Canister
Id
name
registeredNFTS
registered
Tokens
tokens
create
Agent
edit
get
Nft
Info
get
Token
Info
get
Tokens
registerNFT
register
Token
remove
Token
toJSON
token
ByCanister
Id
Network
Edit
Network
Params
Network
Params
RegisteredNFT
Registered
Token
unique
Tokens
Legend
Variable
Function
Function with type parameter
Type alias
Type alias with type parameter
Class
Class with type parameter
Constructor
Method
Interface
Interface with type parameter
Inherited property
Inherited method
Enumeration