Categorygithub.com/0xsequence/chainalysis
modulepackage
0.6.0
Repository: https://github.com/0xsequence/chainalysis.git
Documentation: pkg.go.dev

# README

chainalysis

Track sanctioned addresses from Chainalysis Oracle.

OracleAddress       = "0x40C57923924B5c5c5455c48D93317139ADDaC8fb"
OracleStartingBlock = 14356508
OracleChainID       = 1

Usage

Please see _example.

Note: there is an embedded index in the library, and if you call .Run() it will listen for updates every 10 minutes.

Calling make update-index will update the packages index/sanctioned_addresses.json file

LICENSE

MIT or Apache 2.0

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
NewFileSource creates a new file source, which implements the IndexSource interface we assume this file has a similar structure to our pre-indexed json file in index/sanctioned_addresses.json this can be used so that we don't have to re-index the logs from the point we left off.
NewWebSource creates a new web source, this is the default source for the chainalysis package it uses the index we have stored in index/sanctioned_addresses.json.

# Constants

No description provided by the author
OracleAddress is the address of the Chainalysis Oracle https://go.chainalysis.com/chainalysis-oracle-docs.html.
OracleAddress is the address of the Chainalysis Oracle https://go.chainalysis.com/chainalysis-oracle-docs.html.
-10 so we don't miss anything.

# Structs

No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
IndexSource is an interface that allows the chainalysis package to fetch pre-indexed events.