May 13How to use: Sign In With EthereumOverview Sign-in with Ethereum (SIWE) is a form of authentication that enables users to control their digital identity without relying on a traditional intermediary. Here’s how it generally works: 1. Ethereum Account: To use “Sign in with Ethereum,” you need an Ethereum account. This typically involves creating a digital wallet that…Siwe5 min readSiwe5 min read
Jan 26No Wallet & No Fees - What Are Semi-Custodial Tokens?How to balance UX and security with semi-custodial tokens Problem Blockchain technology is branching beyond finance. Tokens are now being used in games, art, social networks etc. This is to be expected as the space and the tech continues to mature. But using the technology requires at minimum: Downloading a crypto…Semi Custodial Tokens3 min readSemi Custodial Tokens3 min read
Published inCoinmonks·Dec 24, 2022EIP-712: How to Verify Typed Data On ChainImplementing EIP-712: Typed structured data hashing and signing Overview The idea of EIP-712 is to standardize hashing and signing of typed structured data as instead to just byte strings. Below are the different ways of signing Signing a transaction Signing a message (hexadecimal string). Signing typed data Signing typed data allows…Solidity2 min readSolidity2 min read
Published inCoinmonks·Oct 1, 2022How to Generate Random Numbers in SolidityThe many ways of generating random numbers on chain. Overview Smart contracts are deterministic, meaning anyone with the code and input can predict the output. Smart contracts are also public. Given public code, how can we make this non-deterministic? Below are a few techniques Pseudorandom Number by Hashing On-chain Verifiable Random…Solidity3 min readSolidity3 min read
Published inCoinmonks·Aug 19, 2022How to Sync and Skim In UniswapCalling sync() and skim() in Remix. Overview In this article we will call the sync() function to fix stuck pairs. This happens when someone removes everything from a pool leaving dust. These small amounts might account for large changes. Syncing will update the reserves to the current balances. This will work…Uniswap2 min readUniswap2 min read
Jul 25, 2022Play To Earn (P2E) Wallet for Game DevelopersHow to build server side wallets for web3 game developers. Question I want players to be take items drops (not NFT regular items) to a merchant NPC. The merchant will take hand out a token. Overview There are a few ways to build a crypto game. All data is on chain. This…Play To Earn Games2 min readPlay To Earn Games2 min read
Published inCoinmonks·Jul 20, 2022How Do I Get All the Tokens?Simple question. Complicated solution. TLDR There’s no all in one solution (yet). Problem I make login with metamask on my website. But I want to get all tokens (Such as BNB, RARI and etc) balance in metamask. How do i get all tokens balance? How do I get all the tokens inside my Metamask wallet by web3 or others? As you already figured out in the comments, nobody knows all the token balances of your account, not even MetaMask…stackoverflow.comThe Graph3 min readThe Graph3 min read
Jun 3, 2022Hey leon do, good article here, i just wanna ask one question.1Duscaehttps://github.com/graphprotocol/graph-node/blob/master/docker/README.mdhttps://github.com/graphprotocol/graph-node/blob/master/docker/README.md1 min read1 min read
Published inCoinmonks·Apr 16, 2022How to Deploy a DAO on RemixUsing OpenZepplin Solidity Contract Wizard Overview In this example we will Deploy token contract Delegate to vote Deploy governor contract Transfer token contract ownership to governor contract Create a proposal to mint Cast a vote Execute transaction Verify execution Deploy a Token Contract We will use OpenZepplin’s Contract Wizard Contracts Wizard Use the interactive generator below to bootstrap your smart contract and learn about OpenZeppelin Contracts. Contracts…wizard.openzeppelin.comDao5 min readDao5 min read
Published inCoinmonks·Jan 29, 2022Deploy Subgraphs to Any EVMUsing Docker, The Graph, Graph-Node and OpenZepplin Subgraphs — Introduction The Graph supports many networks such as Ethereum, xDAI, BSC etc. This article will explain how to build a subgraph with a custom network RPC.The Graph4 min readThe Graph4 min read