Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 1.3 KB

README.md

File metadata and controls

50 lines (34 loc) · 1.3 KB

Go ArNS

GitHub go.mod Go version GitHub tag (latest SemVer) Go Report Card Unit-Tests Coverage Status Go Reference

中文说明

What is ArNS

ArNS: https://ar.io/arns/

Installation

go get github.com/everFinance/goarns

How to Use

package example

import (
	"github.com/everFinance/goarns"
	"time"
)

func QueryArNS() {

	dreUrl := "https://dre-3.warp.cc"
	arNSAddress := "bLAgYxAdX2Ry-nt6aH2ixgvJXbpsEYm28NgJgyqfs-U"
	timeout := 10 * time.Second

	domain := "arseeding"

	a := goarns.NewArNS(dreUrl, arNSAddress, timeout)

	txId, err := a.QueryLatestRecord(domain)

	if err != nil {
		print(err)
	}
	print(txId)

}