Wallet address
$defi wallet address is a function that returns the public address of your DeFi wallet.
The public address is like a bank account number. It’s what you give people to send you cryptocurrency.
Parameters
Chain: This parameter specifies the blockchain network (e.g., Avalanche, BinanceSmartChain) of the DeFi wallet.
Return value
This function returns a string representing the public address of your DeFi wallet on the specified blockchain network.
Example
ui dialog show($defi wallet address("Avalanche"),"Avalanche Wallet Address")
The example script prompts a dialog to show the public address of your DeFi wallet on Avalanche blockchain network.
- Please note:**
While your DeFi wallet's public address is generally safe to share (like an email address), you should never share your private key (like a password) with anyone. If you share your private key, others may access your wallet and your funds.