Wallet address
Line 1: | Line 1: | ||
− | '''$ | + | '''$wallet address''' is a function that returns the public address of your DeFi wallet for a specific blockchain chain. |
+ | |||
+ | This function gives you access to your DeFi wallet's address based on the specific chain you're using. | ||
== Parameters == | == Parameters == | ||
− | '''Chain:''' The | + | '''Chain:''' The name of the chain for which you want to get the public address of your DeFi wallet. It can be either "Avalanche" or "BinanceSmartChain". |
== Return Value == | == Return Value == | ||
− | This function returns a string | + | This function returns a string which is the public address of your DeFi wallet for the specific chain. |
== Example == | == Example == | ||
+ | |||
<pre> | <pre> | ||
− | + | log("BinanceSmartChain Wallet Address: {$wallet address("BinanceSmartChain")}") | |
− | + | log("Avalanche Wallet Address: {$wallet address("Avalanche")}") | |
− | log(" | + | |
</pre> | </pre> | ||
− | + | The output will be the address of your DeFi Wallet for the specified chain. | |
− | + | Example Output: | |
<blockquote> | <blockquote> | ||
− | + | <p>BinanceSmartChain Wallet Address: 0x1234abcd5678efgh9012ijkl34mn56op7890qrstu</p> | |
+ | <p>Avalanche Wallet Address: 0xabcdef123456ghijklm789012nopqr3456stuvwx89</p> | ||
</blockquote> | </blockquote> | ||
+ | |||
+ | Remember, your public address can be shared without risk, unlike your private key, because your public address is needed to receive funds. |
Revision as of 19:05, 4 July 2023
$wallet address is a function that returns the public address of your DeFi wallet for a specific blockchain chain.
This function gives you access to your DeFi wallet's address based on the specific chain you're using.
Parameters
Chain: The name of the chain for which you want to get the public address of your DeFi wallet. It can be either "Avalanche" or "BinanceSmartChain".
Return Value
This function returns a string which is the public address of your DeFi wallet for the specific chain.
Example
log("BinanceSmartChain Wallet Address: {$wallet address("BinanceSmartChain")}") log("Avalanche Wallet Address: {$wallet address("Avalanche")}")
The output will be the address of your DeFi Wallet for the specified chain.
Example Output:
BinanceSmartChain Wallet Address: 0x1234abcd5678efgh9012ijkl34mn56op7890qrstu
Avalanche Wallet Address: 0xabcdef123456ghijklm789012nopqr3456stuvwx89
Remember, your public address can be shared without risk, unlike your private key, because your public address is needed to receive funds.