Documentation
¶
Index ¶
- type ChainHandle
- func (t *ChainHandle) GetAccountByAK(address string) ([]string, error)
- func (t *ChainHandle) GetAccountContracts(account string) ([]*protos.ContractStatus, error)
- func (t *ChainHandle) GetBalance(account string) (string, error)
- func (t *ChainHandle) GetBalanceDetail(account string) ([]*protos.BalanceDetailInfo, error)
- func (t *ChainHandle) GetFrozenBalance(account string) (string, error)
- func (t *ChainHandle) IsTrunkTipBlock(blockId []byte) (bool, error)
- func (t *ChainHandle) PreExec(req []*protos.InvokeRequest, initiator string, authRequires []string) (*protos.InvokeResponse, error)
- func (t *ChainHandle) QueryAccountACL(account string) (*protos.Acl, error)
- func (t *ChainHandle) QueryBlock(blkId []byte, needContent bool) (*protos.BlockInfo, error)
- func (t *ChainHandle) QueryBlockByHeight(height int64, needContent bool) (*protos.BlockInfo, error)
- func (t *ChainHandle) QueryChainStatus() (*protos.ChainStatus, error)
- func (t *ChainHandle) QueryConsensusStatus() (*protos.ConsensusStatus, error)
- func (t *ChainHandle) QueryContractMethodACL(contract, method string) (*protos.Acl, error)
- func (t *ChainHandle) QueryContractStatData() (*protos.ContractStatData, error)
- func (t *ChainHandle) QueryTx(txId []byte) (*protos.TxInfo, error)
- func (t *ChainHandle) QueryUtxoRecord(account string, count int64) (*protos.UtxoRecordDetail, error)
- func (t *ChainHandle) SelectUTXOBySize(account string, isLock, isExclude bool, pubKey string, sign []byte) (*protos.UtxoOutput, error)
- func (t *ChainHandle) SelectUtxo(account string, need *big.Int, isLock, isExclude bool, pubKey string, ...) (*protos.UtxoOutput, error)
- func (t *ChainHandle) SubmitTx(tx *protos.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 exampleBase.ReqCtx) (*ChainHandle, error)
func (*ChainHandle) GetAccountByAK ¶
func (t *ChainHandle) GetAccountByAK(address string) ([]string, error)
func (*ChainHandle) GetAccountContracts ¶
func (t *ChainHandle) GetAccountContracts(account string) ([]*protos.ContractStatus, error)
func (*ChainHandle) GetBalance ¶
func (t *ChainHandle) GetBalance(account string) (string, error)
func (*ChainHandle) GetBalanceDetail ¶
func (t *ChainHandle) GetBalanceDetail(account string) ([]*protos.BalanceDetailInfo, error)
func (*ChainHandle) GetFrozenBalance ¶
func (t *ChainHandle) GetFrozenBalance(account string) (string, error)
func (*ChainHandle) IsTrunkTipBlock ¶
func (t *ChainHandle) IsTrunkTipBlock(blockId []byte) (bool, error)
func (*ChainHandle) PreExec ¶
func (t *ChainHandle) PreExec(req []*protos.InvokeRequest, initiator string, authRequires []string) (*protos.InvokeResponse, error)
func (*ChainHandle) QueryAccountACL ¶
func (t *ChainHandle) QueryAccountACL(account string) (*protos.Acl, error)
func (*ChainHandle) QueryBlock ¶
func (*ChainHandle) QueryBlockByHeight ¶
func (*ChainHandle) QueryChainStatus ¶
func (t *ChainHandle) QueryChainStatus() (*protos.ChainStatus, error)
func (*ChainHandle) QueryConsensusStatus ¶
func (t *ChainHandle) QueryConsensusStatus() (*protos.ConsensusStatus, error)
func (*ChainHandle) QueryContractMethodACL ¶
func (t *ChainHandle) QueryContractMethodACL(contract, method string) (*protos.Acl, error)
func (*ChainHandle) QueryContractStatData ¶
func (t *ChainHandle) QueryContractStatData() (*protos.ContractStatData, error)
func (*ChainHandle) QueryUtxoRecord ¶
func (t *ChainHandle) QueryUtxoRecord(account string, count int64) (*protos.UtxoRecordDetail, error)
func (*ChainHandle) SelectUTXOBySize ¶
func (t *ChainHandle) SelectUTXOBySize(account string, isLock, isExclude bool, pubKey string, sign []byte) (*protos.UtxoOutput, error)
func (*ChainHandle) SelectUtxo ¶
func (t *ChainHandle) SelectUtxo(account string, need *big.Int, isLock, isExclude bool, pubKey string, sign []byte) (*protos.UtxoOutput, error)
func (*ChainHandle) SubmitTx ¶
func (t *ChainHandle) SubmitTx(tx *protos.Transaction) error
Click to show internal directories.
Click to hide internal directories.