Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Mar 4, 2023. It is now read-only.

Alephium API client written in Golang

NotificationsYou must be signed in to change notification settings

touilleio/alephium-go-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WarningThis project is no longer maintained, please use the official go-sdk from Alephium:https://github.com/alephium/go-sdk

This project is a simple, yet expressive, API ClientforAlephium blockchain,written inGolang.

Getting started

The client wraps the API call in regular functions, ready to be used:

import ("github.com/sirupsen/logrus""github.com/touilleio/alephium-go-client")alephiumClient, err := alephium.New("http://localhost:12973", logrus.StandardLogger())// Create a miner walletminerWallet, err := alephiumClient.CreateWallet("", "walletPassword", true, "")// Get the addresses of the freshly created miner walletwalletAddresses, err := alephiumClient.GetWalletAddresses(minerWallet.Name)// Wait until the node is sync'ed with bootstrap nodesalephiumClient.WaitUntilSyncedWithAtLeastOnePeer()

Hack

Build:

go build .

Test:

go test .

If you want to run your node manually,

docker run -it --rm -v ${PWD}/user-dev-standalone.conf:/alephium-home/.alephium/user.conf -p 12973:12973 alephium/alephium:v1.1.13

About

Alephium API client written in Golang

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp