solscan

package module
v0.0.0-...-7b2940e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:     "solscan",
	Example: "ENDPOINTS=https://api.solscan.io/collection?sortBy=volume LIMIT=500 nftkitten solscan >.out.json; [ $? -eq 0 ] && mv .out.json out.json  || rm .out.json",
	Run: func(cmd *cobra.Command, args []string) {
		if endpoints, _ := os.LookupEnv("ENDPOINTS"); endpoints == "" {
			log.Fatalln("No ENDPOINTS")
		} else {
			limit := lookupEnvToI("LIMIT", 0)
			if rate := lookupEnvToI("RATE", 5); rate <= 0 {
				execute(strings.Split(endpoints, "\n"), limit, 5)
			} else {
				execute(strings.Split(endpoints, "\n"), limit, rate)
			}
		}
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL