Get contract functions

From UBot Studio
Revision as of 00:07, 5 July 2023 by LillyT (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

$get contract functions is a function in UBot Studio that returns a list of functions accessible on a specific smart contract on a specified blockchain chain.

Parameters

Chain: The blockchain on which the smart contract resides.

Contract Address: The address of the smart contract for which you want to get the list of functions.

Return Value

This function returns a yaml object with a list of functions and their parameters in the following format:

first_function_name:
    - first_parameter_name
    - second_parameter_name
second_function_name:
    - first_parameter_name
    - second_parameter_name

Usage Example

ui console view
log object($get contract functions("BinanceSmartChain", "0x8965349fb649A33a30cbFDa057D8eC2C48AbE2A2"))

This script retrieves and logs all functions available on the specified smart contract. The contract address in the example is USDC token.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox