Please visit the demo page located here to test:
https://ezplugins-demo-2.bubbleapps.io/version-test/privy?debug_mode=trueTo leverage Read and Write smart contracts and other web3.js functions, please pair the Privy plugin with the official Web3&Metamask Plugin found here:
https://bubble.io/plugin/web3--metamask-1612784921335x464807902025875460To use the Web3&Metamask Plugin with Privy, you may have to add the same rpc url as being used in Privy.
Please note the AppID is a public key for the SDK to operate correctly. The AppSecret is a private key for security purposes.
Updated Action Features for Privy Plugin!Custom RPC and latest SDKPer Privy recommendations, we have implemented custom RPC's. Select "custom rpc" as the option in "chain" and then enter into the rpc url parameter.
Get Provider (Updated)The latest version of the Privy Plugin introduces enhanced functionality for connecting and switching between external wallets. To ensure seamless interaction with Web3 and the MetaMask Plugin, the “Get Provider” action must be executed each time the active wallet is changed.
Fund Wallet (New)This feature enables funding of a selected wallet with the following options:
- Standard EVM Tokens
- Custom Tokens (NFTs) on EVM
- Fiat currency via Coinbase endpoint
- Transfers from another wallet
Get Wallet Balance (New)This action retrieves the current balance of the selected wallet, providing real-time visibility into available funds.
Connect a Wallet (New)Users can now connect an external wallet through a streamlined interface. The Privy Plugin displays a "Connect Wallet" popup, allowing users to select from an extensive list of supported wallet providers.
Set Default Wallet (New)When multiple wallets are connected (e.g., one for Privy and another for MetaMask), the “Set Default Wallet” action allows users to designate a previously connected wallet as the active default wallet.
List Connected Wallets (New)This action provides detailed information about all connected wallets, including:
- Wallet Address
- Wallet Name
- Connector Type (injected or embedded)
- Selection Status (true or false)
- Wallet Logo
Link Wallet (New)The “Link Wallet” action enables linking an account using a specified “link_connection_type” field. This field corresponds to one of the configured “LoginMethods” in the Privy Element Options (e.g., “wallet,” “email,” or “google”). For example, if the Privy Element LoginMethods include “wallet, email, google,” the “link_connection_type” must match one of these options.