Get contract functions
(Created page with "'''$get contract functions''' is a function that returns a list of all functions on a particular smart contract. Smart contracts are self-executing contracts written in code,...") |
|||
Line 1: | Line 1: | ||
− | '''$ | + | '''$defi contract functions''' is a function that retrieves a list of functions on a particular smart contract. |
− | + | This function is particularly beneficial for enterprise users who wish to explore the functions of a smart contract on either the Avalanche or Binance Smart Chain blockchains. | |
+ | |||
+ | == User Level == | ||
+ | |||
+ | This function is exclusively available for enterprise users. | ||
== Parameters == | == Parameters == | ||
− | '''Chain:''' The blockchain | + | '''Chain:''' The blockchain where the smart contract is located. You can choose either "Avalanche" or "BinanceSmartChain". |
− | '''Contract Address:''' | + | '''Contract Address:''' This is the address of the smart contract for which you want to get the list of functions. |
− | == Return Value == | + | == Return Value == |
− | This function returns a string | + | This function returns a string value, which is a list of the functions available on the specified smart contract. |
== Example == | == Example == | ||
<pre> | <pre> | ||
− | + | define areacode | |
+ | ui text msg("Contract Functions: {$defi contract functions("BinanceSmartChain", "0x...")}") | ||
</pre> | </pre> | ||
− | In | + | In this example, the function is retrieving the list of functions on a smart contract located on the Binance Smart Chain. The contract address has been anonymized for security reasons. Replace "0x..." with your actual smart contract address. |
− | + | ||
− | + | ||
− | + | ||
− | + |
Revision as of 18:29, 4 July 2023
$defi contract functions is a function that retrieves a list of functions on a particular smart contract.
This function is particularly beneficial for enterprise users who wish to explore the functions of a smart contract on either the Avalanche or Binance Smart Chain blockchains.
Contents |
User Level
This function is exclusively available for enterprise users.
Parameters
Chain: The blockchain where the smart contract is located. You can choose either "Avalanche" or "BinanceSmartChain".
Contract Address: This is the address of the smart contract for which you want to get the list of functions.
Return Value
This function returns a string value, which is a list of the functions available on the specified smart contract.
Example
define areacode ui text msg("Contract Functions: {$defi contract functions("BinanceSmartChain", "0x...")}")
In this example, the function is retrieving the list of functions on a smart contract located on the Binance Smart Chain. The contract address has been anonymized for security reasons. Replace "0x..." with your actual smart contract address.