handler

package
v0.0.0-...-33df928 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2019 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

View Source
const (
	MaxTxInSequenceNum uint32 = 0xffffffff
)

const 常量

Variables

This section is empty.

Functions

func CreateRawTransaction

func CreateRawTransaction(utxos bean.Utxos, from, to string, amount uint64) error

CreateRawTransaction CreateRawTransaction

func GenMessageByUxto

func GenMessageByUxto(utxos bean.Utxos, from, to string, amount, change uint64) (*modules.Transaction, error)

GenMessageByUxto GenMessageByUxto

func GenMtxRlpHex

func GenMtxRlpHex(mtx *modules.Transaction) (string, error)

GenMtxRlpHex 构造交易编码

func GenOutput

func GenOutput(addr string, amount uint64) (*modules.Output, error)

GenOutput 构建output

func GenRawTransaction

func GenRawTransaction(utxos bean.Utxos, from, to string, pay, amount uint64) (*modules.Transaction, error)

GenRawTransaction 创建RawTransaction

func GenRawTransactionEnCoding

func GenRawTransactionEnCoding(mtx *modules.Transaction) (string, error)

GenRawTransactionEnCoding 创建RawTransaction Rlp encoding

func GenRawTransactionEx

func GenRawTransactionEx(utxos bean.Utxos, from, to string, pay, amount uint64) (*modules.Transaction, error)

GenRawTransactionEx 创建RawTransaction

func GenSignHash

func GenSignHash(from common.Address, mtx *modules.Transaction) (string, string, []bean.TxHash)

GenSignHash GenSignHash

func GetRawTx

func GetRawTx(c *gin.Context)

GetRawTx GetRawTx

func GetRawTxDecoding

func GetRawTxDecoding(c *gin.Context)

GetRawTxDecoding GetRawTxDecoding

func GetRawTxEncoding

func GetRawTxEncoding(c *gin.Context)

GetRawTxEncoding GetRawTxEncoding

func GetTxHash

func GetTxHash(c *gin.Context)

GetTxHash GetTxHash

func Health

func Health(c *gin.Context)

Health Health

func Index

func Index(c *gin.Context)

Index Index

func SelectUtxoGreedy

func SelectUtxoGreedy(utxos bean.Utxos, amount uint64) (bean.Utxos, uint64, error)

SelectUtxoGreedy 贪吃算法获取utxos和找零

func WalletCreateTransaction

func WalletCreateTransaction(c *ptnjson.CreateRawTransactionCmd) (string, error)

WalletCreateTransaction WalletCreateTransaction

Types

This section is empty.

Jump to

Keyboard shortcuts

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