Actions
- Listen to balance change
You can subscribe to _appKitModal.balanceNotifier
to be up to date with balance.
- Launch the current wallet
If you connected your dApp through deep linking to a Wallet app you can launch that wallet app with the following:
- Launch block explorer
You can open the selected chain’s block explorer easily:
- Send an RPC request
A list of all available methods can be found in constants.dart file, which is already exported for you to use directly from AppKit package.
- List of approved chains by the connected wallet
- List of approved methods by connected wallet
- List of approved events by the connected wallet
- Interact with Smart Contracts
These Smart Contract interaction methods only works for EVM chains but you can always structure your smart contract transaction and call the relevant chain method by using request() method.
- Read function:
Usage:
- Create a
DeployedContract
object
- Read from it by calling a read function
- Write function:
Usage:
Write to it by calling a write function, for example, transfer
function from USDC token contract:
Additional example:
Call a sayHello
function of a smart contract to write a message.
For a complete example app check out the example app for AppKit