Admin Guide

Synapse-Etherscan Admin Guide

Configuration

Synapse-Etherscan requires an Etherscan API key.

For information on how to sign up, please visit the Etherscan API documentation.

Setting API key for global use

To set-up a global API key:

> etherscan.config.add default myapikey
Synapse-Etherscan config "default" added

Creating a configuration for role-based use

Add an unscoped configuration:

> etherscan.config.add myunscoped myapikey --scope unscoped
Synapse-Etherscan config "myunscoped" added

Grant another user admin permissions to the new configuration:

> etherscan.config.update myunscoped --perm user visi admin
Updated Synapse-Etherscan config "myunscoped"

Grant a role read permissions to the new configuration:

> etherscan.config.update myunscoped --perm role ninjas read
Updated Synapse-Etherscan config "myunscoped"

Users may select a configuration other than their default by passing --config <name> to the Synapse-Etherscan commands.

Overriding the proxy configuration

In order to override the default proxy configuration in the Cortex the user must have the power-ups.etherscan.admin or storm.lib.inet.http.proxy permission.

When the proxy configuration is set to (false) or a URL the permission will be checked when a configuration is created/updated, and when it is used to make an HTTP request.

Permissions

Package (synapse-etherscan) defines the following permissions:
power-ups.etherscan.user         : Controls user access to Synapse-Etherscan. ( default: false )
power-ups.etherscan.admin        : Controls access to Synapse-Etherscan admin options. ( default: false )

You may add rules to users/roles directly from storm:

> auth.user.addrule visi power-ups.etherscan.user
Added rule power-ups.etherscan.user to user visi.

or:

> auth.role.addrule ninjas power-ups.etherscan.user
Added rule power-ups.etherscan.user to role ninjas.

Exported APIs

Synapse-Etherscan does not currently export any APIs.

Workflows

Synapse-Etherscan provides the following workflows in Optic:

Title: Configuration
Title: Crypto Explorer

The Configuration workflow may be used to manage Synapse-Etherscan configurations from Optic.

Node Actions

Synapse-Etherscan provides the following node actions in Optic:

Name : enrich
Desc : Enrich nodes using Synapse-Etherscan
Forms: crypto:currency:address, crypto:currency:transaction, crypto:smart:contract