utopia-opensource / account-balance-go

Example of querying the balance of Crypton and UUSD with Utopia Ecosystem API and utopialib-go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

account-balance-go

Example of querying the balance of Crypton and UUSD with Utopia Ecosystem API and utopialib-go

example of use

flags:

  -host string
    	Utopia client host (default "http://127.0.0.1")
  -port int
    	client port (default 20000)
  -token string
    	client account token

Let's open the X client, set up the token, and try the request:

go build
./balancetest -host=http://127.0.0.1 -port=20000 -token=C17BF2E95821A6B545DC9A193CBB750B

result:

[ 150.34 75.9827 ]

udocs

About

Example of querying the balance of Crypton and UUSD with Utopia Ecosystem API and utopialib-go

License:MIT License


Languages

Language:Go 100.0%