Author: Ayushi Dwivedi

CRUD operations in RUST

Reading Time: 3 minutes Hello Readers! In this blog, we will discuss HTTP Methods(CRUD operations). REST APIs(Representational State Transfer Application Programming Interface) enables you to develop all kinds of web applications having all possible CRUD (create, retrieve, update, delete) operations. So let’s have a basic idea of what CRUD stands for and what all HTTP methods are used in correspondence to CRUD operations. C: It stands for Create, and Continue Reading

Errors and Revert Statements in Solidity

Reading Time: 3 minutes Hello Reader! We have already read about many topics on Solidity. Here I am back with one more important topic that is “Errors and Revert Statements in Solidity”. Starting from Solidity v0.8.4, there is a convenient and gas-efficient way to explain to users why an operation failed through the use of custom errors. Errors should be used together with the revert statement. Which causes all changes in the Continue Reading

Expressions and Control Structures in Solidity

Reading Time: 3 minutes Hey Readers! Welcome back to the world of Solidity. In this blog we will see what are the Expressions and Control Structures in Solidity. Expressions and Control Structures in Solidity is a vast concept that we will see today. Control Structures Most of the control structures known from curly-braces languages are available in Solidity: There are if, else, while, do, for, break, continue, return, with Continue Reading

Structure of a Contract in Solidity

Reading Time: 3 minutes Smart Contracts for Ethereum are primarily written using Solidity. They are the basic unit of deployment and also used in execution for EVMs. Contracts in Solidity are similar to classes in object-oriented languages. Here we will learn about structure of contract. Each contract can contain declarations of State Variables, Functions, Function Modifiers, Events, Errors, Struct Types and Enum Types. Furthermore, contracts can inherit from other contracts. Libraries and interfaces are special type of Continue Reading

Data Structure and Control Structure in Solidity

Reading Time: 3 minutes Hello Reader, Do you know what are data structures? If not then here is what data structures mean. A data structure is a particular way of organising data in a computer memory so that it can be used effectively. Solidity provides three types of data structures: Structs Arrays Mappings One by one let us look at each data structure. Structs: Solidity provides a way to define new Continue Reading

Why Solidity is used to Develop Smart Contracts?

Reading Time: 3 minutes Solidity was first proposed and developed in year 2014 by Gavin Woodand since then it has come a long way. Then Ethereum’s Solidity team led by Christian Reitwiessner developed it later. It is a high-level , object-oriented language used for implementing smart contracts. A smart contract is a self-executing contract. It has the terms of the agreement between buyer and seller. The code and the agreements Continue Reading

Error Handling in Rust – Error are a fact of life in Software.

Reading Time: 4 minutes Hello Readers!! Again I am here with an exciting topic that is Error Handling. As we know errors are things that no one wants in their program. So lets see what are Errors and how we can handle them . An error is basically an unexpected behaviour or event that may lead a program to produce undesired output or terminate abruptly. We can try to find Continue Reading

Ownership, An exciting concept of Rust (Part-2)

Reading Time: 3 minutes Hello Readers ! We already read about what is ownership and how memory allocation is done. But for completely understanding ownership, we should know what is borrowing and what are references. References and Borrowing The problem in this code is that we have to return the String to the calling function. So we can still use the String after the call to calculate_length because the Continue Reading

Ownership: An exciting concept of Rust(Part-1)

Reading Time: 4 minutes Ownership, An exciting concept of Rust and it enables Rust to make memory safety guarantees without needing a garbage collector. Therefore, it’s important to understand how ownership works in Rust. While running all the programs manage the way they use computer’s memory. Some languages have garbage collection, in other languages, the programmer must explicitly allocate and free the memory. On the other hand Rust uses Continue Reading

IRON, Framework on which you can rely while working on RUST

Reading Time: 3 minutes Hello Readers! Rust’s Iron framework is a high level web framework which is built in and built for Rust. It is basically built on hyper. It is designed to take advantage of Rust’s greatest features – it’s excellent type system and principled approach to ownership in both single threaded and multi threaded contexts. Rust’s Iron is highly concurrent and can scale horizontally on more machines behind Continue Reading

Working on Rust? Must know about Macros

Reading Time: 3 minutes A programmable pattern which translates a certain sequence of input into a preset sequence of output is known as Macros( which stands for macroinstructions). Macros can make tasks less repetitive by representing a complicated sequence of keystrokes, mouse movements, commands, or other types of input. In Rust, We’ve used macros like println! , but we haven’t fully explored what a macro is and how it works. The Continue Reading

Polkadot.js API for blockchain development (Part 2)

Reading Time: 3 minutes Hello Readers!! In the previous blog, we read about what is Polkadot.js and how to install it, So now we will see how we can use it by creating its instance. So Lets start! We have the API installed. We have an understanding of what will actually exposed. And how the API knows what to expose. So let’s create an actual API instance, Providers Focusing Continue Reading

Polkadot.js API for blockchain development

Reading Time: 3 minutes The API provides application developers the ability to query a node and interact with the Polkadot or Substrate chains using Javascript. Hello Readers, today we will see what is a polkadot.js API. These sections should provide you with all the information needed to install the @polkadot/api package, understand the structure of the interfaces and allow you to start using it. For existing users this really should be Continue Reading