Documentation
¶
Index ¶
- Constants
- func CreateRawTransaction(utxos bean.Utxos, from, to string, amount uint64) error
- func GenMessageByUxto(utxos bean.Utxos, from, to string, amount, change uint64) (*modules.Transaction, error)
- func GenMtxRlpHex(mtx *modules.Transaction) (string, error)
- func GenOutput(addr string, amount uint64) (*modules.Output, error)
- func GenRawTransaction(utxos bean.Utxos, from, to string, pay, amount uint64) (*modules.Transaction, error)
- func GenRawTransactionEnCoding(mtx *modules.Transaction) (string, error)
- func GenRawTransactionEx(utxos bean.Utxos, from, to string, pay, amount uint64) (*modules.Transaction, error)
- func GenSignHash(from common.Address, mtx *modules.Transaction) (string, string, []bean.TxHash)
- func GetRawTx(c *gin.Context)
- func GetRawTxDecoding(c *gin.Context)
- func GetRawTxEncoding(c *gin.Context)
- func GetTxHash(c *gin.Context)
- func Health(c *gin.Context)
- func Index(c *gin.Context)
- func SelectUtxoGreedy(utxos bean.Utxos, amount uint64) (bean.Utxos, uint64, error)
- func WalletCreateTransaction(c *ptnjson.CreateRawTransactionCmd) (string, error)
Constants ¶
View Source
const (
MaxTxInSequenceNum uint32 = 0xffffffff
)
const 常量
Variables ¶
This section is empty.
Functions ¶
func CreateRawTransaction ¶
CreateRawTransaction CreateRawTransaction
func GenMessageByUxto ¶
func GenMessageByUxto(utxos bean.Utxos, from, to string, amount, change uint64) (*modules.Transaction, error)
GenMessageByUxto GenMessageByUxto
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 ¶
GenSignHash GenSignHash
func SelectUtxoGreedy ¶
SelectUtxoGreedy 贪吃算法获取utxos和找零
func WalletCreateTransaction ¶
func WalletCreateTransaction(c *ptnjson.CreateRawTransactionCmd) (string, error)
WalletCreateTransaction WalletCreateTransaction
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.