Skip to main content
Version: 2.5.1

Contract ABI Data Asset

Smart Contract ABI

To interact with a smart contract you need to be able to encode and decode the contract functions and their variables. To do so you must either store the contract's ABI or get it from Ether Scan for verified contracts. More on the subject here.

Create Contract ABI Data Asset

To create a Contract ABI data asset, right-click in the Content Browser and select 3Studio 1 then Contract ABI Data Asset 2.

Create Contract ABI Data Asset

info

For this example we will copy the Smart Contract ABI from Bored Apes Yacht Club contract address.

Configure Contract ABI Data Asset

Open the Contract ABI data asset. It will hold data as follows:

  • Contract Abi Json: Paste the copied Smart Contract ABI JSON string into this field. 1
  • Parse Json: Tries to parse the Smart Contract ABI from the given JSON. 2
  • Contract Abi Validity Status: Displays the status of parsing the Smart Contract ABI JSON data. 3
  • Contract Abi Functions: List of data needed from the Smart Contract ABI which will be used later for encoding and decoding. 4

Configure Contract ABI Data Asset

Potential pitfall

Whenever you make changes to the JSON in Contract Abi Json 1, don't forget to also click the Parse Json 2 button.