receipt

package
v1.0.90 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Receipt

type Receipt struct {
	Value   *big.Int `json:"value"`
	SndAddr []byte   `json:"sender"`
	Data    []byte   `json:"data,omitempty"`
	TxHash  []byte   `json:"txHash"`
}

Receipt holds all the data needed for a transaction receipt

func (*Receipt) GetData

func (rpt *Receipt) GetData() []byte

GetData returns the data of the receipt

func (*Receipt) GetGasLimit

func (rpt *Receipt) GetGasLimit() uint64

GetGasLimit returns the gas limit of the receipt

func (*Receipt) GetGasPrice

func (rpt *Receipt) GetGasPrice() uint64

GetGasPrice returns the gas price of the receipt

func (*Receipt) GetNonce

func (rpt *Receipt) GetNonce() uint64

GetNonce returns the nonce of the receipt

func (*Receipt) GetRecvAddress added in v1.0.67

func (rpt *Receipt) GetRecvAddress() []byte

GetRecvAddress returns the receiver address from the receipt

func (*Receipt) GetSndAddress added in v1.0.67

func (rpt *Receipt) GetSndAddress() []byte

GetSndAddress returns the sender address from the receipt

func (*Receipt) GetValue

func (rpt *Receipt) GetValue() *big.Int

GetValue returns the value of the receipt

func (*Receipt) IsInterfaceNil

func (rpt *Receipt) IsInterfaceNil() bool

IsInterfaceNil verifies if underlying object is nil

func (*Receipt) SetData

func (rpt *Receipt) SetData(data []byte)

SetData sets the data of the receipt

func (*Receipt) SetRecvAddress added in v1.0.67

func (rpt *Receipt) SetRecvAddress(_ []byte)

SetRecvAddress sets the receiver address of the receipt

func (*Receipt) SetSndAddress added in v1.0.67

func (rpt *Receipt) SetSndAddress(addr []byte)

SetSndAddress sets the sender address of the receipt

func (*Receipt) SetValue

func (rpt *Receipt) SetValue(value *big.Int)

SetValue sets the value of the receipt

Jump to

Keyboard shortcuts

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