
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
web3gateway
Advanced tools
A multi-chain Web3 gateway service that provides unified RESTful APIs for blockchain interaction.
pip install web3gateway
touch config.json
{
"auth_username": "test_user",
"auth_password": "test_password",
"infura_project_id": "your infura project id",
"etherscan_api_key": "your etherscan api key",
"redis_url": "redis://localhost:6379",
"redis_host": "localhost",
"redis_port": 6379,
"redis_db": 0,
"redis_password": "",
"rate_limit_calls": 5,
"rate_limit_period": 1,
"cache_expiration": 10
}
redis-server
web3gateway -c config.json
curl -X GET "http://localhost:8000/ping"
# Clone the repo
git clone https://github.com/daboooooo/web3gateway.git
# Create virtual environment and install dependencies
cd web3gateway
./setup.sh -i
source .env/bin/activate
# Set up configuration
cp config.json.example config.json
# Edit config.json with your credentials
# Start the server
web3gateway
# Test the server
curl -X GET "http://localhost:8000/ping"
POST /transaction/assemble
POST /transaction/send
POST /transaction/get_receipt
POST /account/balance
POST /account/token_balance
POST /account/txlist
GET /ping
curl -X POST "http://localhost:8000/account/balance" \
-H "Content-Type: application/json" \
-u "test_user:test_password" \
-d '{
"chain_id": 1,
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
}'
Response:
{
"timestamp": 1677654321000,
"data": {
"balance": "1234567890000000000"
}
}
curl -X POST "http://localhost:8000/account/token_balance" \
-H "Content-Type: application/json" \
-u "test_user:test_password" \
-d '{
"chain_id": 1,
"contractaddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
}'
Response:
{
"timestamp": 1677654321000,
"data": {
"contract address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"token balance": "150000000"
}
}
curl -X POST "http://localhost:8000/transaction/assemble" \
-H "Content-Type: application/json" \
-u "test_user:test_password" \
-d '{
"chain_id": 1,
"tx_params": {
"from": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"to": "0x1234567890123456789012345678901234567890",
"value": "1000000000000000000"
},
"gas_level": "normal"
}'
Response:
{
"timestamp": 1677654321000,
"data": {
"chainId": 1,
"nonce": 5,
"gasPrice": "20000000000",
"gas": 21000,
"to": "0x1234567890123456789012345678901234567890",
"value": 1000000000000000000,
"data": "0x",
"maxPriorityFeePerGas":492407668,"maxFeePerGas":1632172748
}
}
You can then sign and send the transaction using the send API.
curl -X POST "http://localhost:8000/account/txlist" \
-H "Content-Type: application/json" \
-u "test_user:test_password" \
-d '{
"chain_id": 1,
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
}'
Response:
{
"timestamp": 1677654321000,
"data": {
"last transactions": [
{
"blockNumber": "17584321",
"timeStamp": "1677654000",
"hash": "0xabcd...",
"from": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"to": "0x1234...",
"value": "1000000000000000000",
"gas": "21000",
"gasPrice": "20000000000"
}
]
}
}
PRs are welcome! Check out our contribution guidelines.
MIT License - fork, modify and use as you wish.
This is a production-ready gateway but use at your own risk. Always verify transactions before signing.
FAQs
Web3Gateway - A Restful Web3 Gateway Service
We found that web3gateway demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.