Documentation ¶
Index ¶
- Constants
- Variables
- func AuxHelp(param Params) map[string]interface{}
- func CreateAuxBlock(param Params) map[string]interface{}
- func DiscreteMining(param Params) map[string]interface{}
- func EstimateSmartFee(param Params) map[string]interface{}
- func FromReversedString(reversed string) ([]byte, error)
- func GetArbiterPeersInfo(params Params) map[string]interface{}
- func GetArbitersInfo(params Params) map[string]interface{}
- func GetArbitratorGroupByHeight(param Params) map[string]interface{}
- func GetAssetByHash(param Params) map[string]interface{}
- func GetBalanceByAddr(param Params) map[string]interface{}
- func GetBalanceByAsset(param Params) map[string]interface{}
- func GetBestBlockHash(param Params) map[string]interface{}
- func GetBlockByHash(param Params) map[string]interface{}
- func GetBlockByHeight(param Params) map[string]interface{}
- func GetBlockCount(param Params) map[string]interface{}
- func GetBlockHash(param Params) map[string]interface{}
- func GetBlockHeight(param Params) map[string]interface{}
- func GetBlockTransactions(block *Block) interface{}
- func GetConfirmByHash(param Params) map[string]interface{}
- func GetConfirmByHeight(param Params) map[string]interface{}
- func GetConnectionCount(param Params) map[string]interface{}
- func GetDepositCoin(param Params) map[string]interface{}
- func GetExistWithdrawTransactions(param Params) map[string]interface{}
- func GetFeeRate(count int, confirm int) int
- func GetInfo(param Params) map[string]interface{}
- func GetNeighbors(param Params) map[string]interface{}
- func GetNodeState(param Params) map[string]interface{}
- func GetRawTransaction(param Params) map[string]interface{}
- func GetReceivedByAddress(param Params) map[string]interface{}
- func GetTransactionByHash(param Params) map[string]interface{}
- func GetTransactionPool(param Params) map[string]interface{}
- func GetTransactionsByHeight(param Params) map[string]interface{}
- func GetUnspendOutput(param Params) map[string]interface{}
- func GetUnspends(param Params) map[string]interface{}
- func ListProducers(param Params) map[string]interface{}
- func ListUnspent(param Params) map[string]interface{}
- func ProducerStatus(param Params) map[string]interface{}
- func ResponsePack(errCode ErrCode, result interface{}) map[string]interface{}
- func SendRawTransaction(param Params) map[string]interface{}
- func SetLogLevel(param Params) map[string]interface{}
- func SubmitAuxBlock(param Params) map[string]interface{}
- func SubmitSidechainIllegalData(param Params) map[string]interface{}
- func ToReversedString(hash common.Uint256) string
- func ToggleMining(param Params) map[string]interface{}
- func VerifyAndSendTx(tx *Transaction) ErrCode
- func VoteStatus(param Params) map[string]interface{}
- type ArbitratorGroupInfo
- type AttributeInfo
- type BlockInfo
- type CancelProducerInfo
- type CoinbaseInfo
- type ConfirmInfo
- type DefaultOutputInfo
- type InputInfo
- type OutputInfo
- type OutputPayloadInfo
- type Params
- func (p Params) ArrayString(key string) ([]string, bool)
- func (p Params) Bool(key string) (bool, bool)
- func (p Params) Float(filed string) (float64, bool)
- func (p Params) Int(filed string) (int64, bool)
- func (p Params) String(key string) (string, bool)
- func (p Params) Uint(filed string) (uint32, bool)
- type PayloadInfo
- type PeerInfo
- type Producer
- type ProducerInfo
- type Producers
- type ProgramInfo
- type RegisterAssetInfo
- type ServerInfo
- type SideChainPowInfo
- type SidechainIllegalDataInfo
- type TransactionInfo
- type TransferCrossChainAssetInfo
- type UTXOInfo
- type VoteContentInfo
- type VoteInfo
- type VoteOutputInfo
- type WithdrawFromSideChainInfo
Constants ¶
View Source
const TlsPort = 443
Variables ¶
View Source
var ( Compile string Config *config.ConfigParams Chain *blockchain.BlockChain Store blockchain.IChainStore TxMemPool *mempool.TxPool Pow *pow.Service Server elanet.Server Arbiter *dpos.Arbitrator Arbiters state.Arbitrators )
Functions ¶
func CreateAuxBlock ¶
func DiscreteMining ¶
func EstimateSmartFee ¶ added in v0.2.2
func FromReversedString ¶
func GetArbiterPeersInfo ¶ added in v0.3.0
func GetArbitersInfo ¶ added in v0.3.0
func GetBalanceByAddr ¶
func GetBalanceByAsset ¶
func GetBestBlockHash ¶
func GetBlockByHash ¶
func GetBlockByHeight ¶
func GetBlockCount ¶
func GetBlockHash ¶
func GetBlockHeight ¶
func GetBlockTransactions ¶
func GetBlockTransactions(block *Block) interface{}
func GetConfirmByHash ¶ added in v0.3.0
func GetConfirmByHeight ¶ added in v0.3.0
func GetConnectionCount ¶
func GetDepositCoin ¶ added in v0.2.2
func GetExistWithdrawTransactions ¶ added in v0.1.1
func GetFeeRate ¶ added in v0.2.2
func GetNeighbors ¶
func GetNodeState ¶
func GetRawTransaction ¶
Input JSON string examples for getblock method as following:
func GetReceivedByAddress ¶ added in v0.2.0
func GetTransactionByHash ¶
Transaction
func GetTransactionPool ¶
func GetTransactionsByHeight ¶
func GetUnspendOutput ¶
func GetUnspends ¶
func ListProducers ¶ added in v0.2.2
func ListUnspent ¶ added in v0.1.1
func ProducerStatus ¶ added in v0.2.2
func ResponsePack ¶
func ResponsePack(errCode ErrCode, result interface{}) map[string]interface{}
func SendRawTransaction ¶
func SetLogLevel ¶
func SubmitAuxBlock ¶
func SubmitSidechainIllegalData ¶ added in v0.3.0
func ToReversedString ¶
func ToggleMining ¶
func VerifyAndSendTx ¶
func VerifyAndSendTx(tx *Transaction) ErrCode
func VoteStatus ¶ added in v0.2.2
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"` MinerInfo string `json:"minerinfo"` }
func GetBlockInfo ¶
type CancelProducerInfo ¶ added in v0.2.2
type CoinbaseInfo ¶
type CoinbaseInfo struct {
CoinbaseData string
}
type ConfirmInfo ¶ added in v0.3.0
type ConfirmInfo struct { BlockHash string `json:"blockhash"` Sponsor string `json:"sponsor"` ViewOffset uint32 `json:"viewoffset"` Votes []VoteInfo `json:"votes"` }
func GetConfirmInfo ¶ added in v0.3.0
func GetConfirmInfo(confirm *payload.Confirm) ConfirmInfo
type DefaultOutputInfo ¶ added in v0.2.2
type DefaultOutputInfo struct{}
type OutputInfo ¶
type OutputPayloadInfo ¶ added in v0.2.2
type OutputPayloadInfo interface{}
type PayloadInfo ¶
type PayloadInfo interface{}
type PeerInfo ¶ added in v0.3.0
type PeerInfo struct { NetAddress string `json:"netaddress"` Services string `json:"services"` RelayTx bool `json:"relaytx"` LastSend string `json:"lastsend"` LastRecv string `json:"lastrecv"` ConnTime string `json:"conntime"` TimeOffset int64 `json:"timeoffset"` Version uint32 `json:"version"` Inbound bool `json:"inbound"` StartingHeight uint32 `json:"startingheight"` LastBlock uint32 `json:"lastblock"` LastPingTime string `json:"lastpingtime"` LastPingMicros int64 `json:"lastpingmicros"` }
type Producer ¶ added in v0.2.2
type Producer struct { OwnerPublicKey string `json:"ownerpublickey"` NodePublicKey string `json:"nodepublickey"` Nickname string `json:"nickname"` Url string `json:"url"` Location uint64 `json:"location"` Active bool `json:"active"` Votes string `json:"votes"` NetAddress string `json:"netaddress"` State string `json:"state"` RegisterHeight uint32 `json:"registerheight"` CancelHeight uint32 `json:"cancelheight"` InactiveHeight uint32 `json:"inactiveheight"` IllegalHeight uint32 `json:"illegalheight"` Index uint64 `json:"index"` }
type ProducerInfo ¶ added in v0.3.0
type ProgramInfo ¶
type RegisterAssetInfo ¶
type ServerInfo ¶ added in v0.3.0
type ServerInfo struct { Compile string `json:"compile"` // The compile version of this server node Height uint32 `json:"height"` // The ServerNode latest block height Version uint32 `json:"version"` // The network protocol the ServerNode used Services string `json:"services"` // The services the server supports Port uint16 `json:"port"` // The nodes's port RPCPort uint16 `json:"rpcport"` // The RPC service port RestPort uint16 `json:"restport"` // The RESTful service port WSPort uint16 `json:"wsport"` // The webservcie port Neighbors []*PeerInfo `json:"neighbors"` // The connected neighbor peers. }
type SideChainPowInfo ¶ added in v0.1.1
type SidechainIllegalDataInfo ¶ added in v0.3.0
type TransactionInfo ¶
type TransactionInfo struct { TxID string `json:"txid"` Hash string `json:"hash"` Size uint32 `json:"size"` VSize uint32 `json:"vsize"` Version TransactionVersion `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 TxType `json:"type"` PayloadVersion byte `json:"payloadversion"` Payload PayloadInfo `json:"payload"` Attributes []AttributeInfo `json:"attributes"` Programs []ProgramInfo `json:"programs"` }
func GetTransactionInfo ¶
func GetTransactionInfo(header *Header, tx *Transaction) *TransactionInfo
type VoteContentInfo ¶ added in v0.2.2
type VoteContentInfo struct { VoteType outputpayload.VoteType `json:"votetype"` CandidatesInfo []string `json:"candidates"` }
type VoteOutputInfo ¶ added in v0.2.2
type VoteOutputInfo struct { Version byte `json:"version"` Contents []VoteContentInfo `json:"contents"` }
type WithdrawFromSideChainInfo ¶ added in v0.1.1
Click to show internal directories.
Click to hide internal directories.