Skip to content
This repository has been archived by the owner on Aug 8, 2020. It is now read-only.

potato-coin/potato-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Potato API library for Go

点击查看中文版

GoDoc

This library provides simple access to data structures (binary packing and JSON interface) and API calls to an Potato RPC server, running remotely or locally. It provides wallet functionalities (KeyBag), or can sign transaction through the kpocd wallet. It also knows about the P2P protocol on port 9876.

As of before the June launch, this library is pretty much in flux. Don't expect stability, as we're moving alongside the main potato codebase, which changes very fast.

This library is the basis for the potato-bios launch orchestrator tool at https://github.com/rise-worlds/potato-bios

Basic usage

api := potato.New("http://potato.jocky123.com")

infoResp, _ := api.GetInfo()
accountResp, _ := api.GetAccount("initn")
fmt.Println("Permission for initn:", accountResp.Permissions[0].RequiredAuth.Keys)

potato.system and poc.token contract Actions are respectively in:

Example

See example usages of the library:

Contributing

Any contributions are welcome, use your standard GitHub-fu to pitch in and improve.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages