Skip to content

arsyun/go-filecoin-api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-filecoin-api-client

An API Client For Filecoin

⚠️ WARNING: Filecoin is under heavy development and breaking changes are highly likely between versions. This library is experimental, It may be broken in part or in entirety.

🧩 Filecoin version: Filecoin 0.4.3

Install

go get github.com/arsyun/go-filecoin-api-client

Usage

Golang

func main() {
	//default url: 127.0.0.1:3453
	AddressAPI := api.NewAPI("").Address()
	addrs, err := AddressAPI.Ls(context.Background())
	if err != nil {
		fmt.Println("err:", err)
		return
	}
	fmt.Println("addrs:", addrs)
	return
}

API

Because of the time, the functions provided by the current version of filecoin will be listed, and the unrealized functions will be marked for further improvement.

About

filecoin api by golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages