Documentation ¶
Index ¶
- type ChainHandle
- func (t *ChainHandle) PreExec(req []*protos.InvokeRequest, initiator string, authRequires []string) (*protos.InvokeResponse, error)
- func (t *ChainHandle) QueryBlock(blkId []byte, needContent bool) (*xpb.BlockInfo, error)
- func (t *ChainHandle) QueryChainStatus(needBranch bool) (*xpb.ChainStatus, error)
- func (t *ChainHandle) QueryTx(txId []byte) (*xpb.TxInfo, error)
- func (t *ChainHandle) SelectUtxo(account string, need *big.Int, isLock, isExclude bool) (*lpb.UtxoOutput, error)
- func (t *ChainHandle) SubmitTx(tx *lpb.Transaction) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainHandle ¶
type ChainHandle struct {
// contains filtered or unexported fields
}
func NewChainHandle ¶
func NewChainHandle(bcName string, reqCtx sctx.ReqCtx) (*ChainHandle, error)
func (*ChainHandle) PreExec ¶
func (t *ChainHandle) PreExec(req []*protos.InvokeRequest, initiator string, authRequires []string) (*protos.InvokeResponse, error)
func (*ChainHandle) QueryBlock ¶
func (*ChainHandle) QueryChainStatus ¶
func (t *ChainHandle) QueryChainStatus(needBranch bool) (*xpb.ChainStatus, error)
func (*ChainHandle) SelectUtxo ¶
func (t *ChainHandle) SelectUtxo(account string, need *big.Int, isLock, isExclude bool) (*lpb.UtxoOutput, error)
func (*ChainHandle) SubmitTx ¶
func (t *ChainHandle) SubmitTx(tx *lpb.Transaction) error
Click to show internal directories.
Click to hide internal directories.