Skip to content
/ usdt Public

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

Notifications You must be signed in to change notification settings

AdwindOne/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