USDC Landing to Telegram

automation · by zorilla · came with Zorilla

Tells you on Telegram when USDC arrives in a wallet, once per transaction. Needs a Telegram key named telegram_key.

ScheduleEvery 5 minutesContract eventsTransfer on 0xA0b8…eB48, wher…Only the first timeOnce per transactionHash, everSend a Telegram messagetelegram.send

4 steps, drawn from the file

What this can do

Read out of the file, not written by the author.

contacts api.telegram.orgreads ethereum

Uses your saved keys named telegram_key. It binds to your own keys of those names. No key travels in the file.

4 steps, started by Schedule.

Contents
{
  "name": "USDC Landing to Telegram",
  "nodes": [
    {
      "id": "clock",
      "type": "core.schedule",
      "params": {
        "mode": "every",
        "every": 5,
        "unit": "minutes"
      },
      "position": {
        "x": 40,
        "y": 170
      }
    },
    {
      "id": "events",
      "type": "web3.logs",
      "params": {
        "chain": "ethereum",
        "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
        "event": "event Transfer(address indexed from, address indexed to, uint256 value)",
        "match": [
          {
            "name": "to",
            "value": "0x28C6c06298d514Db089934071355E5743bf21d60"
          }
        ],
        "blocks": 300,
        "rpc": ""
      },
      "position": {
        "x": 300,
        "y": 170
      }
    },
    {
      "id": "fresh",
      "type": "logic.once",
      "params": {
        "key": "{{ $json.transactionHash }}"
      },
      "position": {
        "x": 560,
        "y": 170
      }
    },
    {
      "id": "tell",
      "type": "telegram.send",
      "params": {
        "credential": "telegram_key",
        "text": "USDC in: {{ $json.args.value }} raw units, tx {{ $json.transactionHash }}",
        "chatId": ""
      },
      "position": {
        "x": 820,
        "y": 170
      }
    }
  ],
  "edges": [
    {
      "from": "clock",
      "fromPort": "main",
      "to": "events",
      "toPort": "main"
    },
    {
      "from": "events",
      "fromPort": "main",
      "to": "fresh",
      "toPort": "main"
    },
    {
      "from": "fresh",
      "fromPort": "main",
      "to": "tell",
      "toPort": "main"
    }
  ]
}
Back

Download it, then in Zorilla press add one from a file. You get a screen listing what it contacts and which keys it asks for before anything is saved.