This workflow follows the HTTP Request → Postgres recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"active": true,
"connections": {
"Schedule Trigger": {
"main": [
[
{
"node": "GET TRANSACTIONS",
"type": "main",
"index": 0
}
]
]
},
"GET TRANSACTIONS": {
"main": [
[
{
"node": "GET HASH LAST TRX",
"type": "main",
"index": 0
}
]
]
},
"GET HASH LAST TRX": {
"main": [
[
{
"node": "LAST PROCESSED TRX",
"type": "main",
"index": 0
}
]
]
},
"LAST PROCESSED TRX": {
"main": [
[
{
"node": "NOT EQUAL HASH",
"type": "main",
"index": 0
}
]
]
},
"Telegram": {
"main": [
[
{
"node": "UPDATE HASH",
"type": "main",
"index": 0
}
]
]
},
"NOT EQUAL HASH": {
"main": [
[
{
"node": "Telegram",
"type": "main",
"index": 0
}
],
[
{
"node": "IF",
"type": "main",
"index": 0
}
]
]
},
"IF": {
"main": [
[
{
"node": "Telegram1",
"type": "main",
"index": 0
}
]
]
},
"Telegram1": {
"main": [
[
{
"node": "UPDATE NTF COUNT",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2024-02-16T10:56:35.909Z",
"id": "SkFhbaEH5IXQ3YbC",
"isArchived": false,
"meta": null,
"name": "ETHERSCAN",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "minutes",
"minutesInterval": 1
}
]
}
},
"id": "9ea1b107-8038-40bc-912d-56338ab0c812",
"name": "Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.1,
"position": [
740,
360
]
},
{
"parameters": {
"url": "https://api.etherscan.io/api",
"authentication": "genericCredentialType",
"genericAuthType": "httpQueryAuth",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "module",
"value": "account"
},
{
"name": "action",
"value": "txlist"
},
{
"name": "address",
"value": "0x19370B033d5e5613a05449CD2404AB768Fd60615"
},
{
"name": "startblock",
"value": "0"
},
{
"name": "endblock",
"value": "99999999"
},
{
"name": "page",
"value": "0"
},
{
"name": "offset",
"value": "10"
},
{
"name": "sort",
"value": "desc"
}
]
},
"options": {
"redirect": {
"redirect": {}
}
}
},
"id": "d2c13ab2-a617-4494-9b0b-761eeb20dc35",
"name": "GET TRANSACTIONS",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [
980,
360
],
"credentials": {
"httpQueryAuth": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"include": "selected",
"includeFields": "result[0].hash",
"options": {}
},
"id": "dcc5e7c3-5bdf-4432-ae3a-9bb13f782ed2",
"name": "GET HASH LAST TRX",
"type": "n8n-nodes-base.set",
"typeVersion": 3.2,
"position": [
1200,
360
]
},
{
"parameters": {
"operation": "select",
"schema": {
"__rl": true,
"mode": "list",
"value": "public"
},
"table": {
"__rl": true,
"value": "etherscan_lst_trx",
"mode": "list",
"cachedResultName": "etherscan_lst_trx"
},
"limit": 1,
"options": {}
},
"id": "8641c28c-1d65-492c-9e2c-a3f18103d9aa",
"name": "LAST PROCESSED TRX",
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.3,
"position": [
1400,
360
],
"credentials": {
"postgres": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"chatId": "5217553853",
"text": "=\ud83d\udcb0New TRX\ud83d\udcb0 NTF #{{1}}\n\n\u26a0\ufe0fOn your Wallet new transaction, please check\u26a0\ufe0f\n\n\ud83d\udcb8 Hash: {{ $('GET HASH LAST TRX').item.json.hash }}\n\n\ud83e\ude99Wallet:0x19370b033d5e5613a05449cd2404ab768fd60615 ",
"additionalFields": {
"appendAttribution": false
}
},
"id": "1f9ca6a5-e23e-4a5a-b9af-d0c9d3188beb",
"name": "Telegram",
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.1,
"position": [
2040,
120
],
"notesInFlow": false,
"credentials": {
"telegramApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{ $json.hash }}",
"operation": "notEqual",
"value2": "={{ $('GET HASH LAST TRX').item.json.hash }}"
},
{
"value1": "={{ $json.hash }}",
"operation": "isNotEmpty"
}
]
}
},
"id": "4e1355c9-ed55-4ae5-b2e5-5c0ae978497f",
"name": "NOT EQUAL HASH",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1600,
360
]
},
{
"parameters": {
"conditions": {
"number": [
{
"value1": "={{ $json.notifications_count }}",
"value2": 3
}
]
}
},
"id": "bc92866b-1561-4ec7-a79a-09339f9e3472",
"name": "IF",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1800,
380
]
},
{
"parameters": {
"chatId": "5217553853",
"text": "=\ud83d\udcb0New TRX\ud83d\udcb0 NTF #{{ $json.notifications_count+1}}\n\n\u26a0\ufe0fOn your Wallet new transaction, please check\u26a0\ufe0f\n\n\ud83d\udcb8 Hash: {{ $('GET HASH LAST TRX').item.json.hash }}\n\n\ud83e\ude99Wallet:0x19370b033d5e5613a05449cd2404ab768fd60615 ",
"additionalFields": {
"appendAttribution": false
}
},
"id": "e1cb0823-6e25-4f74-9cb1-de99d4ae2d0b",
"name": "Telegram1",
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.1,
"position": [
2080,
360
],
"notesInFlow": false,
"credentials": {
"telegramApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"operation": "update",
"schema": {
"__rl": true,
"mode": "list",
"value": "public"
},
"table": {
"__rl": true,
"value": "etherscan_lst_trx",
"mode": "list",
"cachedResultName": "etherscan_lst_trx"
},
"columns": {
"mappingMode": "defineBelow",
"value": {
"id": "={{ $('NOT EQUAL HASH').item.json.id }}",
"hash": "={{ $('GET HASH LAST TRX').item.json.hash }}",
"notifications_count": "={{ $('IF').item.json.notifications_count + 1 }}"
},
"matchingColumns": [
"id"
],
"schema": [
{
"id": "hash",
"displayName": "hash",
"required": false,
"defaultMatch": false,
"display": true,
"type": "string",
"canBeUsedToMatch": true
},
{
"id": "notifications_count",
"displayName": "notifications_count",
"required": false,
"defaultMatch": false,
"display": true,
"type": "number",
"canBeUsedToMatch": true
},
{
"id": "id",
"displayName": "id",
"required": false,
"defaultMatch": true,
"display": true,
"type": "number",
"canBeUsedToMatch": true,
"removed": false
}
]
},
"options": {}
},
"id": "238e55a0-3965-44f5-8789-0901510cc184",
"name": "UPDATE NTF COUNT",
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.3,
"position": [
2300,
360
],
"credentials": {
"postgres": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"operation": "update",
"schema": {
"__rl": true,
"mode": "list",
"value": "public"
},
"table": {
"__rl": true,
"value": "etherscan_lst_trx",
"mode": "list",
"cachedResultName": "etherscan_lst_trx"
},
"columns": {
"mappingMode": "defineBelow",
"value": {
"id": "={{ $('NOT EQUAL HASH').item.json.id }}",
"hash": "={{ $('GET HASH LAST TRX').item.json.hash }}",
"notifications_count": 1
},
"matchingColumns": [
"id"
],
"schema": [
{
"id": "hash",
"displayName": "hash",
"required": false,
"defaultMatch": false,
"display": true,
"type": "string",
"canBeUsedToMatch": true
},
{
"id": "notifications_count",
"displayName": "notifications_count",
"required": false,
"defaultMatch": false,
"display": true,
"type": "number",
"canBeUsedToMatch": true
},
{
"id": "id",
"displayName": "id",
"required": false,
"defaultMatch": true,
"display": true,
"type": "number",
"canBeUsedToMatch": true,
"removed": false
}
]
},
"options": {}
},
"id": "8fd673bd-8845-4891-b100-801e4660139c",
"name": "UPDATE HASH",
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.3,
"position": [
2240,
120
],
"credentials": {
"postgres": {
"name": "<your credential>"
}
}
}
],
"settings": {
"executionOrder": "v1"
},
"shared": [
{
"createdAt": "2024-02-16T10:56:35.913Z",
"updatedAt": "2024-02-16T10:56:35.913Z",
"role": "workflow:owner",
"workflowId": "SkFhbaEH5IXQ3YbC",
"projectId": "1dpdX6PwTs6u06T1"
}
],
"staticData": {
"node:Schedule Trigger": {
"recurrencyRules": [],
"recurrenceRules": []
}
},
"tags": [],
"triggerCount": 1,
"updatedAt": "2024-05-23T11:03:00.000Z",
"versionId": "c9b6496d-673f-401e-9642-9ce4538fea4b"
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
httpQueryAuthpostgrestelegramApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
ETHERSCAN. Uses httpRequest, postgres, telegram. Scheduled trigger; 10 nodes.
Source: https://github.com/RideSVEL/n8n-workflows/blob/61b7f35a8be1e3131f38e69ef7e9da1ec8973744/workflows/ETHERSCAN.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Pede Ai. Uses httpRequest, telegram, postgres, telegramTrigger. Event-driven trigger; 53 nodes.
GNCA AI News Pipeline. Uses rssFeedRead, httpRequest, telegram, errorTrigger. Scheduled trigger; 29 nodes.
This workflow automates plant care reminders and records using Google Sheets, Telegram, and OpenWeather API.
Apollo Data Enrichment Using Company Id to automatically finds contacts for companies listed in your Google Sheet, enriches each person with emails and phone numbers via Apollo’s API, and writes verif
MindFrame Psychology - FREE Complete Workflow. Uses httpRequest, googleDrive, telegram. Scheduled trigger; 25 nodes.