trx

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

功能:转账 说明:

1 官方公共节点 https://developers.tron.network/v3.7/docs/official-public-node

2 TRX转账交易 流程 https://cn.developers.tron.network/docs/tron-protocol-transaction 2.1 创建交易: 2.2 签名交易:发送交易前,必须由发送方使用私钥对其进行签名。 2.3 广播交易: 用户将交易发送到节点后,节点会尝试在其本地执行并验证该交易, 有效的交易将被继续广播到其他节点,无效的交易被该节点丢弃,这将有效防止垃圾交易在网络中无效广播,占用网络资源。 2.4 交易确认

Index

Constants

View Source
const (
	SUN_AMOUNT = 1     //转账sun个数,1TRX = 1000000sun
	GRPC_PORT  = 50051 //端口
)

Variables

This section is empty.

Functions

func Transaction

func Transaction(addr_from string, private_key_from string, addr_to string) (string, error)

Transaction trx转账交易

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL