A cardano wallet extension that has been injected into the browser's cardano.{walletName} object.
There might be multiple available wallet extensions but typically the user will interact with only one extension at a time.
Use name and icon to display a list of extensions to the user and call enable after the user decides with which wallet they want to interact.
Properties
- apiVersion → String
-
The version number of the API that the wallet supports.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → String
-
A URI image (e.g. data URI base64 or other) for img src for the wallet
which can be used inside of the dApp for the purpose of asking the user
which wallet they would like to connect with.
no setter
- name → String
-
A name for the wallet which can be used inside of the dApp
for the purpose of asking the user which wallet they would like
to connect with.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
supportedExtensions
→ List<
CipExtension> -
A list of extensions supported by the wallet.
no setter
Methods
-
enable(
{List< CipExtension> ? extensions}) → Future<CardanoWalletApi> - This is the entrypoint to start communication with the user's wallet.
-
isEnabled(
) → Future< bool> - Returns true if the dApp is already connected to the user's wallet, or if requesting access would return true without user confirmation (e.g. the dApp is whitelisted), and false otherwise.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited