Permissions required

To ensure the proper functioning of the ZetaLink, the following permissions are required. These permissions allow the Snap to interact with the MetaMask wallet and the ZetaChain network

1. snap_dialog

  • Description: This permission allows the Snap to display dialogs within the MetaMask interface.

  • Usage: It is used to show alerts and confirmations to the user, particularly during critical operations like cross-chain swaps. For example, it prompts users to confirm their transaction details before proceeding.

2. snap_manageAccounts

  • Description: This permission enables the Snap to manage user accounts.

  • Usage: The Snap utilizes this permission to access and retrieve the connected Ethereum account information, which is essential for converting Ethereum addresses to Zeta addresses.

3. snap_getBip32PublicKey

  • Description: This permission allows the Snap to retrieve the BIP32 public key from a specified derivation path.

  • Usage: The Snap uses this permission to generate Bitcoin testnet addresses, fetch Bitcoin transactions, and retrieve unspent transaction outputs (UTXOs) for the connected account.

4. endowment:ethereum-provider

  • Description: This permission provides access to the Ethereum provider.

  • Usage: It allows the Snap to interact with Ethereum-compatible networks, enabling functions that require Ethereum account information and transactions.

5. endowment:network-access

  • Description: This permission allows the Snap to access the network.

  • Usage: It is used for making API calls to the ZetaChain network and other external services to fetch data such as account balances and transaction details.

6. endowment:transaction-insight

  • Description: This permission provides insights into transactions.

  • Usage: It allows the Snap to understand the origin of transactions, enhancing security and user experience during operations like cross-chain swaps.

7. endowment:rpc

  • Description: This permission allows the Snap to make Remote Procedure Calls (RPC) to decentralized applications (dApps).

  • Usage: It enables the Snap to interact with dApps on the ZetaChain network, facilitating seamless transactions and data retrieval.

8. snap_getBip32Entropy

  • Description: This permission allows the Snap to retrieve BIP32 entropy from a specified path.

  • Usage: The Snap uses this permission during the cross-chain swap process to generate necessary cryptographic keys, ensuring secure transactions.

Last updated