Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/agustinsrg/smart-contract-wrapper
Typescript wrapper for smart contract interaction.
https://github.com/agustinsrg/smart-contract-wrapper
ethereum rpc-client smart-contracts wrapper
Last synced: about 1 month ago
JSON representation
Typescript wrapper for smart contract interaction.
- Host: GitHub
- URL: https://github.com/agustinsrg/smart-contract-wrapper
- Owner: AgustinSRG
- License: mit
- Created: 2022-09-16T07:07:35.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-24T12:21:42.000Z (3 months ago)
- Last Synced: 2024-10-25T03:36:30.485Z (3 months ago)
- Topics: ethereum, rpc-client, smart-contracts, wrapper
- Language: TypeScript
- Homepage: https://agustinsrg.github.io/smart-contract-wrapper/codegen/
- Size: 818 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Smart Contract Wrapper
[![npm version](https://badge.fury.io/js/%40asanrom%2Fsmart-contract-wrapper.svg)](https://badge.fury.io/js/%40asanrom%2Fsmart-contract-wrapper)
Typescript wrapper for smart contract interaction.
This is a library to interact with Ethereum EVM using the JSON-RPC API. It allows both calling pure and view methods and also sending transactions.
## Installation
If you are using a npm managed project use:
```
npm install @asanrom/smart-contract-wrapper
```## Usage
This library exports various utilities, along with the class `SmartContractInterface`, that allows the interaction with smart contracts using the ABI definition.
Using this class you can create a class for a smart contract, implementing the methods you want to use, here is an example: [ERC20 Contract Wrapper](https://github.com/AgustinSRG/smart-contract-wrapper/blob/master/tests/utils/erc20.ts)
## Documentation
- [Library documentation (Auto-generated)](https://agustinsrg.github.io/smart-contract-wrapper/docs)
## Contract wrapper generator
For automatic generation of a smart contract wrappers, use the following utility:
- [Smart contract wrapper generator](https://agustinsrg.github.io/smart-contract-wrapper/codegen)