Skip to main content

Interacting with contract

Interacting with the contract

To interact with a loaded contract, first select the methods you want to use from the sidebar on the left side of the view, which will open them in one of the sections in the center of the view.

Data explorer

You are able to identify the opened method by the name in the top left corner of each opened method. Underneath the name, you will see the list of all required inputs. Each input will have its name and type displayed.

Additional input options

Some of the input types may have several additional options. These options are an optional way to make it easier to input information.

Uint options - One such option is to select next to inputs of type uint.

It offers a choice of one of two types of imputed information, selecting one of these options will open an additional panel under the input data.

Data explorer

Selecting the “Inger” option will allow you to apply a multiplier to the currently assigned value, providing an easy way to enter currency amounts.

Data explorer

Selecting the "Date" option provides an easy way to enter the date. You can select the date and time and it will be automatically converted to Unix timestamp, UTC time and relative time to make sure the assigned date is correct. You can also easily move the selected date by entering a value, selecting a time unit and pressing the plus icon.

Once the date has been selected and modified, it can be entered into the input data by clicking the icon to the right of the Unix timestamp value. Manually entering the date into the input data will also automatically convert it and display it in the date panel.

Array options

Another option is an easy way of entering arrays.

Data explorer

A plus icon will appear under each input requiring an array input. Pressing the icon will create a new input where you can enter a single value to be placed in the array.

Data explorer

Any time, you can also remove a field from the array by pressing the minus icon placed to the right of the field. By doing this, you are able to easily fill in and edit the array by providing all the values individually. Filling the array manually will also convert it and automatically create the fields underneath helps you to edit individual values.