Documentation ¶
Index ¶
- type ActAmount
- type AddressBalance
- type AssetAmount
- type BalanceCondition
- type BlockChainGetBlockCmd
- type BlockChainGetBlockCountCmd
- type BlockChainGetBlockResult
- type BlockChainGetContractResultCmd
- type BlockChainGetContractResultResult
- type BlockChainGetEvent
- type BlockChainGetEventsCmd
- type BlockChainGetPrettyContractTransactionCmd
- type BlockChainGetPrettyContractTransactionResult
- type BlockChainGetPrettyTransactionCmd
- type BlockChainGetPrettyTransactionResult
- type BlockChainGetTransactionCmd
- type BlockChainGetTransactionResult
- type BlockChainGetTransactionResultDetail
- type BlockChainListAddressBalanceResult
- type BlockChainListAddressBalancesCmd
- type CallContractCmd
- type CallContractResult
- type LedgerEntry
- type Operation
- type ToContractLedgerEntry
- type TrxContent
- type WalletCheckAddressCmd
- type WalletGetInfoCmd
- type WalletInfo
- type WalletLockCmd
- type WalletOpenCmd
- type WalletTransferToAddressCmd
- type WalletTransferToAddressResult
- type WalletUnLockCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressBalance ¶
type AddressBalance struct { Balance int64 `json:"balance"` Condition BalanceCondition `json:"condition"` }
type AssetAmount ¶
type BalanceCondition ¶
type BalanceCondition struct {
AssetID int `json:"asset_id"`
}
type BlockChainGetBlockCmd ¶
type BlockChainGetBlockCmd struct {
BlockNum string
}
func NewBlockChainGetBlockCmd ¶
func NewBlockChainGetBlockCmd(blockNum string) *BlockChainGetBlockCmd
type BlockChainGetBlockCountCmd ¶
type BlockChainGetBlockCountCmd struct { }
func NewBlockChainGetBlockCountCmd ¶
func NewBlockChainGetBlockCountCmd() *BlockChainGetBlockCountCmd
type BlockChainGetContractResultCmd ¶
type BlockChainGetContractResultCmd struct {
ResultId string
}
BlockChainGetContractResultCmd defines the blockchain_get_contract_result JSON-RPC command.
func NewBlockChainGetContractResultCmd ¶
func NewBlockChainGetContractResultCmd(resultId string) *BlockChainGetContractResultCmd
type BlockChainGetEvent ¶
type BlockChainGetEventsCmd ¶
BlockChainGetEventsCmd defines the blockchain_get_events JSON-RPC command.
func NewBlockChainGetEventsCmd ¶
func NewBlockChainGetEventsCmd(blockNum int32, txId string) *BlockChainGetEventsCmd
type BlockChainGetPrettyContractTransactionCmd ¶
type BlockChainGetPrettyContractTransactionCmd struct {
TxId string
}
BlockChainGetPrettyContractTransactionCmd defines the blockchain_get_pretty_contract_transaction JSON-RPC command.
func NewBlockChainGetPrettyContractTransactionCmd ¶
func NewBlockChainGetPrettyContractTransactionCmd(txId string) *BlockChainGetPrettyContractTransactionCmd
type BlockChainGetPrettyContractTransactionResult ¶
type BlockChainGetPrettyContractTransactionResult struct { BlockNum int `json:"block_num"` BlockPosition int `json:"block_position"` ExpirationTimestamp string `json:"expiration_timestamp"` FromContractLedgerEntries []interface{} `json:"from_contract_ledger_entries"` IsCompleted bool `json:"is_completed"` OrigTrxID string `json:"orig_trx_id"` Reserved []string `json:"reserved"` ResultTrxID string `json:"result_trx_id"` Timestamp string `json:"timestamp"` LedgerEntry ToContractLedgerEntry `json:"to_contract_ledger_entry"` TrxType int `json:"trx_type"` }
type BlockChainGetPrettyTransactionCmd ¶
type BlockChainGetPrettyTransactionCmd struct {
TxId string
}
BlockChainGetPrettyTransactionCmd defines the blockchain_get_pretty_transaction JSON-RPC command.
func NewBlockChainGetPrettyTransactionCmd ¶
func NewBlockChainGetPrettyTransactionCmd(txId string) *BlockChainGetPrettyTransactionCmd
type BlockChainGetPrettyTransactionResult ¶
type BlockChainGetPrettyTransactionResult struct { BlockNum int `json:"block_num"` BlockPosition int `json:"block_position"` ExpirationTimestamp string `json:"expiration_timestamp"` Fee AssetAmount `json:"fee"` IsConfirmed bool `json:"is_confirmed"` IsMarket bool `json:"is_market"` IsMarketCancel bool `json:"is_market_cancel"` IsVirtual bool `json:"is_virtual"` LedgerEntries []LedgerEntry `json:"ledger_entries"` Timestamp string `json:"timestamp"` TrxID string `json:"trx_id"` TrxType int `json:"trx_type"` }
type BlockChainGetTransactionCmd ¶
type BlockChainGetTransactionCmd struct {
TxId string
}
BlockChainGetTransactionCmd defines the blockchain_get_transaction JSON-RPC command.
func NewBlockChainGetTransactionCmd ¶
func NewBlockChainGetTransactionCmd(txId string) *BlockChainGetTransactionCmd
type BlockChainGetTransactionResult ¶
type BlockChainGetTransactionResult struct { TxId string Detail BlockChainGetTransactionResultDetail }
func (*BlockChainGetTransactionResult) UnmarshalJSON ¶
func (p *BlockChainGetTransactionResult) UnmarshalJSON(data []byte) error
type BlockChainGetTransactionResultDetail ¶
type BlockChainGetTransactionResultDetail struct {
Trx TrxContent `json:"trx"`
}
type BlockChainListAddressBalanceResult ¶
type BlockChainListAddressBalanceResult struct { TxId string Detail AddressBalance }
func (*BlockChainListAddressBalanceResult) UnmarshalJSON ¶
func (p *BlockChainListAddressBalanceResult) UnmarshalJSON(data []byte) error
type BlockChainListAddressBalancesCmd ¶
type BlockChainListAddressBalancesCmd struct {
Addr string
}
BlockChainListAddressBalancesCmd defines the blockchain_list_address_balances JSON-RPC command.
func NewBlockChainListAddressBalancesCmd ¶
func NewBlockChainListAddressBalancesCmd(addr string) *BlockChainListAddressBalancesCmd
type CallContractCmd ¶
type CallContractCmd struct { Contract string CallerName string FunctionName string Params string AssetSymbol string CallLimit float64 }
CallContractCmd defines the call_contract JSON-RPC command.
func NewCallContractCmd ¶
type CallContractResult ¶
type CallContractResult struct { BlockNum int `json:"block_num"` CreatedTime string `json:"created_time"` EntryID string `json:"entry_id"` Fee AssetAmount `json:"fee"` Index int `json:"index"` IsConfirmed bool `json:"is_confirmed"` IsMarket bool `json:"is_market"` IsVirtual bool `json:"is_virtual"` LedgerEntries []interface{} `json:"ledger_entries"` ReceivedTime string `json:"received_time"` }
type LedgerEntry ¶
type LedgerEntry struct { FromAccount string `json:"from_account"` FromAccountName string `json:"from_account_name"` Memo string `json:"memo"` RunningBalances []interface{} `json:"running_balances"` ToAccount string `json:"to_account"` ToAccountName string `json:"to_account_name"` Amount AssetAmount `json:"amount"` }
type ToContractLedgerEntry ¶
type ToContractLedgerEntry struct { Amount AssetAmount `json:"amount"` Fee AssetAmount `json:"fee"` FromAccount string `json:"from_account"` FromAccountName string `json:"from_account_name"` Memo string `json:"memo"` ToAccount string `json:"to_account"` ToAccountName string `json:"to_account_name"` }
type TrxContent ¶
type WalletCheckAddressCmd ¶
type WalletCheckAddressCmd struct {
Address string
}
WalletCheckAddressCmd defines the Get wallet information command
func NewWalletCheckAddressCmd ¶
func NewWalletCheckAddressCmd(addr string) *WalletCheckAddressCmd
type WalletGetInfoCmd ¶
type WalletGetInfoCmd struct { }
WalletGetInfoCmd defines the Get wallet information command
func NewWalletGetInfoCmd ¶
func NewWalletGetInfoCmd() *WalletGetInfoCmd
type WalletInfo ¶
type WalletInfo struct { AutomaticBackups bool `json:"automatic_backups"` DataDir string `json:"data_dir"` LastScannedBlockNum int `json:"last_scanned_block_num"` LastScannedBlockTimestamp string `json:"last_scanned_block_timestamp"` Name string `json:"name"` NumScanningThreads int `json:"num_scanning_threads"` Open bool `json:"open"` ScanProgress string `json:"scan_progress"` TransactionExpirationSecs int `json:"transaction_expiration_secs"` TransactionFee AssetAmount `json:"transaction_fee"` TransactionScanningEnabled bool `json:"transaction_scanning_enabled"` Unlocked bool `json:"unlocked"` UnlockedUntil int `json:"unlocked_until"` UnlockedUntilTimestamp string `json:"unlocked_until_timestamp"` Version int `json:"version"` }
type WalletLockCmd ¶
type WalletLockCmd struct{}
WalletLockCmd defines the wallet_lock JSON-RPC command.
func NewWalletLockCmd ¶
func NewWalletLockCmd() *WalletLockCmd
type WalletOpenCmd ¶
type WalletOpenCmd struct {
WalletName string
}
WalletOpenCmd defines the wallet_open JSON-RPC command.
func NewWalletOpenCmd ¶
func NewWalletOpenCmd(walletName string) *WalletOpenCmd
type WalletTransferToAddressCmd ¶
type WalletTransferToAddressCmd struct { Amount string AssetSymbol string FromAccountName string ToAddress string }
WalletTransferToAddressCmd defines the wallet_transfer_to_address JSON-RPC command.
func NewWalletTransferToAddressCmd ¶
func NewWalletTransferToAddressCmd(amount string, assetSymbol string, fromAccountName string, toAddress string) *WalletTransferToAddressCmd
type WalletTransferToAddressResult ¶
type WalletTransferToAddressResult struct {
EntryID string `json:"entry_id"`
}
type WalletUnLockCmd ¶
WalletUnLockCmd defines the wallet_unlock JSON-RPC command.
func NewWalletUnLockCmd ¶
func NewWalletUnLockCmd(timeout string, password string) *WalletUnLockCmd