https://github.com/markgenuine/ever-client-go
Golang-Binding for TVM blockchains (Everscale, Gosh, TON, Venom Blockchain, etc).
https://github.com/markgenuine/ever-client-go
bindings client everscale go golang sdk
Last synced: 5 months ago
JSON representation
Golang-Binding for TVM blockchains (Everscale, Gosh, TON, Venom Blockchain, etc).
- Host: GitHub
- URL: https://github.com/markgenuine/ever-client-go
- Owner: markgenuine
- License: apache-2.0
- Created: 2020-08-01T23:31:20.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-07-13T11:44:30.000Z (11 months ago)
- Last Synced: 2026-01-12T05:05:34.653Z (5 months ago)
- Topics: bindings, client, everscale, go, golang, sdk
- Language: Go
- Homepage:
- Size: 1.17 GB
- Stars: 16
- Watchers: 3
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Client for TVM blockchains (Everscale, Gosh, TON, Venom Blockchain, etc).
Everscale SDK Client library Golang bindings based itself on [Ever SDK](https://github.com/everx-labs/ever-sdk).
[](https://github.com/markgenuine/ever-client-go/releases/latest)
[](https://github.com/markgenuine/ever-client-go/blob/master/LICENSE)
[](https://github.com/moovweb/gvm)
[](https://t.me/ever_go)
[](https://t.me/ever_go_ru)
[](https://t.me/ever_go_en)
Many thanks to [@temamagic](https://github.com/temamagic) for advice on architecture, tests, code and commit style.
## Installation
```sh
$ go get -u github.com/markgenuine/ever-client-go
```
or
```sh
$ git clone https://github.com/markgenuine/ever-client-go.git
$ cd ever-client-go
```
#### Installation for MAC OS
```
#Set path to library
install_name_tool -id PATH_WITH_BINDING/gateway/client/lib/darwin/libton_client.dylib PATH_WITH_BINDING/gateway/client/lib/darwin/libton_client.dylib
#Add to ~/.bashrc or execute everytime
export CGO_LDFLAGS="-LPATH_WITH_BINDING/gateway/client/lib/darwin -lton_client"
```
#### Installation for Linux
```
#Add to ~/.bashrc or execute everytime
export LD_LIBRARY_PATH=PATH_WITH_BINDING/gateway/client/lib/linux/:$LD_LIBRARY_PATH
export CGO_LDFLAGS="-LPATH_WITH_BINDING/gateway/client/lib/linux -lton_client"
```
#### Or use "-exec" for example:
```
go build
go run -exec "env DYLD_LIBRARY_PATH=/path-with-lib/" main.go
go test -exec "env DYLD_LIBRARY_PATH=/path-with-lib/ ./... " -v
```
## Tests
```
$ go test ./... -v
$ go run ./example/*.go
```
## Usage
```golang
import goever "github.com/markgenuine/ever-client-go"
```
## Example
```golang
package main
import (
"fmt"
"github.com/markgenuine/ever-client-go/domain"
"log"
goton "github.com/markgenuine/ever-client-go"
)
func main() {
ever, err := goever.NewEver("", domain.GetDevNetBaseUrls())
if err != nil {
log.Fatal(err)
}
defer ever.Client.Destroy()
value, err := ever.Client.Version()
if err != nil {
log.Fatal(err)
}
fmt.Println("Version bindings is: ", value.Version)
}
```
For more examples see *_test.go files
[ever-client-go/usecase](https://github.com/markgenuine/ever-client-go/tree/master/usecase)