About How-to Guides
Explore the how-to guides for IOTA Smart Contracts, offering step-by-step instructions on various topics and functionalities.
Goal orientated direction.
View All TagsExplore the how-to guides for IOTA Smart Contracts, offering step-by-step instructions on various topics and functionalities.
The schema tool provides us with an easy way to get access to smart contract functions through function descriptors, which allow you to initiate the function by calling it synchronously, or posting a request to run it asynchronously.
How to allow native assets and base token
Basic smart contract example.
Learn how to build and test Move packages in IOTA with detailed instructions and examples.
Explore how synchronous function calls work between smart contracts, highlighting the role of function descriptors in parameter and token passage, and understanding the ISC host's role in this procedure.
Calling smart contract view functions with Solo.
How to configure wasp-cli. Requirements and configuration parameters.
How to create a L1 foundry
How to Create a Native Token Foundry.
Explain how a VC is created and verified
Explain how a VP is created and verified
Solidity smart contract ERC20.
Create and deploy a Solidity smart contract to mint NFTs using the ERC721 standard.
Create DID Documents and publish them to the Tangle
How to use the custom functionality of ERC20NativeToken
As there is no way for the Wasm code to access any memory outside its own memory space, the WasmLib interface provides a number of proxies to make accessing data within the ISC sandbox as seamless as possible.
Learn how to define function parameters using the 'params' subsection, and how the Schema Tool facilitates this process.
Understand how to outline function results using the 'results' subsection and how the Schema Tool aids in this process.
The code generated for Funcs will be able to inspect and modify the smart contract state, whereas the code generated for Views will only be able to inspect the state.
The smart contract state storage on the host consists of a single key/value map, as long as you access the data in the same way that you used to store it, you will always get valid data back.
How to deactivate or destroy an IOTA Identity
Learn how to deploy smart contracts to IOTA EVM, Shimmer EVM and EVM Testnet using popular tools like Remix and Hardhat.
Deploying Wasm smart contracts with Solo.
How to link a domain and a DID
What happens when a smart contract invocation fails?
Use the SoloContext to create full-blown tests for the dividend example smart contract.
Example of a _Solo_ test. It deploys a new chain and invokes some view calls.
How to get the allowance of native assets and base token
How to get the balance of L1 assets on L2
Get test IOTA tokens using the IOTA CLI, SDK, or cURL.
The init function will automatically be called immediately after the first time the contract has been deployed to the VM. This is a one-time initialization call, meant to be performed by the contract deployment mechanism.
Install the IOTA framework and required prerequisites on your system, including the IOTA command line interface to interact with the IOTA network.
Invoking smart contracts with on-ledger and off-ledger requests with Solo.
Explain the use of the storage interfaces and how they can be implemented
This article explains how to define access controls for functions using the optional 'access' subsection in the schema definition file.
Guide to setting up and using a local IOTA network for development and testing.
How to manage a chain using the Grafana dashboard, a client to receive published events, logging, and validators.
How to mint L1 NFT
How to mint native token on an L1 foundry.
You can post a time-locked request by using the Delay() method. You can mint NFTs by using the MintNFT() method.
How to handle native NFTs on L2 and use them as ERC721
How to handle native tokens on L2 and use them as ERC20
Asynchronous function calls between smart contracts are posted as requests on the Tangle. They allow you to invoke any smart contract function that is not a View on any smart contract chain.
Learn how to publish your Move package on the IOTA network and interact with it using programmable transaction blocks.
How to register a native token as ERC20
Explain how resolving works including arguments
Explain how a VC can be revoked
How to run a node. Requirements, configuration parameters, dashboard configuration, and tests.
How to setup an access node.
Explain VC with selective disclosure.
How to send funds from L1 to L2.
Setting up a chain: requirements, configuration parameters, validators, and tests.
The spec of schema tool and how to develop schema tool.
You can use structs directly as a type in state storage definitions and the schema tool will automatically generate the proxy code to access it properly.
How to take the allowance of native assets and base token
Testing of smart contracts happens in the Solo testing environment. This enables synchronous, deterministic testing of smart contract functionality without the overhead of having to start nodes, set up a committee, and send transactions over the _Tangle_.
Solo is a testing framework that allows developers to validate real smart contracts and entire inter-chain protocols.
How to interact with the L1 ledger in Solo.
Smart contracts can exchange assets between themselves on the same chain and between different chains, as well as with addresses on the L1 ledger.
Learn about thunk functions and how the Schema Tool uses them to facilitate smart contract function calls.
Explore methods in the Call Context that facilitate the handling and transfer of asset balances in smart contracts using the `dividend` example.
This article outlines how to trigger events in smart contracts utilizing ISC sandbox's ScFuncContext and the Schema Tool for structured events.
You can add a typedefs section to the schema definition file, where you can define a single type name for a container type. This way you can easily create containers that contain container types.
How DID Documents can be manipulated and how updates should be published
How to use a native NFT like an ERC721 NFT
The `schema` tool will assist in creating a smart contract as unobtrusively as possible.
Explore the characteristics and constraints of view-only functions in smart contracts, illustrated through a 'getFactor' function example.
the syntax of a schema definition file will be described here.
Zero Knowledge selectively disclosable VCs.