The Easiest Way to Create an Ethereum Storage Smart Contract

Hannah Duckworth
Atra Blockchain Services
3 min readMay 12, 2019

Create a smart contract in less than a minute with Atra’s dTables service. Totally free and easy on the Rinkeby testnet.

A storage smart contract made using Atra’s dTables service

Creating your first smart contract can be daunting. Creating your second smart contract can be enlightening. And creating every smart contract thereafter can be just downright annoying. Writing smart contracts is a time consuming and tedious effort, full of boilerplate code that may as well be automated.

Atra Blockchain Services has taken the process of writing a storage smart contract and placed it behind a beautiful UI that automates the creation for you, distilling the lengthy process into one that takes less than a minute. You still have full control over the items stored in your smart contract, and can view the actual smart contract itself.

dTables acts as an excel table on the blockchain. You need to store data to power your dApp — you create a dTable to house this data. You now are able to determine the columns of this table, or what data records are stored. Then, you submit the data into the rows of the dTable, which is then stored on the blockchain.

Creating a dTable only takes 3 steps once inside the console:

  1. Create an account on console.atra.io (it’s free)
  2. Once in the atra console, navigate to the dTables service.
  3. Click ‘Create Table
  4. This is where you will create your ‘excel’ sheet — Name your table, and create each column in your table giving it a name and type.
Name the columns in your dTable as you would in an excel sheet.

6. Hit ‘Create dTable’ — your inputs are now being formed into a smart contract, which is then being sent to the Ethereum network as a transaction. Your dTable will be pending until the transaction is complete. Once on the dTables dashboard, you will see your table is live on Ethereum when the tile displays a green lightning bolt. This whole process only takes about a minute!

Bonus: once inside your dTable instance from the dTables dashboard, click the Rinkeby Address to view the transaction on Etherscan.

View your dTable on Etherscan

7. Navigate inside your dTable by clicking on the tile. You can view the smart contract you just created by hitting the ‘Contract’ tab.

Scroll through the smart contract you just created!

8. Start inserting data into your table manually via the ‘New Record’ button, or set up the API to record automatically.

Easily record data manually or via the API

The best part about this service is that you can create and reiterate with no time or resources wasted. After creating your table, easily create smart contracts with business logic to interact with your storage smart contracts via Atra’s Triggers Service. Put it all together in a sleek user interface using LiteUI, a tool for quickly prototyping dApp front ends with no code. LiteUI also gives a sharable URL so you can spread your dApp to anyone and everyone. See example here.

An example LiteUI

Boom, 10 minutes later you have yourself a full dApp. This truly is the easiest way.

Learn more at atra.io, or by using the Atra Platform yourself at console.atra.io.

--

--