Skip to content

How To Index ETH Transactions (not just logs/events) #174

Discussion options

You must be logged in to vote

In addition to indexing at the log level, Shovel can also index data at the transaction level. For example, say you wanted to save a transaction's input data when the transaction is addressed to a particular contract. This can be achieved with the following config:

{
	"pg_url": "postgres:///shovel",
	"eth_sources": [
		{"name": "main", "chain_id": 1, "url": "https://1.rlps.indexsupply.net"}
	],
	"integrations": [
		{
			"name": "txinputs",
			"enabled": true,
			"sources": [{"name": "main"}],
			"table": {
				"name": "txi",
				"columns": [
					{"name": "chain_id", "type": "numeric"},
					{"name": "block_hash", "type": "bytea"},
					{"name": "block_num", "type": "numeric"},
					{"name"

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ryandotsmith
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant