web3.js payments⚡
Simplified Payments: Send Eth and ERC20 tokens with less transactions, direct transfers from generated addresses to businesses, created a web3plugin to getGasFee insights for smarter transactionsđź’ˇ
Created on 21st April 2024
•
web3.js payments⚡
Simplified Payments: Send Eth and ERC20 tokens with less transactions, direct transfers from generated addresses to businesses, created a web3plugin to getGasFee insights for smarter transactionsđź’ˇ
The problem web3.js payments⚡ solves
web3.js payments⚡ is a dApp that allows CoinsPaid to provide businesses with a dashboard with the capabilities of generating new addresses (managed by CoinsPaid) and for the clients to send payments, it also has the functionality for the business to withdraw these funds at anytime, in just 1 transaction directly from the generated addresses --> to the business address (since the addresses are managed by CoinsPaid, a fee can be charged and send a fee to CoinsPaid master address)
- Multi-Deposit Addresses: developed the capabilities for the business to generate addresses, and CoinsPaid is the holder of these PKs.
- Payout Aggregation: The dApp is tracking the balance of each
generatedAddress
so the business knows what their available balance to withdraw is, also when the business decides to withdraw, these transactions are signed off-chain using web3.js.- Fee Optimizaation: we have developed a web3-plugin-gasfees which analyzes the past baseFeePerGas of any given blocks and return a minimum, average and current price which can be used by anyone, and even improved to enhance its capabilities and trigger automated transactions when fees are low.
- Management of the Aggregating (Master) Address Balance: to avoid the number of transactions, we are not transfering the funds directly from the
generated addresses
to the master address, we are actually sending the funds directly to the business address (but a fee can be implemented to send it to the master address and send the remaining to the businessFuture Implementations
- Implement automated transaction in the web3 plugin when the fees are low
- Implement sendFee() to the CoinsPaid master address before sending all the funds to the business address
- Use AI large language model (LLMs) to predict gas prices based on past data
- Create a classification model that determines whether it is a good time to perform a transaction or not
Challenges we ran into
We had to talk several times with Yurii to be able to understand the business model since we were not able to understand why the clients were paying to
generated addresses
instead of the business directly, but once we understood the whole flow, it was easier to brainstorm the ideas and implement the solutionsTracks Applied (1)
Coinspaid Challenge: $5,000
CoinsPaid
Technologies used
Cheer Project
Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.

