Preparing search index...
The search index is not available
XYO Platform SDK - v3.6.9
XYO Platform SDK
@xyo-network/sdk-utils
MetaMaskConnector
Class MetaMaskConnector
Index
Constructors
constructor
Properties
is
Wallet
Is
Connected
Accessors
chain
Id
current
Account
Methods
connect
Wallet
is
Meta
Mask
Installed
provider
On
Accounts
Changed
provider
On
Chain
Changed
provider
On
Connect
provider
On
Disconnect
provider
Remove
Listener
provider
Remove
Listeners
request
Accounts
sign
Message
web3
Provider
On
web3
Provider
Remove
Listener
web3
Provider
Remove
Listeners
Constructors
constructor
new
MetaMaskConnector
(
provider
?:
BrowserProvider
)
:
MetaMaskConnector
Parameters
Optional
provider
:
BrowserProvider
Returns
MetaMaskConnector
Properties
is
Wallet
Is
Connected
isWalletIsConnected
:
()
=>
boolean
Accessors
chain
Id
get
chainId
()
:
null
|
string
Returns
null
|
string
current
Account
get
currentAccount
()
:
null
|
string
Returns
null
|
string
Methods
connect
Wallet
connectWallet
()
:
Promise
<
void
>
Returns
Promise
<
void
>
is
Meta
Mask
Installed
isMetaMaskInstalled
()
:
true
Returns
true
provider
On
Accounts
Changed
providerOnAccountsChanged
(
listener
:
Listener
)
:
void
Parameters
listener
:
Listener
Returns
void
provider
On
Chain
Changed
providerOnChainChanged
(
listener
:
Listener
)
:
void
Parameters
listener
:
Listener
Returns
void
provider
On
Connect
providerOnConnect
(
listener
:
Listener
)
:
void
Parameters
listener
:
Listener
Returns
void
provider
On
Disconnect
providerOnDisconnect
(
listener
:
Listener
)
:
void
Parameters
listener
:
Listener
Returns
void
provider
Remove
Listener
providerRemoveListener
(
event
:
string
,
listener
:
Listener
)
:
void
Parameters
event
:
string
listener
:
Listener
Returns
void
provider
Remove
Listeners
providerRemoveListeners
()
:
void
Returns
void
request
Accounts
requestAccounts
()
:
Promise
<
null
|
string
[]
>
Returns
Promise
<
null
|
string
[]
>
sign
Message
signMessage
(
message
:
string
)
:
Promise
<
undefined
|
string
>
Parameters
message
:
string
Returns
Promise
<
undefined
|
string
>
web3
Provider
On
web3ProviderOn
(
event
:
string
,
listener
:
Listener
)
:
void
Parameters
event
:
string
listener
:
Listener
Returns
void
web3
Provider
Remove
Listener
web3ProviderRemoveListener
(
event
:
string
,
listener
:
Listener
)
:
void
Parameters
event
:
string
listener
:
Listener
Returns
void
web3
Provider
Remove
Listeners
web3ProviderRemoveListeners
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
is
Wallet
Is
Connected
Accessors
chain
Id
current
Account
Methods
connect
Wallet
is
Meta
Mask
Installed
provider
On
Accounts
Changed
provider
On
Chain
Changed
provider
On
Connect
provider
On
Disconnect
provider
Remove
Listener
provider
Remove
Listeners
request
Accounts
sign
Message
web3
Provider
On
web3
Provider
Remove
Listener
web3
Provider
Remove
Listeners
XYO Platform SDK - v3.6.9
Loading...