Documentation ¶
Index ¶
- Constants
- type API
- func (api *API) GetAccountCountRaw() (*json.RawMessage, error)
- func (api *API) GetAccountHistoryRaw(account string, from uint64, limit uint32) (*json.RawMessage, error)
- func (api *API) GetAccountVotesRaw(voter string) (*json.RawMessage, error)
- func (api *API) GetAccountsRaw(accountNames []string) (*json.RawMessage, error)
- func (api *API) GetActiveCategoriesRaw(after string, limit uint32) (*json.RawMessage, error)
- func (api *API) GetActiveVotesRaw(author, permlink string) (*json.RawMessage, error)
- func (api *API) GetBestCategoriesRaw(after string, limit uint32) (*json.RawMessage, error)
- func (api *API) GetBlock(blockNum uint32) (*Block, error)
- func (api *API) GetBlockHeaderRaw(blockNum uint32) (*json.RawMessage, error)
- func (api *API) GetBlockRaw(blockNum uint32) (*json.RawMessage, error)
- func (api *API) GetChainPropertiesRaw() (*json.RawMessage, error)
- func (api *API) GetConfig() (*Config, error)
- func (api *API) GetConfigRaw() (*json.RawMessage, error)
- func (api *API) GetContent(author, permlink string) (*Content, error)
- func (api *API) GetContentRaw(author, permlink string) (*json.RawMessage, error)
- func (api *API) GetContentReplies(parentAuthor, parentPermlink string) ([]*Content, error)
- func (api *API) GetContentRepliesRaw(parentAuthor, parentPermlink string) (*json.RawMessage, error)
- func (api *API) GetConversionRequestsRaw(accountName string) (*json.RawMessage, error)
- func (api *API) GetCurrentMedianHistoryPriceRaw() (*json.RawMessage, error)
- func (api *API) GetDiscussionsByActiveRaw(query *DiscussionQuery) (*json.RawMessage, error)
- func (api *API) GetDiscussionsByCashoutRaw(query *DiscussionQuery) (*json.RawMessage, error)
- func (api *API) GetDiscussionsByChildrenRaw(query *DiscussionQuery) (*json.RawMessage, error)
- func (api *API) GetDiscussionsByCreatedRaw(query *DiscussionQuery) (*json.RawMessage, error)
- func (api *API) GetDiscussionsByHotRaw(query *DiscussionQuery) (*json.RawMessage, error)
- func (api *API) GetDiscussionsByPayoutRaw(query *DiscussionQuery) (*json.RawMessage, error)
- func (api *API) GetDiscussionsByTrendingRaw(query *DiscussionQuery) (*json.RawMessage, error)
- func (api *API) GetDiscussionsByVotesRaw(query *DiscussionQuery) (*json.RawMessage, error)
- func (api *API) GetDynamicGlobalProperties() (*DynamicGlobalProperties, error)
- func (api *API) GetDynamicGlobalPropertiesRaw() (*json.RawMessage, error)
- func (api *API) GetFeedHistoryRaw() (*json.RawMessage, error)
- func (api *API) GetHardforkVersion() (string, error)
- func (api *API) GetHardforkVersionRaw() (*json.RawMessage, error)
- func (api *API) GetNextScheduledHardforkRaw() (*json.RawMessage, error)
- func (api *API) GetOrderBookRaw(limit uint32) (*json.RawMessage, error)
- func (api *API) GetRecentCategoriesRaw(after string, limit uint32) (*json.RawMessage, error)
- func (api *API) GetRecommendedForRaw(user string, limit uint32) (*json.RawMessage, error)
- func (api *API) GetRepliesByLastUpdateRaw(startAuthor string, startPermlink string, limit uint32) (*json.RawMessage, error)
- func (api *API) GetStateRaw(path string) (*json.RawMessage, error)
- func (api *API) GetTrendingCategoriesRaw(after string, limit uint32) (*json.RawMessage, error)
- func (api *API) GetTrendingTagsRaw(afterTag string, limit uint32) (*json.RawMessage, error)
- func (api *API) GetWitnessScheduleRaw() (*json.RawMessage, error)
- func (api *API) LookupAccountNamesRaw(accountNames []string) (*json.RawMessage, error)
- func (api *API) LookupAccountsRaw(lowerBoundName string, limit uint32) (*json.RawMessage, error)
- type Block
- type CommentOperation
- type Config
- type Content
- type ContentMetadata
- type ContentMetadataRaw
- type DiscussionQuery
- type DynamicGlobalProperties
- type Operation
- type Transaction
- type Vote
- type VoteOperation
Constants ¶
View Source
const ( OpTypeVote = "vote" OpTypeComment = "comment" OpTypeTransfer = "transfer" OpTypeTransferToVesting = "transfer_to_vesting" OpTypeWithdrawVesting = "withdraw_vesting" OpTypeLimitOrderCreate = "limit_order_create" OpTypeLimitOrderCancel = "limit_order_cancel" OpTypeFeedPublish = "feed_publish" OpTypeConvert = "convert" OpTypeAccountCreate = "account_create" OpTypeAccountUpdate = "account_update" OpTypeWitnessUpdate = "witness_update" OpTypeAccountWitnessVote = "account_witness_vote" OpTypeAccountWitnessProxy = "account_witness_proxy" OpTypePow = "pow" OpTypeCustom = "custom" OpTypeReportOverProduction = "report_over_production" OpTypeFullConvertRequest = "fill_convert_request" OpTypeCommentReward = "comment_reward" OpTypeCurateReward = "curate_reward" OpTypeLiquidityReward = "liquidity_reward" OpTypeInterest = "interest" OpTypeFillVestingWithdraw = "fill_vesting_withdraw" OpTypeFillOrder = "fill_order" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func NewAPI ¶
func NewAPI(caller interfaces.Caller) *API
func (*API) GetAccountCountRaw ¶
func (api *API) GetAccountCountRaw() (*json.RawMessage, error)
func (*API) GetAccountHistoryRaw ¶
func (*API) GetAccountVotesRaw ¶
func (api *API) GetAccountVotesRaw(voter string) (*json.RawMessage, error)
func (*API) GetAccountsRaw ¶
func (api *API) GetAccountsRaw(accountNames []string) (*json.RawMessage, error)
func (*API) GetActiveCategoriesRaw ¶
func (*API) GetActiveVotesRaw ¶
func (api *API) GetActiveVotesRaw(author, permlink string) (*json.RawMessage, error)
func (*API) GetBestCategoriesRaw ¶
func (*API) GetBlockHeaderRaw ¶
func (api *API) GetBlockHeaderRaw(blockNum uint32) (*json.RawMessage, error)
func (*API) GetBlockRaw ¶
func (api *API) GetBlockRaw(blockNum uint32) (*json.RawMessage, error)
func (*API) GetChainPropertiesRaw ¶
func (api *API) GetChainPropertiesRaw() (*json.RawMessage, error)
func (*API) GetConfigRaw ¶
func (api *API) GetConfigRaw() (*json.RawMessage, error)
func (*API) GetContentRaw ¶
func (api *API) GetContentRaw(author, permlink string) (*json.RawMessage, error)
func (*API) GetContentReplies ¶
func (*API) GetContentRepliesRaw ¶
func (api *API) GetContentRepliesRaw(parentAuthor, parentPermlink string) (*json.RawMessage, error)
func (*API) GetConversionRequestsRaw ¶
func (api *API) GetConversionRequestsRaw(accountName string) (*json.RawMessage, error)
func (*API) GetCurrentMedianHistoryPriceRaw ¶
func (api *API) GetCurrentMedianHistoryPriceRaw() (*json.RawMessage, error)
func (*API) GetDiscussionsByActiveRaw ¶
func (api *API) GetDiscussionsByActiveRaw(query *DiscussionQuery) (*json.RawMessage, error)
func (*API) GetDiscussionsByCashoutRaw ¶
func (api *API) GetDiscussionsByCashoutRaw(query *DiscussionQuery) (*json.RawMessage, error)
func (*API) GetDiscussionsByChildrenRaw ¶
func (api *API) GetDiscussionsByChildrenRaw(query *DiscussionQuery) (*json.RawMessage, error)
func (*API) GetDiscussionsByCreatedRaw ¶
func (api *API) GetDiscussionsByCreatedRaw(query *DiscussionQuery) (*json.RawMessage, error)
func (*API) GetDiscussionsByHotRaw ¶
func (api *API) GetDiscussionsByHotRaw(query *DiscussionQuery) (*json.RawMessage, error)
func (*API) GetDiscussionsByPayoutRaw ¶
func (api *API) GetDiscussionsByPayoutRaw(query *DiscussionQuery) (*json.RawMessage, error)
func (*API) GetDiscussionsByTrendingRaw ¶
func (api *API) GetDiscussionsByTrendingRaw(query *DiscussionQuery) (*json.RawMessage, error)
func (*API) GetDiscussionsByVotesRaw ¶
func (api *API) GetDiscussionsByVotesRaw(query *DiscussionQuery) (*json.RawMessage, error)
func (*API) GetDynamicGlobalProperties ¶
func (api *API) GetDynamicGlobalProperties() (*DynamicGlobalProperties, error)
func (*API) GetDynamicGlobalPropertiesRaw ¶
func (api *API) GetDynamicGlobalPropertiesRaw() (*json.RawMessage, error)
func (*API) GetFeedHistoryRaw ¶
func (api *API) GetFeedHistoryRaw() (*json.RawMessage, error)
func (*API) GetHardforkVersion ¶
func (*API) GetHardforkVersionRaw ¶
func (api *API) GetHardforkVersionRaw() (*json.RawMessage, error)
func (*API) GetNextScheduledHardforkRaw ¶
func (api *API) GetNextScheduledHardforkRaw() (*json.RawMessage, error)
func (*API) GetOrderBookRaw ¶
func (api *API) GetOrderBookRaw(limit uint32) (*json.RawMessage, error)
func (*API) GetRecentCategoriesRaw ¶
func (*API) GetRecommendedForRaw ¶
func (*API) GetRepliesByLastUpdateRaw ¶
func (*API) GetStateRaw ¶
func (api *API) GetStateRaw(path string) (*json.RawMessage, error)
func (*API) GetTrendingCategoriesRaw ¶
func (*API) GetTrendingTagsRaw ¶
func (*API) GetWitnessScheduleRaw ¶
func (api *API) GetWitnessScheduleRaw() (*json.RawMessage, error)
func (*API) LookupAccountNamesRaw ¶
func (api *API) LookupAccountNamesRaw(accountNames []string) (*json.RawMessage, error)
func (*API) LookupAccountsRaw ¶
type Block ¶
type Block struct { Number uint32 `json:"-"` Timestamp *types.Time `json:"timestamp"` Witness string `json:"witness"` WitnessSignature string `json:"witness_signature"` TransactionMerkleRoot string `json:"transaction_merkle_root"` Previous string `json:"previous"` Extensions [][]interface{} `json:"extensions"` Transactions []*Transaction `json:"transactions"` }
type CommentOperation ¶
type CommentOperation struct { Author string `json:"author"` Title string `json:"title"` Permlink string `json:"permlink"` ParentAuthor string `json:"parent_author"` ParentPermlink string `json:"parent_permlink"` Body string `json:"body"` }
CommentOperation represents either a new post or a comment.
In case Title is filled in and ParentAuthor is empty, it is a new post. The post category can be read from ParentPermlink.
In case the author is just updating an existing post, Body contains only the diff against the original content.
func (*CommentOperation) IsStoryOperation ¶
func (op *CommentOperation) IsStoryOperation() bool
type Content ¶
type Content struct { Id *types.ID `json:"id"` RootTitle string `json:"root_title"` Active *types.Time `json:"active"` PendingPayoutValue string `json:"pending_payout_value"` TotalPendingPayoutValue string `json:"total_pending_payout_value"` Category string `json:"category"` Title string `json:"title"` LastUpdate *types.Time `json:"last_update"` Stats string `json:"stats"` Body string `json:"body"` Created *types.Time `json:"created"` Replies []*Content `json:"replies"` Permlink string `json:"permlink"` JsonMetadata *ContentMetadata `json:"json_metadata"` Children *types.Int `json:"children"` URL string `json:"url"` ActiveVotes []*Vote `json:"active_votes"` ParentPermlink string `json:"parent_permlink"` CashoutTime *types.Time `json:"cashout_time"` TotalPayoutValue string `json:"total_payout_value"` ParentAuthor string `json:"parent_author"` Author string `json:"author"` Depth *types.Int `json:"depth"` TotalVoteWeight *types.Int `json:"total_vote_weight"` }
type ContentMetadata ¶
func (*ContentMetadata) UnmarshalJSON ¶
func (metadata *ContentMetadata) UnmarshalJSON(data []byte) error
type ContentMetadataRaw ¶
type DiscussionQuery ¶
type DiscussionQuery struct { Tag string `json:"tag"` Limit uint32 `json:"limit"` // XXX: Not sure about the type here. FilterTags []string `json:"filter_tags"` StartAuthor string `json:"start_author,omitempty"` StartPermlink string `json:"start_permlink,omitempty"` ParentAuthor string `json:"parent_author,omitempty"` ParentPermlink string `json:"parent_permlink"` }
type DynamicGlobalProperties ¶
type DynamicGlobalProperties struct { Time *types.Time `json:"time"` TotalPow *types.Int `json:"total_pow"` NumPowWitnesses *types.Int `json:"num_pow_witnesses"` ConfidentialSupply string `json:"confidential_supply"` CurrentReserveRatio *types.Int `json:"current_reserve_ratio"` Id *types.ID `json:"id"` CurrentSupply string `json:"current_supply"` MaximumBlockSize *types.Int `json:"maximum_block_size"` RecentSlotsFilled string `json:"recent_slots_filled"` CurrentWitness string `json:"current_witness"` AverageBlockSize *types.Int `json:"average_block_size"` CurrentAslot *types.Int `json:"current_aslot"` LastIrreversibleBlockNum uint32 `json:"last_irreversible_block_num"` TotalVersingFundSteem string `json:"total_vesting_fund_steem"` HeadBlockId string `json:"head_block_id"` VirtualSupply string `json:"virtual_supply"` CurrentSBDSupply string `json:"current_sbd_supply"` ConfidentialSBDSupply string `json:"confidential_sbd_supply"` TotalRewardFundSteem string `json:"total_reward_fund_steem"` SBDInterestRate *types.Int `json:"sbd_interest_rate"` MaxVirtualBandwidth string `json:"max_virtual_bandwidth"` HeadBlockNumber *types.Int `json:"head_block_number"` }
type Operation ¶
type Operation struct { Type string Body interface{} }
func (*Operation) UnmarshalJSON ¶
type Transaction ¶
Click to show internal directories.
Click to hide internal directories.