txwithdrawal

package
v0.0.0-...-e44043b Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashBTC

func HashBTC(tx *gobcy.TXSkel) ([]byte, error)

func HashETH

func HashETH(client *ethclient.Client, tx *types.Transaction, chain int64) ([]byte, error)

func SendBTC

func SendBTC(btcAPI gobcy.API, tx *gobcy.TXSkel) error

func SendTxETH

func SendTxETH(client *ethclient.Client, signedTx *types.Transaction) error

func TxBTC

func TxBTC(btcAPI gobcy.API, from, to string, amount int64) (*gobcy.TXSkel, []byte, error)

func TxETH

func TxETH(client *ethclient.Client, from string, to string, amount, gasLimit, chain int64) (*types.Transaction, []byte, error)

func WithSignatureBTC

func WithSignatureBTC(tx *gobcy.TXSkel, sig []byte) (*gobcy.TXSkel, error)

func WithSignatureETH

func WithSignatureETH(client *ethclient.Client, tx *types.Transaction, sig []byte, chain int64) (*types.Transaction, error)

Types

type TxWithdrawal

type TxWithdrawal struct {
	IDPart    string `json:"id_part"`
	TokenType string `json:"token_type"`
	Address   string `json:"address"`
	Value     int64  `json:"value"`
	Hash      string `json:"hash"`
	IncSig    string `json:"inc_sig"`
}

Jump to

Keyboard shortcuts

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