Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseBigInt ¶
ParseBigInt takes "something" and transforms it into a bigInt if it can Allows for more generic json inputs from the SDKs e.g. the nonce could be represented as a hex encoded string, a dec encoded string or an int
Types ¶
type EthereumTx ¶
type EthereumTx struct {
// contains filtered or unexported fields
}
func NewEthereumTxWithHash ¶
func NewEthereumTxWithHash(encodedRawTx []byte, hash []byte) (*EthereumTx, error)
func NewEthereumTxWithJson ¶
func NewEthereumTxWithJson(jsonData string, chainIdAny any) (*EthereumTx, error)
NewEthereumTxWithJson creates a new EthereumTx object based on a json encoded transaction Used to process a transaction coming from the client
func NewEthereumTxWithRlp ¶
func NewEthereumTxWithRlp(encodedRawTx []byte) (*EthereumTx, error)
func (*EthereumTx) GenerateMessage ¶
func (tx *EthereumTx) GenerateMessage() []byte
GenerateMessage generates the hash to be signed through the TSS signing process for the transaction
func (*EthereumTx) Sign ¶
func (tx *EthereumTx) Sign(signature []byte) (string, error)
Sign adds the signature to tx and returns the rlp encoded raw transaction (to be processed by web3.js or other)
func (*EthereumTx) Tx ¶
func (tx *EthereumTx) Tx() *types.Transaction
type TransactionParams ¶
type TransactionParams struct { To string `json:"to"` Nonce interface{} `json:"nonce"` Value interface{} `json:"value"` GasLimit interface{} `json:"gasLimit"` GasPrice interface{} `json:"gasPrice"` Data string `json:"data"` AccessList types.AccessList `json:"accessList"` MaxFeePerGas interface{} `json:"maxFeePerGas,omitempty"` MaxPriorityFeePerGas interface{} `json:"maxPriorityFeePerGas,omitempty"` }
Click to show internal directories.
Click to hide internal directories.