- Web3 alerts (e.g. whale alerts monitoring)
- Real-time transaction and crypto wallet notifications
- Monitoring wallet balances
Prerequisites
- A Moralis account with an API key
- Node.js or Python installed
- A webhook URL (you can use https://webhook.site for testing)
Step 1: Install the Moralis SDK
Install the Moralis SDK for your preferred language:npm
yarn
pip
Step 2: Create a Stream to Monitor Wallet Transactions
Once you have your API key and webhook URL, set up a stream to monitor on-chain wallet transactions. In this example, we will monitor the address0x68b3f12d6e8d85a8d3dbbc15bba9dc5103b888a4.
JavaScript:
index.js
index.ts
index.py
Step 3: Listen to Smart Contract Events
In addition to monitoring wallet transactions in real-time, you can use Streams to listen to smart contract events whenever they are emitted on the blockchain. For example, to listen to all ERC20 transfers for USDT: JavaScript:index.js
index.py
Step 4: Add Filters for Specific Use Cases
For listening to smart contracts, you can add the Filters feature to filter out results that only fulfill certain criteria. This is useful for specific use cases such as whale monitoring. For example, to monitor all USDT transactions on Ethereum over $1M: JavaScript:index.js
index.py

