Porta Docs
Blog
Search…
Porta Docs
Porta Network Documentation
Developer guide
Getting Started
1. Connect to Porta
2. Request funds
3. Create your own cryptocurrency
4. Mint your token
5. Create smart contract
6. Interact with contract
7. Setup local validator node
8. Setup validator node on Digital Ocean VPS
Relay Chain Setup
Parachain Setup
Node Basics
Smart Contracts
Assets
Staking
Governance
Council
Technical Committee
Identity
Security and Privacy
Walk-through
Deep-Dive
Powered By
GitBook
6. Interact with contract
A step-by-step guide showing you how to execute the functions of your smart contract
Requirement: You will have deployed your smart contract to the Porta blockchain
​
Guide
Go to PolkadotJS Apps
https://console.porta.network/#/contracts
​
Porta Explorer
​
Navigate to Developer > Contracts
The contract you deployed previously will be listed
We use the flipper contract as an example of function execution
In the contracts section you will see:
The flip function with an associated execution button
The get function with an associated value
Any time the flip function is called, the get function is automatically updated.
You will notice the value of get is currently false.
To execute flip, click exec:
Confirm the transaction
You will notice the value of the getter changes from false to true.
The block the function call executed on is also shown. You can click through to this and see the details of the block.
​
You can now move onto step 7: Setup a validator node.
Previous
5. Create smart contract
Next
7. Setup local validator node
Last modified
10mo ago
Copy link
Contents