Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.
/ ethesci Public archive

Ethereum Easy Smart Contract Interface

License

Notifications You must be signed in to change notification settings

ethrx/ethesci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This code is now archived and dangerous, eval() should not be used without sanitisation or consideration of the caller.

Ethereum Easy Smart Contract Interface

Interact with smart contracts easily in JavaScript using web3.js.

Getting Started

npm install ethesci

Usage

ERC721

const ERC721 = require("ethesci").erc721

// initialize the contract
var contract = new ERC721(network_url, abi_json, contract_address)

// create contract function call
var contractCall = contract.contractCall(function_name, arguments)
// call the contract function
let output = await contractCall.call()
console.log(output) 

// the ERC721 template includes custom functions such as getTokens(owner_address)
var tokens = contract.getTokens(owner_address)
console.log(tokens)
/*
[
  {
    "tokenId": "unint265",
    "tokenURI": "string"
  }
]
*/

Other contract types (ERC20, ERC1155, etc)

const Contract = require("ethesci").default

var contract = new Contract(network_url, abi_json, contract_address)

var contractCall = contract.contractCall(function_name, arguments)
let output = await contractCall.call()
console.log(output) 

About

Ethereum Easy Smart Contract Interface

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published