โฝCreating and Linking Gas Wallets
This page is dedicated to the instructions for the creation and linking of gas wallets to the vaults and API.
What are Manager Wallets?
A manager wallet is responsible for managing all the vaults within the dHEDGE protocol or any other protocol integrated with Infinite Trading. For security reasons, it is highly recommended that the manager wallet be either a hardware wallet or a multi-signature wallet. This is crucial because if the manager wallet is compromised, the management of the vaults and all assets under the Total Value Locked (TVL) could be lost.
Recommendation: Use a hardware or multi-signature wallet for better security and protection of your vault management operations.
What are Gas Wallets?
Gas wallets are designated as trader wallets for executing transactions within the vaults. These wallets should only hold the gas token of the respective network (e.g., ETH on Ethereum or POL on Polygon) and no other assets.
Each vault can either have its own dedicated gas wallet or share a common gas wallet across multiple vaults. However, it is recommended to create one gas wallet per vault to avoid potential disruptions. If a shared gas wallet runs out of gas, it could prevent all vaults associated with that wallet from being managed.
Purpose: Gas wallets are essential for securely managing vault operations. They enable the execution of orders within the vaults while minimizing the risk of exposure to other assets.
How to Create or Import a Gas Wallet
Visit the Infinite Trading API Documentation.
To import an existing gas wallet, use the
generateApiKey
endpoint. This action will provide an API key, which is the encrypted form of your private key. Be aware that anyone with access to this API key can execute orders inside your vaults.To generate a new gas wallet, use the
createGasWallet
endpoint. You will receive the walletโs address, private key, and API key upon creation.
How to Link a Gas Wallet
To link a gas wallet to a dHEDGE vault:
Ensure that the gas wallet is set as a trader within the vault.
The gas wallet must have a sufficient gas balance before it can be linked (it cannot be empty).
Use the
linkGasWallet
endpoint to complete the linking process.
By following these steps, you ensure the gas wallet is correctly configured and ready to manage vault transactions.
Last updated