Logo

dev-resources.site

for different kinds of informations.

plopchain

Published at
9/29/2022
Categories
metamask
ethereum
blockchain
subdotnet
Author
boulix3
Author
7 person written this
boulix3
open
plopchain

Metamask compatible json-rpc server

This project is a proof of concept - It implements the minimum required ethereum rpc apis to be able to accept simple metamask transactions (transfert only).

This will be included in sub.net library.

Prerequisites :

Clone the subdotnet/metamask-mini-api repository

git clone https://github.com/subdotnet/metamask-mini-api.git
Enter fullscreen mode Exit fullscreen mode

Run the demo :

1) The simple blockchain has 2 prefunded wallets. You can import these private keys in metamask :

  • 616b28bfaa49973faf243ec3296a01675c742533f06c325c78f3d63ceef67963
    • public key : 0x145272D2e9828aE2A25913c0643ff0cb486bBAD1
  • ff067934635e368095f47bfc72942087e07b097d0c541b8f4602dcd255de50fd
    • public key : 0x169E72fa2CC6Ec61402dc3C5D3c16ACc4d83BAD2

The public keys end with "BADx".

Install metamask and import prefunded dev addresses :
configure metamask wallet

2) Run the project
Inside the cloned repository, simply execute dotnet run and you should have this output in the console : json-rpc api listening on http://localhost:5035

3) Configure localPLOP network in metamask
Open metamasks settings and go to the network tab.
Add new network with the folowing values :

You should have 42 PLOP in your BAD1 wallet and 1337 PLOP in your BAD2.

Configure custom network in metamask and transfer funds :
configure metamask wallet

metamask Article's
30 articles in total
Favicon
Your First Steps in Web3: A Simple Demo
Favicon
I hacked web3 wallet!
Favicon
Survival guide to DevConnect Istanbul MetaMask bounties
Favicon
How To Set a Custom Node URL in MetaMask - Tokenview
Favicon
Metamask Snaps
Favicon
Add Hearverse Chain in your Metamask
Favicon
How to Restore multiple Meta Mask Accounts: Tips and Tricks no one tells you !
Favicon
Fix : TokenService Error: ChainId 0x539 is not supported :(
Favicon
Sign in with Metamask using LiveView
Favicon
Introduction to Blockchain Wallet
Favicon
How to Load Unlimited Free Ethers to Metamask Wallet
Favicon
Signing data with MetaMask
Favicon
What are meta transactions, the EIP-712 standard, and how to sign a message with Metamask?
Favicon
Understanding MetaMask RPC methods and errors
Favicon
How to add Web3 Authentication using NEXT JS & MetaMask?
Favicon
What Is Web3?
Favicon
Dating site for developers
Favicon
plopchain
Favicon
How to use Gitcoin
Favicon
Signing message using Metamask in Flutter
Favicon
How to Add Polygon (MATIC) Network to MetaMask
Favicon
Create connect wallet button with React + Web3.js + Bootstrap
Favicon
Building with Flutter and Metamask
Favicon
React Hook for Add/Switch Chain to any Ethereum Network in MetaMask
Favicon
ETH Dubai 2022 Recap
Favicon
Tutorial: Connect to MetaMask using vanilla JavaScript
Favicon
Connect MetaMask wallet #JavaScript
Favicon
How MetaMask Creates Accounts
Favicon
Understand Metamask: the basics.
Favicon
How to setup a Metamask account.

Featured ones: