Docs
Supported ChainsManta PacificJSON-RPC APISmart Contract Methods

eth_newFilter - Manta RPC Method

Create event log filter on Manta Pacific. Essential for monitoring events for ZK-enabled DeFi, private identity verification, and modular ZK applications via Universal Circuits.

Creates a filter object on Manta Pacific to notify when state changes (logs).

Use Cases

  • Event monitoring - Subscribe to contract events
  • Real-time updates - Track events for ZK-enabled DeFi, private identity verification, and modular ZK applications via Universal Circuits
  • Indexing - Build event indexes incrementally

Request Parameters

Request
fromBlockQUANTITY|TAG

Starting block

toBlockQUANTITY|TAG

Ending block

addressDATA|Array

Contract address(es)

topicsArray

Topic filters

Response Body

Response
resultQUANTITY

Filter ID

Code Examples

Bash
curl -X POST https://api-manta-pacific-archive.n.dwellir.com/YOUR_API_KEY \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_newFilter",
    "params": [{
      "fromBlock": "latest",
      "address": "0x0Dc808adcE2099A9F62AA87D9670745AbA741746"
    }],
    "id": 1
  }'
JavaScript
import { JsonRpcProvider } from 'ethers';

const provider = new JsonRpcProvider('https://api-manta-pacific-archive.n.dwellir.com/YOUR_API_KEY');

// Create filter
const filterId = await provider.send('eth_newFilter', [{
  fromBlock: 'latest',
  address: '0x0Dc808adcE2099A9F62AA87D9670745AbA741746',
  topics: ['0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef']
}]);

// Poll for changes
const changes = await provider.send('eth_getFilterChanges', [filterId]);
console.log('New events:', changes);

// Cleanup
await provider.send('eth_uninstallFilter', [filterId]);

On this page