iExec SDK V2 Tutorial
iExec allows Ethereum developers to create applications that can be executed off-chain. The iExec SDK brings all the tools to develop, deploy and execute Dapps on Ethereum and iExec. Using these tools, you will be able to deploy any legacy applications in the iExec infrastructure and execute them through calls to Ethereum smart contracts.
In this tutorial, you will learn how to:
- Init your iExec project
- Deploy your app on Ethereum and monetize it
- Buy & Run a work using the iExec Marketplace
Ready? Let's go!
Congratulations, you've successfully made it through this tutorial!
You are now more familiar with the iExec SDK, and with the iExec platform.
Here are some suggestions to go further:
Finally, to help make the iExec SDK better, go to github and give it a star, thanks!
iExec SDK V2 tutorial
Step 1 - Install iexec and init your project
Install and Init you iExec project
Pre-requisite: You need to have node.js installed on your machine. Then let's install iexec CLI tool:
npm -g install iexec
Check iexec help:
Check iexec version:
Init you iExec project
Your iexec Dapp is composed at the minimum of 4 files:
iexec.jsonthe main config file.
chain.jsonthe network config file, to set ethereum chain for example.
wallet.jsonyour ethereum wallet to store ETH and RLC
account.jsonyour iExec account, to authenticate with the scheduler when downloading work result
And another file to store deployed smart contract addresses:
deployed.jsonused to store deployed addresses.
Load your wallet
iexec wallet show
let's get some ETH:
iexec wallet getETH
As the default chain is Kovan, you have to manually request for kovan ETH by sending your wallet public address in this gitter chat group: https://gitter.im/kovan-testnet/faucet
Now let's get some RLC:
iexec wallet getRLC
If you have ETH and RLC on you wallet, you can now deposit RLC on you iExec account:
iexec account deposit 50
You are good, now that you have RLC on you iExec account, you can go to next step.