https://github.com/ivpavici/ethereum-smart-contract-forwarder
POC app for Ethereum smart contract forwarders in C#. They can be used by exchanges to handle user deposits
https://github.com/ivpavici/ethereum-smart-contract-forwarder
blockchain ethereum nethereum smart-contracts
Last synced: about 2 months ago
JSON representation
POC app for Ethereum smart contract forwarders in C#. They can be used by exchanges to handle user deposits
- Host: GitHub
- URL: https://github.com/ivpavici/ethereum-smart-contract-forwarder
- Owner: ivpavici
- Created: 2022-01-25T12:56:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-24T17:06:20.000Z (about 3 years ago)
- Last Synced: 2025-03-17T21:12:43.004Z (2 months ago)
- Topics: blockchain, ethereum, nethereum, smart-contracts
- Language: C#
- Homepage:
- Size: 62.5 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
- Problem:
https://ethereum.stackexchange.com/questions/84401/how-to-build-an-ethereum-hot-wallet-for-an-exchange- Goals:
- Develop a POC application that will handle creation of ethereum deposit addresses for user accounts, with help from smart contract forwarders, that automatically (and without paying gas) consolidate ethereum on a hot wallet. This can be used for example in a cryptocurrency exchange.
- The app will be a .Net 5 web api application, which can be connected to any frontend.
- Create a minimal react or vue.js app to call APIs
- Use TDD principles while developing- prerequisites:
- Use Infura test chain
- Or locally:
1. Testchain: https://github.com/Nethereum/Testchains
- I used Geth for Windows testchain for local development, just donwload the project and run the bath script
- Commands to interact with the CLI https://ethereum.stackexchange.com/questions/28703/full-list-of-geth-terminal-commands/28704
- Example command in CLI: web3.fromWei(eth.getBalance('0x13f022d72158410433cbd66f5dd8bf6d2d129924'));
2. https://github.com/Nethereum/Nethereum.WalletForwarder/tree/main/testchain- To run:
- docker compose up -d
- run migrations (dotnet ef database update)
- in postman/insomnia reach the endpoint via (for exmample) http://localhost:5000/api/assets