Are you a Salesforce Developer or Administrator? Are you learning more about Blockchain and want to start building you own applications? This is the article for you.
In this article I am going to explain to you exactly how you can begin building Ethereum Applications that are directly integrated into your Salesforce Developer Environment.
Before we begin, let’s dive into what Ethereum is and (at a high level) how it works.
Ethereum is a Blockchain network that allows developers to build decentralized applications. These are commonly known as dapps.
Decentralized applications are based on Smart Contracts.
Smart Contracts are written in Solidity and are compiled into EVM Bytecode. The Bytecode is comprised of OPCodes which each have an associated gas cost.
This Bytecode is deployed to the EVM (Ethereum Virtual Machine) and the code is deployed on every node of the network. The state of the Blockchain is updated on every node.
What if there was a way to write, deploy and manage Smart Contracts from the Salesforce platform? You could manage your own Tokens on the platform, combine these tokens with lookups to accounts or contacts, send out email notifications or trigger other workflows based on these blockchain transactions.
Dapps.ai DappSuite allows you to do all of this and more.
Download DappSuite v1.3 from the Salesforce AppExchange
In order to download the DappSuite follow the link below:
You will gain access to a 7 day trial of the DappSuite.
There is no setup required to start building Ethereum Applications from Salesforce. Just click the free-trial and you are ready to go.
Creating an Ethereum Account
In Ethereum there are two types of Accounts. There are Externally Owned Accounts and Smart Contract Accounts.
In order to interact with the Ethereum Network you will need to create an Externally Owned Account.
- Go to the Ethereum Account Manager and Click New Account
- Enter in your Account Name and a password
- Confirm your password and don’t forget it! (Write it down somewhere and keep it safe)
You will now see your newly created Ethereum Account in the Ethereum Account Manager.
We will forward you 10 Ether, this should take a few minutes. This Ether is for the Ropsten Testnet which is where you can begin deploying your applications without having to spend any real Ether.
Deploying your First Smart Contract
Now that you have an Ethereum Account you can deploy a Smart Contract to the Blockchain.
We have included 5 Smart Contracts in the Smart Contract Library.
- Network Token
- Simple Storage
- Voter Ballot
Go to the Smart Contract Interface to Deploy your first Smart Contract to the Ethereum Network.
Select which Smart Contract you would like to use.
An interface will automatically be generated based on the Smart Contract you use.
Click Create and select the Account you created in the Ethereum Account Manager.
Enter in your password and click deploy.
Calling your Contract
You can now begin calling your Smart Contract directly from within Salesforce.
You also will be able to manage any smart contracts, transactions and tokens that you create.
If you chose the Network Token Contract, go to the Token Transfer Interface.
Sending your Token
You can create and send you token to an Ethereum Address on the Ropsten Network.
- Select your Token
- Enter in the Address
- How many Tokens
Select your Ethereum Account and Enter in your password.
You can also now manage any Tokens or Token Transfers.
All of the data that you are writing to the Blockchain can now be managed directly from Salesforce. You can also run reports and create dashboards on your Addresses, Smart Contracts, Transactions, and Tokens.
If you or your company are interested in learning more about building Blockchain applications on Salesforce feel free to reach out to us at email@example.com.