Skip to content

This repository is for creating smart contracts that address etherium and this repository is built with NodeJS and Hardhat

Notifications You must be signed in to change notification settings

confenni/DonateSmartContract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart Contract Server for Plugin Donate Crypto

This server runs on NodeJS with Hardhat configuration for smart contract system, this server can run on local server or VPS. This server has the function to create smart contracts using Hardhat. Before deploying a new smart contract, you must have a personal account key (Etherium), network name, and network API key url.

Installation

Download or Clone this repository. After that you open the terminal in the project and type the command as below and enter, to install all the packages used.

npm install

Running the server

The server can run if you type and enter

node scripts/index.js

API Reference

Create Smart Contract

  POST /createSmartContract
Parameter Type Description
network string Required. Type of network
url_api_key string Required. URL API KEY of network
private_key_account string Required. Private Key Account from metamask

If you run this API endpoint, you will get a JSON result like this

{
    "status": true,
    "message": "Process Successfully",
    "data": {
        "address_contract": "0x71F3e30b1f00AD6201d4fBea7a223cB91B8f5614",
        "abi_json_url": "http://localhost:3000/abi_json/ABI_FILE_JSON_SMARTCONTRACT.json"
    }
}

Tech Stack

System: NodeJS, Javascripts, ExpressJS, Hardhat

About

This repository is for creating smart contracts that address etherium and this repository is built with NodeJS and Hardhat

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published