Call a Smart Contract on Nebulas

Kafka
Kafka
May 5, 2018 · 3 min read

Nebulas Wallet Part 7

YouTube video — coming soon

Open up your index.html file

Click the Contract tab and then Click the CALL tab

Lets break this down one by one so first the function

In the previous tutorial we Deployed a Contract. This Smart Contract has functions that we can call. Fucking Amazing right!

Here we have the function SAVE with the ARGUMENTS

Lets review the Smart Contract functions so we know what were Calling

Here we have the save function with the parameters (height)

Lets SELECT our WALLET

The To ADDRESS needs to be the CONTRACT ADDRESS this address is given to you when you Deployed a Contract

(Note: if you forgot the contract address you need to re-deploy the contract)

Once you have your Contract address entered into the To Address section We can add 1 to the Value / Amount to Send

Click Test and the results should be

Now we can Click Submit

Click the txHash to view the status

We can call the balanceOf function

Here we: add the balanceOf function, unlocked our wallet, added our contract address and Clicked the Test button

The Test result shows the balance that we saved with save function. The reason we see the balance is because we called the balanceOf function.

Basically call contract means that we call functions inside the contract. Simple Enough.

This concludes our usage of the Nebulas Web Wallet.

Peace out!

Nebulasio

Nebulas is an autonomous metanet.

Kafka

Written by

Kafka

“Genius” is 1% inspiration and 99% perspiration. Accordingly, a ‘genius’ is often merely a talented person who has done all of his homework — T.E.

Nebulasio

Nebulasio

Nebulas is an autonomous metanet. The future of collaboration is coming.

Kafka

Written by

Kafka

“Genius” is 1% inspiration and 99% perspiration. Accordingly, a ‘genius’ is often merely a talented person who has done all of his homework — T.E.

Nebulasio

Nebulasio

Nebulas is an autonomous metanet. The future of collaboration is coming.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store