Premium API usage stats
Special endpoint for Premium API users showing some stats on your API key usage.
GetUsage
package main
import (
"fmt"
"log"
"os"
"github.com/DiFronzo/blockchair"
)
var clientID string
func init() {
clientID = os.Getenv("API_KEY")
}
func main() {
c := blockchair.New()
c.APIKey = clientID
resp, err := c.GetUsage()
if err != nil {
log.Fatalln(err)
}
fmt.Println(resp)
}Last updated
Was this helpful?