EOS.IO Go API library
Clone or download
maoueh Fixed bug preventing a working decoding of signature
The actual data was not read from the buffer leading to a key being decoded
using an empty buffer.
Latest commit fc651c7 Jan 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bnet Migrating `SHA256Bytes` to `Checksum256` for consistency. Nov 9, 2018
btcsuite Removed bogus R1 support in btcsuite. Added more hard/soft fail to ne… Nov 15, 2018
cmd use -v to show log from p2p in tools in cmd Nov 25, 2018
ecc Fixed encoding/decoding binary form for public keys (bis) Nov 28, 2018
eoserr Moved errorcodes to `eoserr` and EOSError -> Error Nov 8, 2018
forum Changed default forum contract Jan 14, 2019
msig Updated msig actions. Jun 20, 2018
p2p p2p package use the structured logging by zap, add p2pLog to p2p pack… Nov 25, 2018
sudo Updated sudoo Nov 8, 2018
system add NewPublicKeyFromData use be binary decoder Nov 15, 2018
token Added travis.yml file and fixed (mostly disabling for now) unit tests Aug 28, 2018
wallet bybye 7d May 15, 2018
.gitignore Proxy no struct Apr 19, 2018
.travis.yml Added travis.yml file and fixed (mostly disabling for now) unit tests Aug 28, 2018
LICENSE.txt Make NewEOSAssetFromString more resilient and flexible. Jun 26, 2018
README-cn.md Update README-cn.md Aug 30, 2018
README.md Update README.md Aug 20, 2018
abi.go Fix the array of objects. Sep 19, 2018
abi_test.go fix test Sep 19, 2018
abidecoder.go Removed named logger, when decoding Fields. Nov 26, 2018
abidecoder_test.go Fixed bug preventing a working decoding of signature Jan 18, 2019
abiencoder.go Replaced custom-built logging with `zap` from Uber. FIXED BUGS too. R… Nov 13, 2018
abiencoder_test.go Replaced custom-built logging with `zap` from Uber. FIXED BUGS too. R… Nov 13, 2018
actions.go Migrating `SHA256Bytes` to `Checksum256` for consistency. Nov 9, 2018
actions_test.go fix test Sep 19, 2018
api.go Merge pull request #102 from Jeiwan/get_raw_abi Jan 8, 2019
decoder.go Fixed bug preventing a working decoding of signature Jan 18, 2019
decoder_test.go Fixed encoding/decoding binary form for public keys (bis) Nov 28, 2018
encoder.go Revert "Fixed encoding/decoding binary form for public keys" Nov 28, 2018
error.go Replaced comma by : in error message formatting Dec 14, 2018
logger.go p2p package use the structured logging by zap, add p2pLog to p2p pack… Nov 25, 2018
name.go Added expired status for transactions. Oct 24, 2018
name_test.go wip May 15, 2018
p2p.go Working on chain freeze Aug 27, 2018
p2p_test.go Abi Encoding Sep 19, 2018
p2ptypes.go Merge branch 'master' of github.com:eoscanada/eos-go Dec 3, 2018
responses.go Merge branch 'master' of github.com:eoscanada/eos-go Jan 8, 2019
responses_test.go better support of transaction with CompressionZlib Dec 3, 2018
signer.go SignedTransaction: allow getting PublicKey.. Jul 2, 2018
transaction.go Remove warnings, as it's now handled by the library. Dec 11, 2018
transaction_test.go Protect against creating invalid transaction IDs. Dec 11, 2018
types.go Implement Blob type Dec 20, 2018
types_test.go Add a test for Blob Dec 20, 2018

README.md

EOS.IO API library for Go

点击查看中文版

GoDoc

This library provides simple access to data structures (binary packing and JSON interface) and API calls to an EOS.IO RPC server, running remotely or locally. It provides wallet functionalities (KeyBag), or can sign transaction through the keosd 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 eosio codebase, which changes very fast.

This library is the basis for the eos-bios launch orchestrator tool at https://github.com/eoscanada/eos-bios

Basic usage

api := eos.New("http://testnet1.eos.io")

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

eosio.system and eosio.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