An API Client For Filecoin
🧩 Filecoin version: Filecoin 0.4.3
go get github.com/arsyun/go-filecoin-api-client
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
}
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.
-
client.propose-storage-deal
-
client.query-storage-deal
-
client.verify-storage-deal
-
dht.findprovs
-
dht.query
-
log.tail
-
miner.create
-
mining.once
-
ping
-
retrievalclient.retrieve-piece