tx

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateTransactionDataHash

func CalculateTransactionDataHash(txData *bcostars.TransactionData) (string, error)

func CreateSignedTransaction

func CreateSignedTransaction(privateKey string, groupId string, chainId string, to string, dataHex string, abiJson string, blockLimit int64, attribute int32) (txHash string, txHex string, err error)

func CreateTransaction

func CreateTransaction(from string, txData *bcostars.TransactionData, txDataHash string, signedTxDataHash string, attribute int32) (*bcostars.Transaction, error)

func CreateTransactionData

func CreateTransactionData(groupId string, chainId string, to string, dataHex string, abiJson string, blockLimit int64) (*bcostars.TransactionData, error)

1

func DecodeTransactionDataFromHex

func DecodeTransactionDataFromHex(txDataHex string) (*bcostars.TransactionData, error)

func DecodeTransactionFromHex

func DecodeTransactionFromHex(txHex string) (*bcostars.Transaction, error)

func EncodeTransaction

func EncodeTransaction(tx *bcostars.Transaction) (string, error)

func EncodeTransactionDataToHex

func EncodeTransactionDataToHex(tx *bcostars.TransactionData) (string, error)

func GetBlockLimit

func GetBlockLimit(groupId string) (int64, error)

@todo

func HexByte2Int8

func HexByte2Int8(dataHex []byte) []int8

func Int82Byte

func Int82Byte(data []int8) []byte

func Nonce

func Nonce() string

func ParseKeyPairFromPrivateKey

func ParseKeyPairFromPrivateKey(privateKey string) (*ecdsa.PrivateKey, error)

func PrivateKeyToAddress

func PrivateKeyToAddress(privateKey string) (string, error)

func SignTransactionDataHash

func SignTransactionDataHash(privateKey string, txDataHash string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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