Load ABI
You have to reference two things in the code editor to load and access a smart contract:
The contract address
// SYNTAX
address(name, address).
// EXAMPLE
address(hyperdapp, '0x87A852A30f778E2837283B09E49f03200110e865').
address(hyper_dapp, '0x87A852A30f778E2837283B09E49f03200110e865').The contract ABI
// SYNTAX
abi(name, [...ABI_FUNCTIONS]).
// EXAMPLE
abi(hyperdapp, [...]).
abi(hyper_dapp, [...]).The contract name must be:
in snake_case OR camelCase
the same for both the
address()and theabi()
The syntax for writing the ABI_FUNCTIONS is the following:
If the function name is not camelCase, it must be surrounded by single quotes:
Load Multiple ABIs
You can load multiple ABIs by using the same syntax as described above. You just need to choose unique smart contract names.
Last updated