Skip to content

jon4hz/go-1inch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

matthew188matthew188
and
matthew188
Dec 27, 2022
6aff7ff Β· Dec 27, 2022

History

40 Commits
Dec 17, 2022
Nov 8, 2022
Jun 27, 2021
Dec 17, 2022
Nov 8, 2022
Dec 27, 2022
Nov 8, 2022
Nov 8, 2022
Jan 21, 2022
Nov 8, 2022
Nov 8, 2022
Nov 8, 2022
Nov 8, 2022
Nov 8, 2022

Repository files navigation

go-1inch

A golang API wrapper for the 1inch API

Getting started

testing

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(), go1inch.Eth)
    if err != nil {
        log.Fatal(err)
    }

    fmt.Println(health)
}

Ressources