Categorygithub.com/bored-ton/ton-go
modulepackage
0.0.3
Repository: https://github.com/bored-ton/ton-go.git
Documentation: pkg.go.dev

# README

GoDoc

TON GO

Library provides a set of tools for working with TON blockchain.

TON Center Client

Tasks

Example

package main

import (
	"log"

	tongo "github.com/bored-ton/ton-go"
	"github.com/shopspring/decimal"
)

func main() {
	client := tongo.NewTonCenterAnonimousClient("https://toncenter.com/api/v2/")
	balance, err := client.Balance("EQCi7s7EYcPzzCrmPlQHck5FerXojlPt32f5vRsbjIPtOLkM")
	if err != nil {
		log.Fatalln(err)
	}
	log.Printf("balance: %s", balance.Div(decimal.NewFromFloat(1e9)).String())
}

# Functions

NewTonCenterAnonimousClient creates new anonymous toncenter HTTP client.
NewTonCenterClient creates new toncenter HTTP client.

# Structs

AddressInformation.
BlockHeader information.
BlockHeaderRequestParameters.
BlockID.
BlockTransactionsRequestParameters.
ExtendedAccountState.
ExtendedAddress.
ExtendedAddressInformation.
LookupBlockRequestParameters.
MasterchainInfo.
Message describes transaction message.
MessageData.
RunMethodRequest contains parameters for run method request.
TonCenterClient is the client for toncenter.com HTTP API.
TonID.
Transaction.
TransactionsRequestOptions contains options for transactions request.
WalletInformation.