Documentation ¶
Index ¶
- Constants
- Variables
- type ErrorResponse
- type LatestHeight
- type NetType
- type NodeStatus
- type Provider
- func (p *Provider) Get(path string, queries map[string]string, respData interface{}) error
- func (p *Provider) Post(path string, queries map[string]string, reqData, respData interface{}) error
- func (p *Provider) SendRequest(method, path string, queries map[string]string, reqData, respData interface{}) error
- type SecureCryptographicHash
- type SignedMessage
- type TokenBalance
- type Transaction
- type TransactionList
- type VsysBalance
- type VsysErr
Constants ¶
View Source
const Mainnet = vsys.Mainnet
View Source
const Testnet = vsys.Testnet
Variables ¶
View Source
var Endpoint = map[NetType]string{ Testnet: "http://klymena.vos.systems:9924", Mainnet: "http://vnode.vos.systems:9922", }
Functions ¶
This section is empty.
Types ¶
type ErrorResponse ¶
type LatestHeight ¶
type LatestHeight struct {
Height int64 `json:"height"`
}
response schema for /blocks/height
type NodeStatus ¶
type NodeStatus struct { BlockchainHeight int64 `json:"blockchainHeight"` StateHeight int64 `json:"stateHeight"` UpdatedTimestamp int64 `json:"updatedTimestamp"` UpdatedDate time.Time `json:"updatedDate"` }
response schema for /node/status
type SecureCryptographicHash ¶
response schema for /utils/hash/secure
type SignedMessage ¶
type SignedMessage struct { Message string `json:"message"` PublicKey string `json:"publicKey"` Signature string `json:"signature"` }
response schema for /addresses/signText/{address}
type TokenBalance ¶
type TokenBalance struct { Address string `json:"address/contractId"` TokenId string `json:"tokenId"` Balance int64 `json:"balance"` Unity int64 `json:"unity"` Height int64 `json:"height"` }
response schema for /contract/balance/{address}/{tokenId}
type Transaction ¶
type Transaction struct { vsys.Transaction // override fields Contract map[string]interface{} `json:"contract"` Proofs []struct { ProofType string `json:"proofType"` PublicKey string `json:"publicKey"` Address string `json:"address"` Signature string `json:"signature"` } `json:"proofs"` Status string `json:"status"` FeeCharged int64 `json:"feeCharged"` Height int64 `json:"height"` }
response schema for /transactions/info/{txId}
type TransactionList ¶
type TransactionList struct { TotalCount int `json:"totalCount"` Size int `json:"size"` Transactions []Transaction `json:"transactions"` }
response schema for /transactions/list
type VsysBalance ¶
type VsysBalance struct { Address string `json:"address"` Confirmations int `json:"confirmations"` Balance int64 `json:"balance"` }
response schema for /addresses/balance/{address}
Click to show internal directories.
Click to hide internal directories.