Skip to content

Navigation Menu

Sign in
Appearance settings

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
Appearance settings
forked from AdwindOne/usdt

基于omni协议的bitcoin blockchain 上usdt rpc调用实现

Notifications You must be signed in to change notification settings

nonoco1200/usdt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

usdtapi

Implement a simple omni core RPC interface. Support for http basic auth. Used to help with USDT transfers and monitor address-accounting records.

Examples:

package main
import (
	"github.com/AdwindOne/usdt"
	"github.com/AdwindOne/usdt/rpc"
	"log"
)
var (
	connCfg = &rpc.ConnConfig{
		Host: "localhost:19031",
		User: "admin",
		Pass: "123456",
	}
)
func main() {
	omni := usdtapi.NewOmniClient(connCfg)
	b, r := omni.GetBalance("mveUkR2wkxL1fVPaD7APMXwbDxbE57yDWC", 3)
	log.Printf("%s, %s\n", b, r)
	h := omni.Send("mveUkR2wkxL1fVPaD7APMXwbDxbE57yDWC", "mpF14fMrBJ3kLAePfHMC3Nppi2wdTZiTiq", 3, "1")
	log.Printf("%v\n", h)
	tx := omni.ListTransactions()
	log.Printf("%v\n", tx)
}

About

基于omni协议的bitcoin blockchain 上usdt rpc调用实现

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%

AltStyle によって変換されたページ (->オリジナル) /