Skip to content
Komodo go API repository
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
address.go
base.go
blockchain.go
control.go
crosschainAPI.go
disclosure.go
generate.go
logo.png
mining.go
network.go
rawtransactions.go
types.go
util.go
wallet.go

README.md

Komodo_Logo

Komodo RPC API Library Go Lang

RPC API-Library for GoLang. This library allows developers to communicate with the komodo client APIs.

Description

Komodo-RPC library helps you integrate your Python Apps with Komodo asset-chains without having to setup/implement required RPC functions. Install this Python library and call Komodo-API RPCs as easily as calling a local function. Komodo-RPC library acts as a wrapper between your Python app and the Komodo-daemon running on a server.

Getting Started

You will first need to get the library from the github repository by executing the following the command.

go get -u github.com/sjashwin/komodo-go

Make sure you are now running the komodo server, which is komodod.

Once the komodo server has successfully started you can then execute this main function. Please make sure you change the authentication properties.

func main(){
    authentication := &komodo.Auth{
        Host: "127.0.0.1",
        User: "myusername",
        Password: "mypassword",
        Port: 7771,
    }
    client := komodo.Client{
        Auth: authentication
    }
    if j, err := client.GetWalletInfo(); err != nil{
        panic(err)
    } else {
        fmt.Println(j)
    }
}

Please feel free to report any bugs.

You can’t perform that action at this time.