Documentation ¶
Index ¶
- Constants
- func Call(method string, params map[string]interface{}) ([]byte, error)
- func CallAndUnmarshal(method string, params map[string]interface{}) (interface{}, error)
- func GetBlockHash(height uint32) (*common.Uint256, error)
- func GetChainHeight() (uint32, error)
- type ArbitratorGroupInfo
- type AttributeInfo
- type BlockInfo
- type CoinbaseInfo
- type Error
- type InputInfo
- type NodeInfo
- type OutputInfo
- type Params
- type PayloadInfo
- type ProgramInfo
- type RegisterAssetInfo
- type Response
- type SideMiningInfo
- type TransactionInfo
- type TransferCrossChainAssetInfo
Constants ¶
View Source
const TlsPort = 443
Variables ¶
This section is empty.
Functions ¶
func CallAndUnmarshal ¶
func GetChainHeight ¶
Types ¶
type ArbitratorGroupInfo ¶
type AttributeInfo ¶
type AttributeInfo struct { Usage AttributeUsage `json:"usage"` Data string `json:"data"` }
type BlockInfo ¶
type BlockInfo struct { Hash string `json:"hash"` Confirmations uint32 `json:"confirmations"` StrippedSize uint32 `json:"strippedsize"` Size uint32 `json:"size"` Weight uint32 `json:"weight"` Height uint32 `json:"height"` Version uint32 `json:"version"` VersionHex string `json:"versionhex"` MerkleRoot string `json:"merkleroot"` Tx []interface{} `json:"tx"` Time uint32 `json:"time"` MedianTime uint32 `json:"mediantime"` Nonce uint32 `json:"nonce"` Bits uint32 `json:"bits"` Difficulty string `json:"difficulty"` ChainWork string `json:"chainwork"` PreviousBlockHash string `json:"previousblockhash"` NextBlockHash string `json:"nextblockhash"` AuxPow string `json:"auxpow"` }
type CoinbaseInfo ¶
type CoinbaseInfo struct {
CoinbaseData string
}
type NodeInfo ¶
type NodeInfo struct { State uint // NodeForServers status Port uint16 // The nodes's port ID uint64 // The nodes's id Time int64 Version uint32 // The network protocol the NodeForServers used Services uint64 // The services the NodeForServers supplied Relay bool // The relay capability of the NodeForServers (merge into capbility flag) Height uint64 // The NodeForServers latest block height TxnCnt uint64 // The transactions be transmit by this NodeForServers RxTxnCnt uint64 // The transaction received by this NodeForServers }
type OutputInfo ¶
type PayloadInfo ¶
type PayloadInfo interface{}
type ProgramInfo ¶
type RegisterAssetInfo ¶
type SideMiningInfo ¶
type SideMiningInfo struct {
SideBlockHash string
}
type TransactionInfo ¶
type TransactionInfo struct { TxId string `json:"txid"` Hash string `json:"hash"` Size uint32 `json:"size"` VSize uint32 `json:"vsize"` Version uint32 `json:"version"` LockTime uint32 `json:"locktime"` Inputs []InputInfo `json:"vin"` Outputs []OutputInfo `json:"vout"` BlockHash string `json:"blockhash"` Confirmations uint32 `json:"confirmations"` Time uint32 `json:"time"` BlockTime uint32 `json:"blocktime"` TxType TransactionType `json:"type"` PayloadVersion byte `json:"payloadversion"` Payload PayloadInfo `json:"payload"` Attributes []AttributeInfo `json:"attributes"` Programs []ProgramInfo `json:"programs"` }
Click to show internal directories.
Click to hide internal directories.