ReownAppKitModal()
instance, which is your primary class for opening, closing, disconnecting, etc.
Be sure to update the project ID and metadata with your own.
ReownAppKitModal()
instance you must provide a projectId and a metadata.
ReownAppKitModal()
allows you to create an instance by passing a ReownAppKit()
object as follows:
metadata
object should contain your dApp’s name, description, url and icon. Redirect object is optional but highly recommended. See next session why.
redirect
option that should be used by the wallet to redirected back to your dapp after connection.
Info.plist
file under your_project/ios/Runner/
folder.<key>CFBundleURLTypes</key>
section.<dict>
entry within the <array>
object as follows.AppKitModalConnectButton
to open modal and connect to a wallet or through social options
AppKitModalNetworkSelectButton
to select an available network
AppKitModalAccountButton
to open account screen once connected
AppKitModalAddressButton
shows the address on the current selected network
AppKitModalBalanceButton
shows wallet balance on the current selected network
AppKitModalConnectButton
or AppKitModalNetworkSelectButton
.
AppKitModalNetworkSelectButton
will allow the user to pre-select a Network before connecting while AppKitModalConnectButton
will directly show available wallets and social options.
Once connected, AppKitModalConnectButton
will serve as Disconnect button while AppKitModalAccountButton
will show basic account data such as balance and address and will be used to open Account screen.
Quick example:
AppKitModalAccountButton
is composed by AppKitModalBalanceButton
and AppKitModalAddressButton
and you can use these separately from AppKitModalAccountButton
custom:
property as follows
openModalView()
method can accept a “startWidget” argument that you can leverage to open specifics screens of the modal: