Documentation ¶
Index ¶
- type InterceptedUnsignedTransaction
- func (inUTx *InterceptedUnsignedTransaction) CheckValidity() error
- func (inUTx *InterceptedUnsignedTransaction) Fee() *big.Int
- func (inUTx *InterceptedUnsignedTransaction) Hash() []byte
- func (inUTx *InterceptedUnsignedTransaction) Identifiers() [][]byte
- func (inUTx *InterceptedUnsignedTransaction) IsForCurrentShard() bool
- func (inUTx *InterceptedUnsignedTransaction) IsInterfaceNil() bool
- func (inUTx *InterceptedUnsignedTransaction) Nonce() uint64
- func (inUTx *InterceptedUnsignedTransaction) ReceiverShardId() uint32
- func (inUTx *InterceptedUnsignedTransaction) SenderAddress() []byte
- func (inUTx *InterceptedUnsignedTransaction) SenderShardId() uint32
- func (inUTx *InterceptedUnsignedTransaction) String() string
- func (inUTx *InterceptedUnsignedTransaction) Transaction() data.TransactionHandler
- func (inUTx *InterceptedUnsignedTransaction) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InterceptedUnsignedTransaction ¶
type InterceptedUnsignedTransaction struct {
// contains filtered or unexported fields
}
InterceptedUnsignedTransaction holds and manages a transaction based struct with extended functionality
func NewInterceptedUnsignedTransaction ¶
func NewInterceptedUnsignedTransaction( uTxBuff []byte, marshalizer marshal.Marshalizer, hasher hashing.Hasher, pubkeyConv core.PubkeyConverter, coordinator sharding.Coordinator, ) (*InterceptedUnsignedTransaction, error)
NewInterceptedUnsignedTransaction returns a new instance of InterceptedUnsignedTransaction
func (*InterceptedUnsignedTransaction) CheckValidity ¶
func (inUTx *InterceptedUnsignedTransaction) CheckValidity() error
CheckValidity checks if the received transaction is valid (not nil fields, valid sig and so on)
func (*InterceptedUnsignedTransaction) Fee ¶
func (inUTx *InterceptedUnsignedTransaction) Fee() *big.Int
Fee represents the unsigned transaction fee. It is always 0
func (*InterceptedUnsignedTransaction) Hash ¶
func (inUTx *InterceptedUnsignedTransaction) Hash() []byte
Hash gets the hash of this transaction
func (*InterceptedUnsignedTransaction) Identifiers ¶ added in v1.0.110
func (inUTx *InterceptedUnsignedTransaction) Identifiers() [][]byte
Identifiers returns the identifiers used in requests
func (*InterceptedUnsignedTransaction) IsForCurrentShard ¶
func (inUTx *InterceptedUnsignedTransaction) IsForCurrentShard() bool
IsForCurrentShard returns true if this transaction is meant to be processed by the node from this shard
func (*InterceptedUnsignedTransaction) IsInterfaceNil ¶
func (inUTx *InterceptedUnsignedTransaction) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
func (*InterceptedUnsignedTransaction) Nonce ¶
func (inUTx *InterceptedUnsignedTransaction) Nonce() uint64
Nonce returns the transaction nonce
func (*InterceptedUnsignedTransaction) ReceiverShardId ¶
func (inUTx *InterceptedUnsignedTransaction) ReceiverShardId() uint32
ReceiverShardId returns the receiver shard
func (*InterceptedUnsignedTransaction) SenderAddress ¶
func (inUTx *InterceptedUnsignedTransaction) SenderAddress() []byte
SenderAddress returns the transaction sender address
func (*InterceptedUnsignedTransaction) SenderShardId ¶
func (inUTx *InterceptedUnsignedTransaction) SenderShardId() uint32
SenderShardId returns the sender shard
func (*InterceptedUnsignedTransaction) String ¶ added in v0.0.5
func (inUTx *InterceptedUnsignedTransaction) String() string
String returns the unsigned transaction's most important fields as string
func (*InterceptedUnsignedTransaction) Transaction ¶
func (inUTx *InterceptedUnsignedTransaction) Transaction() data.TransactionHandler
Transaction returns the transaction pointer that actually holds the data
func (*InterceptedUnsignedTransaction) Type ¶
func (inUTx *InterceptedUnsignedTransaction) Type() string
Type returns the type of this intercepted data