Documentation ¶
Index ¶
- func VerifyAndSendTx(txn *types.Transaction) ontErrors.ErrCode
- type AmountMap
- type BalanceOfRsp
- type BlockHead
- type BlockInfo
- type BookKeepingInfo
- type BookkeeperInfo
- type Claim
- type ConsensusInfo
- type DataFileInfo
- type DeployCodeInfo
- type Fee
- type InvokeCodeInfo
- type IssueAssetInfo
- type NodeInfo
- type PayloadInfo
- type PrivacyPayloadInfo
- type RecordInfo
- type Sig
- type TXNAttrInfo
- type TXNEntryInfo
- type Transactions
- type TransferAssetInfo
- type TxAttributeInfo
- type UTXOTxInput
- type VoteInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VerifyAndSendTx ¶
func VerifyAndSendTx(txn *types.Transaction) ontErrors.ErrCode
Types ¶
type BalanceOfRsp ¶
type BlockInfo ¶
type BlockInfo struct { Hash string Header *BlockHead Transactions []*Transactions }
func GetBlockInfo ¶
type BookKeepingInfo ¶
type BookKeepingInfo struct {
Nonce uint64
}
implement PayloadInfo define BookKeepingInfo
type BookkeeperInfo ¶
type Claim ¶
type Claim struct {
Claims []*UTXOTxInput
}
type ConsensusInfo ¶
type ConsensusInfo struct { }
type DataFileInfo ¶
type DeployCodeInfo ¶
type InvokeCodeInfo ¶
type NodeInfo ¶
type NodeInfo struct { NodeState uint // node status NodePort uint16 // The nodes's port ID uint64 // The nodes's id NodeTime int64 NodeVersion uint32 // The network protocol the node used NodeType uint64 // The services the node supplied Relay bool // The relay capability of the node (merge into capbility flag) Height uint32 // The node latest block height TxnCnt []uint64 // The transactions be transmit by this node }
type PayloadInfo ¶
type PayloadInfo interface{}
func TransPayloadToHex ¶
func TransPayloadToHex(p types.Payload) PayloadInfo
type PrivacyPayloadInfo ¶
type RecordInfo ¶
type TXNAttrInfo ¶
type TXNEntryInfo ¶
type TXNEntryInfo struct { Txn Transactions // transaction which has been verified Fee int64 // Total fee per transaction Attrs []TXNAttrInfo // the result from each validator }
type Transactions ¶
type Transactions struct { Version byte Nonce uint32 TxType types.TransactionType Payload PayloadInfo Attributes []TxAttributeInfo Fee []Fee NetworkFee common.Fixed64 Sigs []Sig Hash string }
func TransArryByteToHexString ¶
func TransArryByteToHexString(ptx *types.Transaction) *Transactions
type TransferAssetInfo ¶
type TransferAssetInfo struct { }
implement PayloadInfo define TransferAssetInfo
type TxAttributeInfo ¶
type TxAttributeInfo struct { Usage types.TransactionAttributeUsage Data string }
type UTXOTxInput ¶
Click to show internal directories.
Click to hide internal directories.