Documentation ¶
Index ¶
- func ConvertGetFileInfos2Json(gets []ProofOfExistencesInfo) string
- type AssetJson
- type ContractInvokeRequest
- type InputJson
- type OutputJson
- type PaymentJson
- type ProofJson
- type ProofOfExistencesInfo
- type RawTxjsonGenParams
- type StableUnstable
- type TxHistoryJson
- type TxJson
- type TxProofJson
- type UtxoJson
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertGetFileInfos2Json ¶
func ConvertGetFileInfos2Json(gets []ProofOfExistencesInfo) string
Types ¶
type ContractInvokeRequest ¶
type OutputJson ¶
type PaymentJson ¶
type PaymentJson struct { Inputs []InputJson `json:"inputs"` Outputs []OutputJson `json:"outputs"` }
type ProofJson ¶
type ProofJson struct { Inputs []InputJson `json:"inputs"` Outputs []OutputJson `json:"outputs"` Proof string `json:"proof"` Extra string `json:"extra"` }
type ProofOfExistencesInfo ¶ added in v1.0.7
type ProofOfExistencesInfo struct { UnitHash string `json:"unit_hash"` UintHeight uint64 `json:"unit_index"` ParentsHash string `json:"parents_hash"` TransactionHash string `json:"transaction_hash"` Timestamp string `json:"timestamp"` FileHash string `json:"file_hash"` ExtraData string `json:"extra_data"` Reference string `json:"reference"` }
type RawTxjsonGenParams ¶
type RawTxjsonGenParams struct { Inputs []struct { TxHash string `json:"txid"` OutIndex uint32 `json:"outindex"` MessageIndex uint32 `json:"messageindex"` HashForSign string `json:"hash"` Signature string `json:"signature"` } `json:"inputs"` Outputs []struct { Address string `json:"address"` Amount uint64 `json:"amount"` Asset string `json:"asset"` } `json:"outputs"` }
type StableUnstable ¶ added in v1.0.3
type StableUnstable struct { Stable interface{} `json:"stable"` Unstable interface{} `json:"unstable"` }
type TxHistoryJson ¶
type TxJson ¶
type TxJson struct { Payload []PaymentJson `json:"payload"` InvokeRequest ContractInvokeRequest `json:"invoke_request"` }
type TxProofJson ¶
type TxProofJson struct { Payload []ProofJson `json:"payload"` InvokeRequest ContractInvokeRequest `json:"invoke_request"` }
type UtxoJson ¶
type UtxoJson struct { TxHash string `json:"txid"` // reference Utxo struct key field MessageIndex uint32 `json:"message_index"` // message index in transaction OutIndex uint32 `json:"out_index"` Amount uint64 `json:"amount"` // 数量 Asset string `json:"asset"` // 资产类别 PkScriptHex string `json:"pk_script_hex"` // 要执行的代码段 PkScriptString string `json:"pk_script_string"` // 要执行的代码段 LockTime uint32 `json:"lock_time"` }
Click to show internal directories.
Click to hide internal directories.