Skip to content

camuig/go-1inch

 
 

Repository files navigation

go-1inch

A golang API wrapper for the 1inch API

Getting started

package main

import (
    "context"
    "fmt"
	"log"

    go1inch "github.com/jon4hz/go-1inch"
)

func main(){
    // create a new client
    client := go1inch.NewClient()

    // check the health status from the API pointing to the ethereum network
    health, _, err := client.Healthcheck(context.Background(), "eth")
    if err != nil {
        log.Fatal(err)
    }
    
    fmt.Println(health)
}

Ressources

About

A Go wrapper for the 1Inch API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%