- What is the difference between msg.sender and tx.origin
The tx.origin global variable refers to the original external account that started the transaction while msg.sender refers to the…
- Blockchain Oracles - Introduction - Part 2
Oracles are used to get data from real world to the smart contracts on blockchain. Problem Statement Smart contracts are unable to connect…
- Store IPFS Hash as Bytes32 in Smart Contracts
Convert IPFS Hash to bytes32 format If you are using bs58 version 4.0.0 , do the following If you are using bs58 version 5.0.0 , do…
- GraphProtocol: Encoding & Decoding data and hashes in subgraph
abi.decode Consider the following solidity snippet If you want to do the same in subgraph, do the following in your mapping.ts file toUtf…
- GraphProtocol: Read IPFS Data in Subgraph
Things to note It is required that the files which you're trying to read are pinned on the IPFS node that the Graph Node indexing the…
- Connect to truffle dashboard using ethers.js
Truffle dashboard Truffle dashboard helps you to connect any application on your computer to the metamask in your favorite browser. When ran…
- NodeJS - Securing Through Cryptography
The crypto module Node.js comes with its own cryptography module out of the box. And this article tries to explain how to get most out of it…
- Bitcoin Weaknesses & Attacks
For more info: https://en.bitcoin.it/wiki/Weaknesses This article is a kind of course notes for https://academy.moralis.io/courses/bitcoin…
- Working with Blockchain Oracles - Introduction
Getting funds You can get testnet LINK token using the links mentioned in chainlink docs https://docs.chain.link/docs/link-token-contracts…
- Kill the process locking a PORT on Mac/Linux
Solution 1: Find and Kill the process using PID Let us assume that you want to kill a process running at localhost:3000 Find the PID using…
- Download multiple files at once using IDM
Inspiration https://itstillworks.com/download-multiple-files-using-idm-30721.html Another method: Create a file like: serve that sample…
- Freelancing tips and tricks in 2020
Many will choose to freelance by considering the advantages in freelancing solely, and fail because of that. In this post I will tell you…
- Differences between braces, parentheses and square brackets
Braces A brace is either of the two marks { and } . In programming the braces are usually used to surround a block of statements. Square…
- How to create and start a MongoDB Replica Set?
This guide is primarily for Windows PC . However you might find some useful information on replica sets here. Step 1: Initial Setup…
- What is website mirroring?
Mirroring a website is the process to mirror the entire website in the local system . Downloading entire website onto the system enables…