Documentation ¶
Index ¶
- type Block
- type BlockClient
- func (c *BlockClient) BlockByNumber(ctx context.Context, blockNo uint64) (blk interface{}, err error)
- func (c *BlockClient) GetLatest(ctx context.Context) (blk interface{}, err error)
- func (c *BlockClient) LatestBlockNumber(ctx context.Context) (blockNo uint64, err error)
- func (c *BlockClient) NetworkID(ctx context.Context) (*big.Int, error)
- type Transaction
- type TxOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
// contains filtered or unexported fields
}
func NewBlockProcessor ¶ added in v0.0.43
func NewBlockProcessor(tx actions.Transaction) *Block
type BlockClient ¶ added in v0.0.52
type BlockClient struct {
// contains filtered or unexported fields
}
func NewRPC ¶
func NewRPC(address string) (*BlockClient, error)
func (*BlockClient) BlockByNumber ¶ added in v0.0.52
func (c *BlockClient) BlockByNumber(ctx context.Context, blockNo uint64) (blk interface{}, err error)
func (*BlockClient) GetLatest ¶ added in v0.0.52
func (c *BlockClient) GetLatest(ctx context.Context) (blk interface{}, err error)
func (*BlockClient) LatestBlockNumber ¶ added in v0.0.52
func (c *BlockClient) LatestBlockNumber(ctx context.Context) (blockNo uint64, err error)
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
func NewTransactionProcessor ¶ added in v0.0.43
func NewTransactionProcessor(store datastore.TransactionStore, rawStore datastore.RawTransactionStore, pkStore datastore.PublicKeyStore, chainConfig *params.ChainConfig) *Transaction
func (*Transaction) From ¶ added in v0.0.43
func (t *Transaction) From(blockNo *big.Int, tx *types.Transaction) ([]byte, error)
func (*Transaction) Run ¶
func (t *Transaction) Run(ctx context.Context, protocol, network string, tx interface{}, txOpts actions.TransactionOptions) error
func (*Transaction) ToTransaction ¶ added in v0.0.43
func (t *Transaction) ToTransaction(blk *types.Block, tx *types.Transaction) (*datastore.Transaction, error)
Click to show internal directories.
Click to hide internal directories.