Portal
The main entry point for interacting with the Portal SDK.
The Portal
class provides a high-level interface for managing user wallets, interacting with blockchains, and using various features of the Portal ecosystem.
It supports multiple chains, including Ethereum (EIP-155) and Solana, and offers features like wallet creation, backup, recovery, sending assets, signing transactions, and more.
Constructors
Properties
Functions
Retrieves the list of available recovery methods for a given namespace.
Retrieves the available recovery methods for the specified chain ID.
Backs up the wallet share using the specified backup method.
Checks if the device and the current configuration support the use of passkeys.
Configures the Google Storage backup method for the backups.
Configures the Passkey Storage for the backups.
Creates an instance of PortalConnect.
Creates a new wallet with Ethereum and Solana addresses.
Creates a new PortalWebViewFragment instance.
Deletes the locally stored address from the keychain.
Deletes the keychain from the storage.
Deletes the locally stored signing share from the keychain.
Checks if a wallet exists for the specified PortalNamespace.
Checks if a wallet exists for the specified chain ID.
Ejects the private key from the MPC (Multi-Party Computation) system.
Ejects the private keys managed by the MPC (Multi-Party Computation) system.
Emits an event with the specified data to the underlying event provider.
Estimates the amount of gas required to execute a transaction.
Retrieves the current gas price for the specified Ethereum-compatible chain.
Retrieves the Ether balance of the configured address for a given chain.
Sends a signed Ethereum transaction to the blockchain.
Initiates an Ethereum transaction signature request.
Initiates an Ethereum typed data signature request.
Generates a Solana wallet and then backs it up using the specified method.
Generates a Solana wallet.
Gets the address associated with the specified PortalNamespace.
Gets the address associated with the specified chain ID.
Retrieves the cloud storage adapter associated with the specified backup method.
Checks if the wallet associated with the given namespace is backed up.
Checks if the wallet is backed up for a specific chain or globally.
Checks if a wallet exists on the device for the specified PortalNamespace.
Checks if a wallet exists on the device for the specified chain ID.
Checks if a wallet is recoverable for the specified PortalNamespace.
Checks if the wallet is recoverable for a given chain ID.
Checks if the WebSocket connection is allowed.
Sets a listener for a specific event.
Sets a one-time listener for a specific event.
Initiates a personal signature request.
Recovers an existing one based on provided parameters.
Recovers a wallet using the specified backup method.
Sends a request to the provider.
Retrieves the address associated with the given blockchain chain.
Updates the currently active chain ID used by the provider.