api

package
v0.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2020 License: MIT Imports: 7 Imported by: 0

README

API

This package adds support for golos api.

State

ID Command Name Version
account_by_key
1 get_key_references DONE
account_history
1 get_account_history DONE
database_api
1 get_account_bandwidth DONE
2 get_account_count DONE
3 get_accounts DONE
4 get_block DONE
5 get_block_header DONE
6 get_chain_properties DONE
7 get_config DONE
8 get_conversion_requests DONE
9 get_database_info DONE
10 get_dynamic_global_properties DONE
11 get_escrow DONE
12 get_expiring_vesting_delegations DONE
13 get_hardfork_version DONE
14 get_next_scheduled_hardfork DONE
15 get_owner_history DONE
16 get_potential_signatures DONE
17 get_proposed_transaction DONE
18 get_recovery_request DONE
19 get_required_signatures DONE
20 get_savings_withdraw_from DONE
21 get_savings_withdraw_to DONE
22 get_transaction_hex DONE
23 get_vesting_delegations DONE
24 get_withdraw_routes DONE
25 lookup_account_names DONE
26 lookup_accounts DONE
27 verify_account_authority DONE
28 verify_authority DONE
follow
1 get_account_reputations DONE
2 get_blog DONE
3 get_blog_authors DONE
4 get_blog_entries DONE
5 get_feed DONE
6 get_feed_entries DONE
7 get_follow_count DONE
8 get_followers DONE
9 get_following DONE
10 get_reblogged_by DONE
market_history
1 get_market_history DONE
2 get_market_history_buckets DONE
3 get_open_orders DONE
4 get_order_book DONE
5 get_order_book_extended NONE
6 get_recent_trades DONE
7 get_ticker DONE
8 get_trade_history DONE
9 get_volume DONE
network_broadcast_api
1 broadcast_block NONE
2 broadcast_transaction DONE
3 broadcast_transaction_synchronous DONE
4 broadcast_transaction_with_callback NONE
operation_history
1 get_ops_in_block DONE
2 get_transaction DONE
operation_history
1 get_inbox DONE
2 get_outbox DONE
3 get_thread DONE
4 get_settings DONE
5 get_contacts_size RAW
6 get_contact_info DONE
7 get_contacts DONE
social_network
1 get_account_votes DONE
2 get_active_votes DONE
3 get_all_content_replies DONE
4 get_content DONE
5 get_content_replies DONE
6 get_replies_by_last_update DONE
tags
1 get_discussions_by_active DONE
2 get_discussions_by_author_before_date DONE
3 get_discussions_by_blog DONE
4 get_discussions_by_cashout DONE
5 get_discussions_by_children DONE
6 get_discussions_by_comments DONE
7 get_discussions_by_created DONE
8 get_discussions_by_feed DONE
9 get_discussions_by_hot DONE
10 get_discussions_by_payout DONE
11 get_discussions_by_promoted DONE
12 get_discussions_by_trending DONE
13 get_discussions_by_votes DONE
14 get_languages DONE
15 get_tags_used_by_author RAW
16 get_trending_tags DONE
witness_api
1 get_active_witnesses DONE
2 get_current_median_history_price DONE
3 get_feed_history DONE
4 get_miner_queue DONE
5 get_witness_by_account DONE
6 get_witness_count DONE
7 get_witness_schedule DONE
8 get_witnesses DONE
9 get_witnesses_by_vote DONE
10 lookup_witness_accounts DONE

License

MIT, see the LICENSE file.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EmptyParams = []struct{}{}
)

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

API plug-in structure

func NewAPI

func NewAPI(caller transports.Caller) *API

NewAPI plug-in initialization

func (*API) BroadcastTransaction

func (api *API) BroadcastTransaction(tx *operations.Transaction) error

BroadcastTransaction api request broadcast_transaction

func (*API) BroadcastTransactionSynchronous

func (api *API) BroadcastTransactionSynchronous(tx *operations.Transaction, maxBlockAge ...uint32) (*BroadcastResponse, error)

BroadcastTransactionSynchronous api request broadcast_transaction_synchronous

func (*API) GetAccountBandwidth

func (api *API) GetAccountBandwidth(accountName string, bandwidthType uint32) (*Bandwidth, error)

GetAccountBandwidth displays user actions based on type

bandwidthType: post = 0 forum = 1 market = 2 custom_json = 3

func (*API) GetAccountCount

func (api *API) GetAccountCount() (*uint64, error)

GetAccountCount returns the number of registered users.

func (*API) GetAccountHistory

func (api *API) GetAccountHistory(account string, from uint64, limit uint32) ([]*operations.OperationObject, error)

GetAccountHistory the history of all user actions on the network in the form of transactions. If from = -1, the last {limit + 1} elements of the history will be shown. The limit parameter must not exceed from (exception from = -1), since the previous {from} elements of the history are displayed.

func (*API) GetAccountReputations

func (api *API) GetAccountReputations(accounts ...string) ([]*AccountReputation, error)

GetAccountReputations api request get_account_reputations

func (*API) GetAccountVotes

func (api *API) GetAccountVotes(author string, opts ...interface{}) ([]*Votes, error)

GetAccountVotes api request get_account_votes

func (*API) GetAccounts

func (api *API) GetAccounts(accountNames ...string) ([]*Account, error)

GetAccounts api request get_accounts

func (*API) GetActiveVotes

func (api *API) GetActiveVotes(author, permlink string, opts ...interface{}) ([]*VoteState, error)

GetActiveVotes api request get_active_votes

func (*API) GetActiveWitnesses

func (api *API) GetActiveWitnesses() ([]*string, error)

GetActiveWitnesses api request get_active_witnesses

func (*API) GetAllContentReplies

func (api *API) GetAllContentReplies(parentAuthor, parentPermlink string, opts ...interface{}) ([]*Discussion, error)

GetAllContentReplies api request get_all_content_replies

func (*API) GetBlock

func (api *API) GetBlock(blockNum uint32) (*Block, error)

GetBlock api request get_block

func (*API) GetBlockHeader

func (api *API) GetBlockHeader(blockNum uint32) (*BlockHeader, error)

GetBlockHeader api request get_block_header

func (*API) GetBlog

func (api *API) GetBlog(accountName string, entryID, limit uint32) ([]*Blogs, error)

GetBlog api request get_blog

func (*API) GetBlogAuthors

func (api *API) GetBlogAuthors(author string) ([]*BlogAuthor, error)

GetBlogAuthors api request get_blog_authors

func (*API) GetBlogEntries

func (api *API) GetBlogEntries(accountName string, entryID, limit uint32) ([]*BlogEntries, error)

GetBlogEntries api request get_blog_entries

func (*API) GetChainProperties

func (api *API) GetChainProperties() (*types.ChainProperties, error)

GetChainProperties api request get_chain_properties

func (*API) GetConfig

func (api *API) GetConfig() (*Config, error)

GetConfig api request get_config

func (*API) GetContactInfo

func (api *API) GetContactInfo(from, contact string) (*MessageContact, error)

GetContactInfo api request get_contact_info

func (*API) GetContacts

func (api *API) GetContacts(from, contact string) ([]*MessageContact, error)

GetContacts api request get_contacts

func (*API) GetContactsSize

func (api *API) GetContactsSize(owner string) (*json.RawMessage, error)

GetContactsSize api request get_contacts_size

func (*API) GetContent

func (api *API) GetContent(author, permlink string, opts ...interface{}) (*Discussion, error)

GetContent api request get_content

func (*API) GetContentReplies

func (api *API) GetContentReplies(parentAuthor, parentPermlink string, opts ...interface{}) ([]*Discussion, error)

GetContentReplies api request get_content_replies

func (*API) GetConversionRequests

func (api *API) GetConversionRequests(accountName string) ([]*ConversionRequests, error)

GetConversionRequests api request get_conversion_requests

func (*API) GetCurrentMedianHistoryPrice

func (api *API) GetCurrentMedianHistoryPrice() (*Prices, error)

GetCurrentMedianHistoryPrice api request get_current_median_history_price

func (*API) GetDatabaseInfo

func (api *API) GetDatabaseInfo() (*DatabaseInfo, error)

GetDatabaseInfo api request get_database_info

func (*API) GetDiscussionsByActive

func (api *API) GetDiscussionsByActive(query DiscussionQuery) ([]*Discussion, error)

GetDiscussionsByActive api request get_discussions_by_active

func (*API) GetDiscussionsByAuthorBeforeDate

func (api *API) GetDiscussionsByAuthorBeforeDate(author, permlink string, date types.Time, limit uint32, opts ...uint32) ([]*Discussion, error)

GetDiscussionsByAuthorBeforeDate api request get_discussions_by_author_before_date

func (*API) GetDiscussionsByBlog

func (api *API) GetDiscussionsByBlog(query DiscussionQuery) ([]*Discussion, error)

GetDiscussionsByBlog api request get_discussions_by_blog

func (*API) GetDiscussionsByCashout

func (api *API) GetDiscussionsByCashout(query DiscussionQuery) ([]*Discussion, error)

GetDiscussionsByCashout api request get_discussions_by_cashout

func (*API) GetDiscussionsByChildren

func (api *API) GetDiscussionsByChildren(query DiscussionQuery) ([]*Discussion, error)

GetDiscussionsByChildren api request get_discussions_by_children

func (*API) GetDiscussionsByComments

func (api *API) GetDiscussionsByComments(query DiscussionQuery) ([]*Discussion, error)

GetDiscussionsByComments api request get_discussions_by_comments

func (*API) GetDiscussionsByCreated

func (api *API) GetDiscussionsByCreated(query DiscussionQuery) ([]*Discussion, error)

GetDiscussionsByCreated api request get_discussions_by_created

func (*API) GetDiscussionsByFeed

func (api *API) GetDiscussionsByFeed(query DiscussionQuery) ([]*Discussion, error)

GetDiscussionsByFeed api request get_discussions_by_feed

func (*API) GetDiscussionsByHot

func (api *API) GetDiscussionsByHot(query DiscussionQuery) ([]*Discussion, error)

GetDiscussionsByHot api request get_discussions_by_hot

func (*API) GetDiscussionsByPayout

func (api *API) GetDiscussionsByPayout(query DiscussionQuery) ([]*Discussion, error)

GetDiscussionsByPayout api request get_discussions_by_payout

func (*API) GetDiscussionsByPromoted

func (api *API) GetDiscussionsByPromoted(query DiscussionQuery) ([]*Discussion, error)

GetDiscussionsByPromoted api request get_discussions_by_promoted

func (*API) GetDiscussionsByTrending

func (api *API) GetDiscussionsByTrending(query DiscussionQuery) ([]*Discussion, error)

GetDiscussionsByTrending api request get_discussions_by_trending

func (*API) GetDiscussionsByVotes

func (api *API) GetDiscussionsByVotes(query DiscussionQuery) ([]*Discussion, error)

GetDiscussionsByVotes api request get_discussions_by_votes

func (*API) GetDynamicGlobalProperties

func (api *API) GetDynamicGlobalProperties() (*DynamicGlobalProperties, error)

GetDynamicGlobalProperties api request get_dynamic_global_properties

func (*API) GetEscrow

func (api *API) GetEscrow(from string, escrowID uint32) (*Escrow, error)

GetEscrow api request get_escrow

func (*API) GetExpiringVestingDelegations

func (api *API) GetExpiringVestingDelegations(account string, from types.Time, limit ...uint32) ([]*VestingDelegationExpiration, error)

GetExpiringVestingDelegations api request get_expiring_vesting_delegations

func (*API) GetFeed

func (api *API) GetFeed(accountName string, entryID, limit uint32) ([]*Feeds, error)

GetFeed api request get_feed

func (*API) GetFeedEntries

func (api *API) GetFeedEntries(accountName string, entryID, limit uint32) ([]*FeedEntry, error)

GetFeedEntries api request get_feed_entries

func (*API) GetFeedHistory

func (api *API) GetFeedHistory() (*FeedHistory, error)

GetFeedHistory api request get_feed_history

func (*API) GetFollowCount

func (api *API) GetFollowCount(accountName string) (*FollowCount, error)

GetFollowCount api request get_follow_count

func (*API) GetFollowers

func (api *API) GetFollowers(accountName, start string, kind, limit uint32) ([]*FollowObject, error)

GetFollowers api request get_followers

kind: 0 = undefined 1 = blog 2 = ignore

func (*API) GetFollowing

func (api *API) GetFollowing(accountName, start string, kind, limit uint32) ([]*FollowObject, error)

GetFollowing api request get_following

kind: 0 = undefined 1 = blog 2 = ignore

func (*API) GetHardforkVersion

func (api *API) GetHardforkVersion() (*string, error)

GetHardforkVersion api request get_hardfork_version

func (*API) GetInbox

func (api *API) GetInbox(to string, limit, offset uint16) ([]*Message, error)

GetInbox api request get_inbox

func (*API) GetKeyReferences

func (api *API) GetKeyReferences(pubkey ...string) ([]*string, error)

GetKeyReferences returns a list of accounts by a list of public keys

func (*API) GetLanguages

func (api *API) GetLanguages() ([]*string, error)

GetLanguages api request get_languages

func (*API) GetMarketHistory

func (api *API) GetMarketHistory(bSec uint32, start, end types.Time) ([]*MarketHistory, error)

GetMarketHistory api request get_market_history

func (*API) GetMarketHistoryBuckets

func (api *API) GetMarketHistoryBuckets() ([]*uint32, error)

GetMarketHistoryBuckets api request get_market_history_buckets

func (*API) GetMinerQueue

func (api *API) GetMinerQueue() ([]*string, error)

GetMinerQueue api request get_miner_queue

func (*API) GetNextScheduledHardfork

func (api *API) GetNextScheduledHardfork() (*NextScheduledHardfork, error)

GetNextScheduledHardfork api request get_next_scheduled_hardfork

func (*API) GetOpenOrders

func (api *API) GetOpenOrders(accountName string) ([]*OpenOrders, error)

GetOpenOrders api request get_open_orders

func (*API) GetOpsInBlock

func (api *API) GetOpsInBlock(blockNum uint32, onlyVirtual bool) ([]*operations.OperationObject, error)

GetOpsInBlock api request get_ops_in_block

func (*API) GetOrderBook

func (api *API) GetOrderBook(limit uint32) (*OrderBook, error)

GetOrderBook api request get_order_book

func (*API) GetOrderBookExtended

func (api *API) GetOrderBookExtended(limit uint32) (*OrderBookExtended, error)

GetOrderBookExtended api request get_order_book_extended

func (*API) GetOutbox

func (api *API) GetOutbox(from string, limit, offset uint16) ([]*Message, error)

GetOutbox api request get_outbox

func (*API) GetOwnerHistory

func (api *API) GetOwnerHistory(accountName string) ([]*OwnerHistory, error)

GetOwnerHistory api request get_owner_history

func (*API) GetPotentialSignatures

func (api *API) GetPotentialSignatures(trx *operations.Transaction) ([]*string, error)

GetPotentialSignatures api request get_potential_signatures

func (*API) GetProposedTransaction

func (api *API) GetProposedTransaction(account string, from, limit uint32) ([]*ProposalObject, error)

GetProposedTransaction api request get_proposed_transactions

func (*API) GetRebloggedBy

func (api *API) GetRebloggedBy(author, permlink string) ([]*string, error)

GetRebloggedBy api request get_reblogged_by

func (*API) GetRecentTrades

func (api *API) GetRecentTrades(limit uint32) ([]*Trades, error)

GetRecentTrades api request get_recent_trades

func (*API) GetRecoveryRequest

func (api *API) GetRecoveryRequest(accountName string) (*AccountRecoveryRequest, error)

GetRecoveryRequest api request get_recovery_request

func (*API) GetRepliesByLastUpdate

func (api *API) GetRepliesByLastUpdate(startAuthor, startPermlink string, limit, vote_limit, vote_offset uint32) ([]*Discussion, error)

GetRepliesByLastUpdate api request get_replies_by_last_update

func (*API) GetRequiredSignatures

func (api *API) GetRequiredSignatures(trx *operations.Transaction, keys ...string) ([]*string, error)

GetRequiredSignatures api request get_required_signatures

func (*API) GetSavingsWithdrawFrom

func (api *API) GetSavingsWithdrawFrom(accountName string) ([]*SavingsWithdraw, error)

GetSavingsWithdrawFrom api request get_savings_withdraw_from

func (*API) GetSavingsWithdrawTo

func (api *API) GetSavingsWithdrawTo(accountName string) ([]*SavingsWithdraw, error)

GetSavingsWithdrawTo api request get_savings_withdraw_to

func (*API) GetSettings

func (api *API) GetSettings(owner string) (*MessageSettings, error)

GetSettings api request get_settings

func (*API) GetTagsUsedByAuthor

func (api *API) GetTagsUsedByAuthor(accountName string) ([]*uint32, error)

GetTagsUsedByAuthor api request get_tags_used_by_author

func (*API) GetThread

func (api *API) GetThread(from, to string, limit, offset uint16) ([]*Message, error)

GetThread api request get_thread

func (*API) GetTicker

func (api *API) GetTicker() (*Ticker, error)

GetTicker api request get_ticker

func (*API) GetTradeHistory

func (api *API) GetTradeHistory(start, end types.Time, limit uint32) ([]*Trades, error)

GetTradeHistory api request get_trade_history

func (*API) GetTransaction

func (api *API) GetTransaction(id string) (*operations.Transaction, error)

GetTransaction api request get_transaction

func (*API) GetTransactionHex

func (api *API) GetTransactionHex(trx *operations.Transaction) (*string, error)

GetTransactionHex api request get_transaction_hex

func (*API) GetTrendingTags

func (api *API) GetTrendingTags(afterTag string, limit uint32) ([]*TrendingTags, error)

GetTrendingTags api request get_trending_tags

func (*API) GetVerifyAccountAuthority

func (api *API) GetVerifyAccountAuthority(accountName string, keys ...string) (*bool, error)

GetVerifyAccountAuthority api request verify_account_authority

func (*API) GetVerifyAuthority

func (api *API) GetVerifyAuthority(trx *operations.Transaction) (*bool, error)

GetVerifyAuthority api request verify_authority

func (*API) GetVestingDelegations

func (api *API) GetVestingDelegations(account, from, dtype string, limit ...uint32) ([]*VestingDelegation, error)

GetVestingDelegations api request get_vesting_delegations dtype:

delegated
any other

func (*API) GetVolume

func (api *API) GetVolume() (*Volume, error)

GetVolume api request get_volume

func (*API) GetWithdrawRoutes

func (api *API) GetWithdrawRoutes(accountName string, withdrawRouteType uint32) ([]*WithdrawVestingRoutes, error)

GetWithdrawRoutes api request get_withdraw_routes

withdrawRouteType: 0 = incoming 1 = outgoing 2 = all

func (*API) GetWitnessByAccount

func (api *API) GetWitnessByAccount(author string) (*Witness, error)

GetWitnessByAccount api request get_witness_by_account

func (*API) GetWitnessByVote

func (api *API) GetWitnessByVote(author string, limit uint32) ([]*Witness, error)

GetWitnessByVote api request get_witnesses_by_vote

func (*API) GetWitnessCount

func (api *API) GetWitnessCount() (*uint64, error)

GetWitnessCount api request get_witness_count

func (*API) GetWitnessSchedule

func (api *API) GetWitnessSchedule() (*WitnessSchedule, error)

GetWitnessSchedule api request get_witness_schedule

func (*API) GetWitnesses

func (api *API) GetWitnesses(id ...uint32) ([]*Witness, error)

GetWitnesses api request get_witnesses

func (*API) GetWorkerRequestVotes

func (api *API) GetWorkerRequestVotes(author, permlink, start_voter string, limit uint32) ([]*WorkerVotes, error)

GetWorkerRequestVotes api request get_worker_request_votes

func (*API) GetWorkerRequests

func (api *API) GetWorkerRequests(query WorkerRequestQuery, sort int8, fill_posts bool) ([]*WorkerRequests, error)

GetWorkerRequests api request get_worker_requests sort: 0 = by_created, 1 = by_net_rshares, 2 = by_upvotes, 3 = by_downvotes

func (*API) LookupAccountNames

func (api *API) LookupAccountNames(accountNames ...string) ([]*Account, error)

LookupAccountNames api request lookup_account_names

func (*API) LookupAccounts

func (api *API) LookupAccounts(lowerBoundName string, limit uint32) ([]*string, error)

LookupAccounts api request lookup_accounts

func (*API) LookupWitnessAccounts

func (api *API) LookupWitnessAccounts(author string, limit uint32) ([]*string, error)

LookupWitnessAccounts api request lookup_witness_accounts

func (*API) SetBlockAppliedCallback

func (api *API) SetBlockAppliedCallback(notice func(header *CallbackBlockResponse, error error)) (err error)

Set callback to invoke as soon as a new block is applied

type Account

type Account struct {
	ID                            types.Int       `json:"id"`
	Name                          string          `json:"name"`
	Owner                         types.Authority `json:"owner"`
	Active                        types.Authority `json:"active"`
	Posting                       types.Authority `json:"posting"`
	MemoKey                       string          `json:"memo_key"`
	JSONMetadata                  string          `json:"json_metadata"`
	Proxy                         string          `json:"proxy"`
	LastOwnerUpdate               types.Time      `json:"last_owner_update"`
	LastAccountUpdate             types.Time      `json:"last_account_update"`
	Created                       types.Time      `json:"created"`
	Mined                         bool            `json:"mined"`
	OwnerChallenged               bool            `json:"owner_challenged"`
	ActiveChallenged              bool            `json:"active_challenged"`
	LastOwnerProved               types.Time      `json:"last_owner_proved"`
	LastActiveProved              types.Time      `json:"last_active_proved"`
	RecoveryAccount               string          `json:"recovery_account"`
	LastAccountRecovery           types.Time      `json:"last_account_recovery"`
	ResetAccount                  string          `json:"reset_account"`
	CommentCount                  uint32          `json:"comment_count"`
	LifetimeVoteCount             uint32          `json:"lifetime_vote_count"`
	PostCount                     uint32          `json:"post_count"`
	CanVote                       bool            `json:"can_vote"`
	VotingPower                   uint16          `json:"voting_power"`
	LastVoteTime                  types.Time      `json:"last_vote_time"`
	Balance                       types.Asset     `json:"balance"`
	SavingsBalance                types.Asset     `json:"savings_balance"`
	SbdBalance                    types.Asset     `json:"sbd_balance"`
	SbdSeconds                    types.UInt64    `json:"sbd_seconds"`
	SbdSecondsLastUpdate          types.Time      `json:"sbd_seconds_last_update"`
	SbdLastInterestPayment        types.Time      `json:"sbd_last_interest_payment"`
	SavingsSbdBalance             types.Asset     `json:"savings_sbd_balance"`
	SavingsSbdSeconds             types.UInt64    `json:"savings_sbd_seconds"`
	SavingsSbdSecondsLastUpdate   types.Time      `json:"savings_sbd_seconds_last_update"`
	SavingsSbdLastInterestPayment types.Time      `json:"savings_sbd_last_interest_payment"`
	SavingsWithdrawRequests       uint8           `json:"savings_withdraw_requests"`
	VestingShares                 types.Asset     `json:"vesting_shares"`
	DelegatedVestingShares        types.Asset     `json:"delegated_vesting_shares"`
	ReceivedVestingShares         types.Asset     `json:"received_vesting_shares"`
	VestingWithdrawRate           types.Asset     `json:"vesting_withdraw_rate"`
	NextVestingWithdrawal         types.Time      `json:"next_vesting_withdrawal"`
	Withdrawn                     int64           `json:"withdrawn"`
	ToWithdraw                    int64           `json:"to_withdraw"`
	WithdrawRoutes                uint16          `json:"withdraw_routes"`
	BenefactionRrewards           int64           `json:"benefaction_rewards"`
	CurationRewards               int64           `json:"curation_rewards"`
	DelegationRewards             int64           `json:"delegation_rewards"`
	PostingRewards                int64           `json:"posting_rewards"`
	ProxiedVsfVotes               []int64         `json:"proxied_vsf_votes"`
	WitnessesVotedFor             uint16          `json:"witnesses_voted_for"`
	AverageBandwidth              int64           `json:"average_bandwidth"`
	AverageMarketBandwidth        int64           `json:"average_market_bandwidth"`
	LifetimeBandwidth             int64           `json:"lifetime_bandwidth"`
	LifetimeMarketBandwidth       int64           `json:"lifetime_market_bandwidth"`
	LastBandwidthUpdate           types.Time      `json:"last_bandwidth_update"`
	LastMarketBandwidthUpdate     types.Time      `json:"last_market_bandwidth_update"`
	LastComment                   types.Time      `json:"last_comment"`
	LastPost                      types.Time      `json:"last_post"`
	PostBandwidth                 int64           `json:"post_bandwidth"`
	WitnessVotes                  []string        `json:"witness_votes"`
	Reputation                    int64           `json:"reputation"`
	PostsCapacity                 uint32          `json:"posts_capacity"`
	CommentsCapacity              uint32          `json:"comments_capacity"`
	VotingCapacity                uint32          `json:"voting_capacity"`
	ReferrerAccount               string          `json:"referrer_account"`
	ReferrerInterestRate          uint16          `json:"referrer_interest_rate"`
	ReferralEndDate               types.Time      `json:"referral_end_date"`
	ReferralBreakFee              types.Asset     `json:"referral_break_fee"`
	LastActiveOperation           types.Time      `json:"last_active_operation"`
}

Account structure for the GetAccounts and LookupAccountNames function

type AccountRecoveryRequest

type AccountRecoveryRequest struct {
	ID                types.Int       `json:"id"`
	AccountToRecover  string          `json:"account_to_recover"`
	NewOwnerAuthority types.Authority `json:"new_owner_authority"`
	Expires           types.Time      `json:"expires"`
}

AccountRecoveryRequest structure for the GetRecoveryRequest function.

type AccountReputation

type AccountReputation struct {
	Account    string `json:"account"`
	Reputation int64  `json:"reputation"`
}

AccountReputation structure for the GetAccountReputations function.

type Bandwidth

type Bandwidth struct {
	ID                  types.Int  `json:"id"`
	Account             string     `json:"account"`
	Type                string     `json:"type"`
	AverageBandwidth    int64      `json:"average_bandwidth"`
	LifetimeBandwidth   int64      `json:"lifetime_bandwidth"`
	LastBandwidthUpdate types.Time `json:"last_bandwidth_update"`
}

Bandwidth structure for the GetAccountBandwidth function

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          []operations.Transaction `json:"transactions"`
}

Block structure for the GetBlock function

type BlockHeader

type BlockHeader struct {
	Number                uint32        `json:"-"`
	Previous              string        `json:"previous"`
	Timestamp             string        `json:"timestamp"`
	Witness               string        `json:"witness"`
	TransactionMerkleRoot string        `json:"transaction_merkle_root"`
	Extensions            []interface{} `json:"extensions"`
}

BlockHeader structure for the GetBlockHeader function

type BlogAuthor

type BlogAuthor struct {
	Author string `json:"author"`
	Count  uint32 `json:"count"`
}

BlogAuthor structure for the GetBlogAuthors function

type BlogEntries

type BlogEntries struct {
	Author             string     `json:"author"`
	Permlink           string     `json:"permlink"`
	Blog               string     `json:"blog"`
	ReblogOn           types.Time `json:"reblog_on"`
	EntryID            uint32     `json:"entry_id"`
	ReblogTitle        string     `json:"reblog_title"`
	ReblogBody         string     `json:"reblog_body"`
	ReblogJSONMetadata string     `json:"reblog_json_metadata"`
}

BlogEntries structure for the GetBlogEntries function

type Blogs

type Blogs struct {
	Comment            CommentData `json:"comment"`
	Blog               string      `json:"blog"`
	ReblogOn           types.Time  `json:"reblog_on"`
	EntryID            uint32      `json:"entry_id"`
	ReblogTitle        string      `json:"reblog_title"`
	ReblogBody         string      `json:"reblog_body"`
	ReblogJSONMetadata string      `json:"reblog_json_metadata"`
}

Blogs structure for the GetBlog function

type BroadcastResponse

type BroadcastResponse struct {
	ID       string `json:"id"`
	BlockNum int32  `json:"block_num"`
	TrxNum   int32  `json:"trx_num"`
	Expired  bool   `json:"expired"`
}

BroadcastResponse structure for the BroadcastTransactionSynchronous function

type CallbackBlockResponse

type CallbackBlockResponse struct {
	BlockNum   int                                  `json:"block_num"`
	Operations []operations.CallbackBlockOperations `json:"operations"`
}

type CommentData

type CommentData struct {
	ID                             types.Int           `json:"id"`
	Title                          string              `json:"title"`
	Body                           string              `json:"body"`
	JSONMetadata                   string              `json:"json_metadata"`
	ParentAuthor                   string              `json:"parent_author"`
	ParentPermlink                 string              `json:"parent_permlink"`
	Author                         string              `json:"author"`
	Permlink                       string              `json:"permlink"`
	Category                       string              `json:"category"`
	LastUpdate                     types.Time          `json:"last_update"`
	Created                        types.Time          `json:"created"`
	Active                         types.Time          `json:"active"`
	LastPayout                     types.Time          `json:"last_payout"`
	Depth                          uint8               `json:"depth"`
	Children                       uint32              `json:"children"`
	ChildrenRshares2               types.UInt64        `json:"children_rshares2"`
	NetRshares                     int64               `json:"net_rshares"`
	AbsRshares                     int64               `json:"abs_rshares"`
	VoteRshares                    int64               `json:"vote_rshares"`
	ChildrenAbsRshares             int64               `json:"children_abs_rshares"`
	CashoutTime                    types.Time          `json:"cashout_time"`
	MaxCashoutTime                 types.Time          `json:"max_cashout_time"`
	TotalVoteWeight                uint64              `json:"total_vote_weight"`
	RewardWeight                   uint16              `json:"reward_weight"`
	TotalPayoutValue               types.Asset         `json:"total_payout_value"`
	BeneficiaryPayoutValue         types.Asset         `json:"beneficiary_payout_value"`
	BeneficiaryGestsPayoutValue    types.Asset         `json:"beneficiary_gests_payout_value"`
	CuratorPayoutValue             types.Asset         `json:"curator_payout_value"`
	CuratorGestsPayoutValue        types.Asset         `json:"curator_gests_payout_value"`
	AuthorRewards                  int64               `json:"author_rewards"`
	AuthorGBGPayoutValue           types.Asset         `json:"author_gbg_payout_value"`
	AuthorGolosPayoutValue         types.Asset         `json:"author_golos_payout_value"`
	AuthorGestsPayoutValue         types.Asset         `json:"author_gests_payout_value"`
	NetVotes                       int32               `json:"net_votes"`
	Mode                           string              `json:"mode"`
	RootComment                    types.Int           `json:"root_comment"`
	CurationRewardCurve            uint8               `json:"curation_reward_curve"`
	AuctionWindowRewardDestination int8                `json:"auction_window_reward_destination"`
	AuctionWindowSize              uint16              `json:"auction_window_size"`
	AuctionWindowWeight            uint64              `json:"auction_window_weight"`
	VotesInAuctionWindowWeight     uint64              `json:"votes_in_auction_window_weight"`
	RootTitle                      string              `json:"root_title"`
	MaxAcceptedPayout              types.Asset         `json:"max_accepted_payout"`
	PercentSteemDollars            uint16              `json:"percent_steem_dollars"`
	AllowReplies                   bool                `json:"allow_replies"`
	AllowVotes                     bool                `json:"allow_votes"`
	AllowCurationRewards           bool                `json:"allow_curation_rewards"`
	CurationRewardsPercent         uint16              `json:"curation_rewards_percent"`
	Beneficiaries                  []types.Beneficiary `json:"beneficiaries"`
}

CommentData additional structure for the function GetBlog.

type Config

type Config struct {
	BuildTestnet                   bool        `json:"STEEMIT_BUILD_TESTNET"`
	GrapheneCurrentDBVersion       string      `json:"GRAPHENE_CURRENT_DB_VERSION"`
	SbdSymbol                      types.Int   `json:"SBD_SYMBOL"`
	Percent100                     int         `json:"STEEMIT_100_PERCENT"`
	Percent1                       types.Int   `json:"STEEMIT_1_PERCENT"`
	AddressPrefix                  string      `json:"STEEMIT_ADDRESS_PREFIX"`
	AprPercentMultiplyPerBlock     string      `json:"STEEMIT_APR_PERCENT_MULTIPLY_PER_BLOCK"`
	AprPercentMultiplyPerHour      string      `json:"STEEMIT_APR_PERCENT_MULTIPLY_PER_HOUR"`
	AprPercentMultiplyPerRound     string      `json:"STEEMIT_APR_PERCENT_MULTIPLY_PER_ROUND"`
	AprPercentShiftPerBlock        types.Int   `json:"STEEMIT_APR_PERCENT_SHIFT_PER_BLOCK"`
	AprPercentShiftPerHour         types.Int   `json:"STEEMIT_APR_PERCENT_SHIFT_PER_HOUR"`
	AprPercentShiftPerRound        types.Int   `json:"STEEMIT_APR_PERCENT_SHIFT_PER_ROUND"`
	BandwidthAverageWindowSeconds  types.Int   `json:"STEEMIT_BANDWIDTH_AVERAGE_WINDOW_SECONDS"`
	BandwidthPrecision             types.Int   `json:"STEEMIT_BANDWIDTH_PRECISION"`
	BlockchainPrecision            types.Int   `json:"STEEMIT_BLOCKCHAIN_PRECISION"`
	BlockchainPrecisionDigits      types.Int   `json:"STEEMIT_BLOCKCHAIN_PRECISION_DIGITS"`
	BlockchainHardforkVersion      string      `json:"STEEMIT_BLOCKCHAIN_HARDFORK_VERSION"`
	BlockchainVersion              string      `json:"STEEMIT_BLOCKCHAIN_VERSION"`
	BlockInterval                  uint        `json:"STEEMIT_BLOCK_INTERVAL"`
	BlocksPerDay                   types.Int   `json:"STEEMIT_BLOCKS_PER_DAY"`
	BlocksPerHour                  types.Int   `json:"STEEMIT_BLOCKS_PER_HOUR"`
	BlocksPerYear                  types.Int   `json:"STEEMIT_BLOCKS_PER_YEAR"`
	CashoutWindowSeconds           types.Int   `json:"STEEMIT_CASHOUT_WINDOW_SECONDS"`
	ChainID                        string      `json:"STEEMIT_CHAIN_ID"`
	ContentAprPercent              types.Int   `json:"STEEMIT_CONTENT_APR_PERCENT"`
	ConversionDelay                string      `json:"STEEMIT_CONVERSION_DELAY"`
	CurateAprPercent               types.Int   `json:"STEEMIT_CURATE_APR_PERCENT"`
	DefaultSbdInterestRate         types.Int   `json:"STEEMIT_DEFAULT_SBD_INTEREST_RATE"`
	FeedHistoryWindow              types.Int   `json:"STEEMIT_FEED_HISTORY_WINDOW"`
	FeedIntervalBlocks             types.Int   `json:"STEEMIT_FEED_INTERVAL_BLOCKS"`
	FreeTransactionsWithNewAccount types.Int   `json:"STEEMIT_FREE_TRANSACTIONS_WITH_NEW_ACCOUNT"`
	GenesisTime                    string      `json:"STEEMIT_GENESIS_TIME"`
	HardforkRequiredWitnesses      types.Int   `json:"STEEMIT_HARDFORK_REQUIRED_WITNESSES"`
	InitMinerName                  string      `json:"STEEMIT_INIT_MINER_NAME"`
	InitPublicKeyStr               string      `json:"STEEMIT_INIT_PUBLIC_KEY_STR"`
	InitSupply                     types.Int   `json:"STEEMIT_INIT_SUPPLY"`
	InitTime                       string      `json:"STEEMIT_INIT_TIME"`
	IrreversibleThreshold          types.Int   `json:"STEEMIT_IRREVERSIBLE_THRESHOLD"`
	LiquidityAprPercent            types.Int   `json:"STEEMIT_LIQUIDITY_APR_PERCENT"`
	LiquidityRewardBlocks          types.Int   `json:"STEEMIT_LIQUIDITY_REWARD_BLOCKS"`
	LiquidityRewardPeriodSec       types.Int   `json:"STEEMIT_LIQUIDITY_REWARD_PERIOD_SEC"`
	LiquidityTimeoutSec            string      `json:"STEEMIT_LIQUIDITY_TIMEOUT_SEC"`
	MaxAccountNameLength           types.Int   `json:"STEEMIT_MAX_ACCOUNT_NAME_LENGTH"`
	MaxAccountWitnessVotes         types.Int   `json:"STEEMIT_MAX_ACCOUNT_WITNESS_VOTES"`
	MaxAssetWhitelistAuthorities   types.Int   `json:"STEEMIT_MAX_ASSET_WHITELIST_AUTHORITIES"`
	MaxAuthorityMembership         types.Int   `json:"STEEMIT_MAX_AUTHORITY_MEMBERSHIP"`
	MaxBlockSize                   types.Int   `json:"STEEMIT_MAX_BLOCK_SIZE"`
	MaxCashoutWindowSeconds        types.Int   `json:"STEEMIT_MAX_CASHOUT_WINDOW_SECONDS"`
	MaxCommentDepth                types.Int   `json:"STEEMIT_MAX_COMMENT_DEPTH"`
	MaxFeedAge                     types.Int   `json:"STEEMIT_MAX_FEED_AGE"`
	MaxInstanceID                  string      `json:"STEEMIT_MAX_INSTANCE_ID"`
	MaxMemoSize                    types.Int   `json:"STEEMIT_MAX_MEMO_SIZE"`
	MaxWitnesses                   types.Int   `json:"STEEMIT_MAX_WITNESSES"`
	MaxMinerWitnesses              types.Int   `json:"STEEMIT_MAX_MINER_WITNESSES"`
	MaxProxyRecursionDepth         types.Int   `json:"STEEMIT_MAX_PROXY_RECURSION_DEPTH"`
	MaxRationDecayRate             types.Int   `json:"STEEMIT_MAX_RATION_DECAY_RATE"`
	MaxReserveRatio                types.Int   `json:"STEEMIT_MAX_RESERVE_RATIO"`
	MaxRunnerWitnesses             types.Int   `json:"STEEMIT_MAX_RUNNER_WITNESSES"`
	MaxShareSupply                 string      `json:"STEEMIT_MAX_SHARE_SUPPLY"`
	MaxSigCheckDepth               types.Int   `json:"STEEMIT_MAX_SIG_CHECK_DEPTH"`
	MaxTimeUntilExpiration         types.Int   `json:"STEEMIT_MAX_TIME_UNTIL_EXPIRATION"`
	MaxTransactionSize             types.Int   `json:"STEEMIT_MAX_TRANSACTION_SIZE"`
	MaxUndoHistory                 types.Int   `json:"STEEMIT_MAX_UNDO_HISTORY"`
	MaxURLLength                   types.Int   `json:"STEEMIT_MAX_URL_LENGTH"`
	MaxVoteChanges                 types.Int   `json:"STEEMIT_MAX_VOTE_CHANGES"`
	MaxVotedWitnesses              types.Int   `json:"STEEMIT_MAX_VOTED_WITNESSES"`
	MaxWithdrawRoutes              types.Int   `json:"STEEMIT_MAX_WITHDRAW_ROUTES"`
	MaxWitnessURLLength            types.Int   `json:"STEEMIT_MAX_WITNESS_URL_LENGTH"`
	MinAccountCreationFee          types.Int   `json:"STEEMIT_MIN_ACCOUNT_CREATION_FEE"`
	MinAccountNameLength           types.Int   `json:"STEEMIT_MIN_ACCOUNT_NAME_LENGTH"`
	MinBlockSizeLimit              types.Int   `json:"STEEMIT_MIN_BLOCK_SIZE_LIMIT"`
	MinContentReward               types.Asset `json:"STEEMIT_MIN_CONTENT_REWARD"`
	MinCurateReward                types.Asset `json:"STEEMIT_MIN_CURATE_REWARD"`
	MinerAccount                   string      `json:"STEEMIT_MINER_ACCOUNT"`
	MinerPayPercent                types.Int   `json:"STEEMIT_MINER_PAY_PERCENT"`
	MinFeeds                       types.Int   `json:"STEEMIT_MIN_FEEDS"`
	MiningReward                   types.Asset `json:"STEEMIT_MINING_REWARD"`
	MiningTime                     string      `json:"STEEMIT_MINING_TIME"`
	MinLiquidityReward             types.Asset `json:"STEEMIT_MIN_LIQUIDITY_REWARD"`
	MinLiquidityRewardPeriodSec    types.Int   `json:"STEEMIT_MIN_LIQUIDITY_REWARD_PERIOD_SEC"`
	MinPayoutSbd                   types.Asset `json:"STEEMIT_MIN_PAYOUT_SBD"`
	MinPowReward                   types.Asset `json:"STEEMIT_MIN_POW_REWARD"`
	MinProducerReward              types.Asset `json:"STEEMIT_MIN_PRODUCER_REWARD"`
	MinRation                      types.Int   `json:"STEEMIT_MIN_RATION"`
	MinTransactionExpirationLimit  types.Int   `json:"STEEMIT_MIN_TRANSACTION_EXPIRATION_LIMIT"`
	MinTransactionSizeLimit        types.Int   `json:"STEEMIT_MIN_TRANSACTION_SIZE_LIMIT"`
	MinUndoHistory                 types.Int   `json:"STEEMIT_MIN_UNDO_HISTORY"`
	NullAccount                    string      `json:"STEEMIT_NULL_ACCOUNT"`
	NumInitMiners                  types.Int   `json:"STEEMIT_NUM_INIT_MINERS"`
	PowAprPercent                  types.Int   `json:"STEEMIT_POW_APR_PERCENT"`
	ProducerAprPercent             types.Int   `json:"STEEMIT_PRODUCER_APR_PERCENT"`
	ProxyToSelfAccount             string      `json:"STEEMIT_PROXY_TO_SELF_ACCOUNT"`
	SbdInterestCompoundIntervalSec types.Int   `json:"STEEMIT_SBD_INTEREST_COMPOUND_INTERVAL_SEC"`
	SecondsPerYear                 types.Int   `json:"STEEMIT_SECONDS_PER_YEAR"`
	ReverseAuctionWindowSeconds    types.Int   `json:"STEEMIT_REVERSE_AUCTION_WINDOW_SECONDS"`
	StartMinerVotingBlock          types.Int   `json:"STEEMIT_START_MINER_VOTING_BLOCK"`
	StartVestingBlock              types.Int   `json:"STEEMIT_START_VESTING_BLOCK"`
	Symbol                         string      `json:"STEEMIT_SYMBOL"`
	TempAccount                    string      `json:"STEEMIT_TEMP_ACCOUNT"`
	UpvoteLockout                  types.Int   `json:"STEEMIT_UPVOTE_LOCKOUT"`
	VestingWithdrawIntervals       types.Int   `json:"STEEMIT_VESTING_WITHDRAW_INTERVALS"`
	VestingWithdrawIntervalSeconds types.Int   `json:"STEEMIT_VESTING_WITHDRAW_INTERVAL_SECONDS"`
	VoteChangeLockoutPeriod        types.Int   `json:"STEEMIT_VOTE_CHANGE_LOCKOUT_PERIOD"`
	VoteRegenerationSeconds        int         `json:"STEEMIT_VOTE_REGENERATION_SECONDS"`
	SteemSymbol                    string      `json:"STEEM_SYMBOL"`
	VestsSymbol                    string      `json:"VESTS_SYMBOL"`
	BlockchainName                 string      `json:"BLOCKCHAIN_NAME"`
}

Config structure for the GetConfig function.

type ConversionRequests

type ConversionRequests struct {
	ID             types.Int   `json:"id"`
	Owner          string      `json:"owner"`
	Requestid      uint32      `json:"requestid"`
	Amount         types.Asset `json:"amount"`
	ConversionDate types.Time  `json:"conversion_date"`
}

ConversionRequests structure for the GetConversionRequests function.

type DatabaseInfo

type DatabaseInfo struct {
	TotalSize    string              `json:"total_size"`
	FreeSize     string              `json:"free_size"`
	ReservedSize uint64              `json:"reserved_size"`
	UsedSize     string              `json:"used_size"`
	IndexList    []DatabaseInfoIndex `json:"index_list"`
}

DatabaseInfo structure for the GetDatabaseInfo function.

type DatabaseInfoIndex

type DatabaseInfoIndex struct {
	Name        string `json:"name"`
	RecordCount uint64 `json:"record_count"`
}

DatabaseInfoIndex additional structure for the function GetDatabaseInfo.

type Discussion

type Discussion struct {
	CommentData

	PendingAuthorPayoutValue          types.Asset   `json:"pending_author_payout_value"`
	PendingAuthorPayoutGBGValue       types.Asset   `json:"pending_author_payout_gbg_value"`
	PendingAuthorPayoutGestsValue     types.Asset   `json:"pending_author_payout_gests_value"`
	PendingAuthorPayoutGolosValue     types.Asset   `json:"pending_author_payout_golos_value"`
	PendingBenefactorPayoutValue      types.Asset   `json:"pending_benefactor_payout_value"`
	PendingBenefactorPayoutGestsValue types.Asset   `json:"pending_benefactor_payout_gests_value"`
	PendingCuratorPayoutValue         types.Asset   `json:"pending_curator_payout_value"`
	PendingCuratorPayoutGestsValue    types.Asset   `json:"pending_curator_payout_gests_value"`
	PendingPayoutValue                types.Asset   `json:"pending_payout_value"`
	TotalPendingPayoutValue           types.Asset   `json:"total_pending_payout_value"`
	ActiveVotes                       []VoteState   `json:"active_votes"`
	ActiveVotesCount                  uint32        `json:"active_votes_count"`
	Replies                           []string      `json:"replies"`
	AuthorReputation                  int64         `json:"author_reputation"`
	Promoted                          types.Asset   `json:"promoted"`
	Hot                               float64       `json:"hot"`
	Trending                          float64       `json:"trending"`
	BodyLength                        uint32        `json:"body_length"`
	RebloggedBy                       []string      `json:"reblogged_by"`
	FirstRebloggedBy                  string        `json:"first_reblogged_by"`
	FirstRebloggedOn                  types.Time    `json:"first_reblogged_on"`
	ReblogAuthor                      string        `json:"reblog_author"`
	ReblogTitle                       string        `json:"reblog_title"`
	ReblogBody                        string        `json:"reblog_body"`
	ReblogJSONMetadata                string        `json:"reblog_json_metadata"`
	ReblogEntries                     []ReblogEntry `json:"reblog_entries"`
	// contains filtered or unexported fields
}

Discussion structure for the GetAllContentReplies, GetContent, GetContentReplies and GetRepliesByLastUpdate function.

type DiscussionQuery

type DiscussionQuery struct {
	Limit            uint32   `json:"limit,omitempty"`
	SelectTags       []string `json:"select_tags,omitempty"`
	FilterTags       []string `json:"filter_tags,omitempty"`
	SelectCategories []string `json:"select_categories,omitempty"`
	SelectLanguages  []string `json:"select_languages,omitempty"`
	FilterLanguages  []string `json:"filter_languages,omitempty"`
	TruncateBody     uint32   `json:"truncate_body,omitempty"`
	VoteLimit        uint32   `json:"vote_limit,omitempty"`
	VoteOffset       uint32   `json:"vote_offset,omitempty"`
	SelectAuthors    []string `json:"select_authors,omitempty"`
	StartAuthor      string   `json:"start_author,omitempty"`
	StartPermlink    string   `json:"start_permlink,omitempty"`
	ParentAuthor     string   `json:"parent_author,omitempty"`
	ParentPermlink   string   `json:"parent_permlink,omitempty"`
}

DiscussionQuery structure used in queries.

type DynamicGlobalProperties

type DynamicGlobalProperties struct {
	ID                           types.Int     `json:"id"`
	HeadBlockNumber              uint32        `json:"head_block_number"`
	HeadBlockID                  string        `json:"head_block_id"`
	Time                         types.Time    `json:"time"`
	CurrentWitness               string        `json:"current_witness"`
	TotalPow                     uint64        `json:"total_pow"`
	NumPowWitnesses              uint32        `json:"num_pow_witnesses"`
	VirtualSupply                types.Asset   `json:"virtual_supply"`
	CurrentSupply                types.Asset   `json:"current_supply"`
	ConfidentialSupply           types.Asset   `json:"confidential_supply"`
	CurrentSBDSupply             types.Asset   `json:"current_sbd_supply"`
	ConfidentialSBDSupply        types.Asset   `json:"confidential_sbd_supply"`
	TotalVersingFund             types.Asset   `json:"total_vesting_fund_steem"`
	TotalVestingShares           types.Asset   `json:"total_vesting_shares"`
	TotalRewardFund              types.Asset   `json:"total_reward_fund_steem"`
	TotalRewardShares2           string        `json:"total_reward_shares2"`
	SBDInterestRate              uint16        `json:"sbd_interest_rate"`
	SBDPrintRate                 uint16        `json:"sbd_print_rate"`
	SBDDebtPercent               uint16        `json:"sbd_debt_percent"`
	IsForcedMinPrice             bool          `json:"is_forced_min_price"`
	AverageBlockSize             uint32        `json:"average_block_size"`
	MaximumBlockSize             uint32        `json:"maximum_block_size"`
	CurrentAslot                 uint64        `json:"current_aslot"`
	RecentSlotsFilled            string        `json:"recent_slots_filled"`
	ParticipationCount           uint8         `json:"participation_count"`
	LastIrreversibleBlockNum     uint32        `json:"last_irreversible_block_num"`
	MaxVirtualBandwidth          string        `json:"max_virtual_bandwidth"`
	CurrentReserveRatio          uint64        `json:"current_reserve_ratio"`
	CustomOpsBandwidthMultiplier uint16        `json:"custom_ops_bandwidth_multiplier"`
	TransitBlockNum              uint32        `json:"transit_block_num"`
	TransitWitnesses             string        `json:"transit_witnesses"`
	WorkerRequests               []interface{} `json:"worker_requests"`
}

DynamicGlobalProperties structure for the GetDynamicGlobalProperties function.

type Escrow

type Escrow struct {
	ID                   types.Int   `json:"id"`
	EscrowID             uint32      `json:"escrow_id"`
	From                 string      `json:"from"`
	To                   string      `json:"to"`
	Agent                string      `json:"agent"`
	RatificationDeadline types.Time  `json:"ratification_deadline"`
	EscrowExpiration     types.Time  `json:"escrow_expiration"`
	SbdBalance           types.Asset `json:"sbd_balance"`
	SteemBalance         types.Asset `json:"steem_balance"`
	Fee                  types.Asset `json:"pending_fee"`
	ToApproved           bool        `json:"to_approved"`
	AgentApproved        bool        `json:"agent_approved"`
	Disputed             bool        `json:"disputed"`
	IsApproved           bool        `json:"is_approved"`
}

Escrow structure for the GetEscrow function.

type FeedEntry

type FeedEntry struct {
	Author        string        `json:"author"`
	Permlink      string        `json:"permlink"`
	ReblogBy      []string      `json:"reblog_by"`
	ReblogEntries []ReblogEntry `json:"reblog_entries"`
	ReblogOn      types.Time    `json:"reblog_on"`
	EntryID       uint32        `json:"entry_id"`
}

FeedEntry structure for the GetFeedEntries function

type FeedHistory

type FeedHistory struct {
	ID                   types.Int `json:"id"`
	CurrentMedianHistory Prices    `json:"current_median_history"`
	PriceHistory         []Prices  `json:"price_history"`
}

FeedHistory structure for the GetFeedHistory function.

type Feeds

type Feeds struct {
	Comment       CommentData   `json:"comment"`
	ReblogBy      []string      `json:"reblog_by"`
	ReblogEntries []ReblogEntry `json:"reblog_entries"`
	ReblogOn      types.Time    `json:"reblog_on"`
	EntryID       uint32        `json:"entry_id"`
}

Feeds structure for the GetFeed function

type FollowCount

type FollowCount struct {
	Account        string `json:"account"`
	FollowerCount  uint32 `json:"follower_count"`
	FollowingCount uint32 `json:"following_count"`
	Limit          uint32 `json:"limit"`
}

FollowCount structure for the GetFollowCount function

type FollowObject

type FollowObject struct {
	Follower  string   `json:"follower"`
	Following string   `json:"following"`
	What      []uint32 `json:"what"`
}

FollowObject structure for the GetFollowers and GetFollowing functions

type MarketHistory

type MarketHistory struct {
	ID          types.Int  `json:"id"`
	Open        types.Time `json:"open"`
	Seconds     uint32     `json:"seconds"`
	HighSteem   int64      `json:"high_steem"`
	HighSbd     int64      `json:"high_sbd"`
	LowSteem    int64      `json:"low_steem"`
	LowSbd      int64      `json:"low_sbd"`
	OpenSteem   int64      `json:"open_steem"`
	OpenSbd     int64      `json:"open_sbd"`
	CloseSteem  int64      `json:"close_steem"`
	CloseSbd    int64      `json:"close_sbd"`
	SteemVolume int64      `json:"steem_volume"`
	SbdVolume   int64      `json:"sbd_volume"`
}

MarketHistory structure for the GetMarketHistory function.

type Message

type Message struct {
	ID               types.Int  `json:"id"`
	From             string     `json:"from"`
	To               string     `json:"to"`
	Nonce            uint64     `json:"nonce"`
	FromMemoKey      string     `json:"from_memo_key"`
	ToMemoKey        string     `json:"to_memo_key"`
	Checksum         uint32     `json:"checksum"`
	EncryptedMessage string     `json:"encrypted_message"`
	CreateDate       types.Time `json:"create_date"`
	ReceiveDate      types.Time `json:"receive_date"`
	ReadDate         types.Time `json:"read_date"`
	RemoveDate       types.Time `json:"remove_date"`
}

Message structure for the GetInbox, GetOutbox and GetThread functions.

type MessageContact

type MessageContact struct {
	Owner        string `json:"owner"`
	Contact      string `json:"contact"`
	JsonMetadata string `json:"json_metadata"`
	LocalType    string `json:"local_type"`
	RemoteType   string `json:"remote_type"`
	Size         uint32 `json:"size"`
}

MessageContact structure for the GetContactInfo and GetContacts functions.

type MessageSettings

type MessageSettings struct {
	IgnoreMessagesFromUnknownContact bool `json:"ignore_messages_from_unknown_contact"`
}

MessageSettings structure for the GetSettings function.

type NextScheduledHardfork

type NextScheduledHardfork struct {
	HfVersion string     `json:"hf_version"`
	LiveTime  types.Time `json:"live_time"`
}

NextScheduledHardfork structure for the GetNextScheduledHardfork function.

type OpenOrders

type OpenOrders struct {
	ID         types.Int  `json:"id"`
	Created    types.Time `json:"created"`
	Expiration types.Time `json:"expiration"`
	Seller     string     `json:"seller"`
	Orderid    uint32     `json:"orderid"`
	ForSale    int64      `json:"for_sale"`
	SellPrice  Prices     `json:"sell_price"`
	RealPrice  float64    `json:"real_price"`
	Rewarded   bool       `json:"rewarded"`
}

OpenOrders structure for the GetOpenOrders function.

type Order

type Order struct {
	Price float64 `json:"price"`
	Steem int64   `json:"steem"`
	Sbd   int64   `json:"sbd"`
}

Order additional structure for the function OrderBook.

type OrderBook

type OrderBook struct {
	Ask []Order `json:"asks"`
	Bid []Order `json:"bids"`
}

OrderBook structure for the GetOrderBook function.

type OrderBookExtended

type OrderBookExtended struct {
	Ask []OrderExtended `json:"asks"`
	Bid []OrderExtended `json:"bids"`
}

OrderBookExtended structure for the GetOrderBookExtended function.

type OrderExtended

type OrderExtended struct {
	Price     Prices     `json:"price"`
	RealPrice float64    `json:"real_price"`
	Steem     int64      `json:"steem"`
	Sbd       int64      `json:"sbd"`
	Created   types.Time `json:"created"`
}

OrderExtended additional structure for the function OrderBookExtended.

type OwnerHistory

type OwnerHistory struct {
	ID                     types.Int       `json:"id"`
	Account                string          `json:"account"`
	PreviousOwnerAuthority types.Authority `json:"previous_owner_authority"`
	LastValidTime          string          `json:"last_valid_time"`
}

OwnerHistory structure for the GetOwnerHistory function.

type Prices

type Prices struct {
	Base  types.Asset `json:"base"`
	Quote types.Asset `json:"quote"`
}

Price additional structure for the function GetOpenOrders.

type ProposalObject

type ProposalObject struct {
	Author                    string                `json:"author"`
	Title                     string                `json:"title"`
	Memo                      string                `json:"memo"`
	ExpirationTime            types.Time            `json:"expiration_time"`
	ReviewPeriodTime          types.Time            `json:"review_period_time,omitempty"`
	ProposedOperations        operations.Operations `json:"proposed_operations"`
	RequiredActiveApprovals   []string              `json:"required_active_approvals"`
	AvailableActiveApprovals  []string              `json:"available_active_approvals"`
	RequiredOwnerApprovals    []string              `json:"required_owner_approvals"`
	AvailableOwnerApprovals   []string              `json:"available_owner_approvals"`
	RequiredPostingApprovals  []string              `json:"required_posting_approvals"`
	AvailablePostingApprovals []string              `json:"available_posting_approvals"`
	AvailableKeyApprovals     []string              `json:"available_key_approvals"`
}

ProposalObject structure for the GetProposedTransaction function.

type ReblogEntry

type ReblogEntry struct {
	Author       string `json:"author"`
	Title        string `json:"title"`
	Body         string `json:"body"`
	JSONMetadata string `json:"json_metadata"`
}

ReblogEntry additional structure for the function Feeds, FeedEntry.

type SavingsWithdraw

type SavingsWithdraw struct {
	ID        types.Int   `json:"id"`
	From      string      `json:"from"`
	To        string      `json:"to"`
	Memo      string      `json:"memo"`
	RequestID uint32      `json:"request_id"`
	Amount    types.Asset `json:"amount"`
	Complete  types.Time  `json:"complete"`
}

SavingsWithdraw structure for the GetSavingsWithdrawFrom and GetSavingsWithdrawTo functions.

type Ticker

type Ticker struct {
	Latest        float64     `json:"latest"`
	LowestAsk     float64     `json:"lowest_ask"`
	HighestBid    float64     `json:"highest_bid"`
	PercentChange float64     `json:"percent_change"`
	SteemVolume   types.Asset `json:"steem_volume"`
	SbdVolume     types.Asset `json:"sbd_volume"`
}

Ticker structure for the GetTicker function.

type Trades

type Trades struct {
	Date        types.Time  `json:"date"`
	CurrentPays types.Asset `json:"current_pays"`
	OpenPays    types.Asset `json:"open_pays"`
}

Trades structure for the GetRecentTrades and GetTradeHistory functions.

type TrendingTags

type TrendingTags struct {
	Name                  string      `json:"name"`
	TotalChildrenRshares2 float64     `json:"total_children_rshares2"`
	TotalPayouts          types.Asset `json:"total_payouts"`
	NetVotes              int32       `json:"net_votes"`
	TopPosts              uint32      `json:"top_posts"`
	Comments              uint32      `json:"comments"`
}

TrendingTags structure for the GetTrendingTags function.

type VestingDelegation

type VestingDelegation struct {
	ID                types.Int   `json:"id"`
	Delegator         string      `json:"delegator"`
	Delegatee         string      `json:"delegatee"`
	VestingShares     types.Asset `json:"vesting_shares"`
	InterestRate      uint16      `json:"interest_rate"`
	MinDelegationTime types.Time  `json:"min_delegation_time"`
}

VestingDelegation structure for the GetVestingDelegations function.

type VestingDelegationExpiration

type VestingDelegationExpiration struct {
	ID            types.Int   `json:"id"`
	Delegator     string      `json:"delegator"`
	VestingShares types.Asset `json:"vesting_shares"`
	Expiration    types.Time  `json:"expiration"`
}

VestingDelegationExpiration structure for the GetExpiringVestingDelegations function.

type Volume

type Volume struct {
	SteemVolume types.Asset `json:"steem_volume"`
	SbdVolume   types.Asset `json:"sbd_volume"`
}

Volume structure for the GetVolume function.

type VoteState

type VoteState struct {
	Voter      string     `json:"voter"`
	Weight     uint64     `json:"weight"`
	Rshares    int64      `json:"rshares"`
	Percent    int16      `json:"percent"`
	Reputation int64      `json:"reputation"`
	Time       types.Time `json:"time"`
}

VoteState additional structure for the functions GetDiscussionsByActive, GetDiscussionsByAuthorBeforeDate, GetDiscussionsByBlog, GetDiscussionsByCashout, GetDiscussionsByChildren, GetDiscussionsByComments, GetDiscussionsByCreated, GetDiscussionsByFeed, GetDiscussionsByHot, GetDiscussionsByPayout, GetDiscussionsByPromoted, GetDiscussionsByTrending and GetDiscussionsByVotes.

type Votes

type Votes struct {
	Authorperm string     `json:"authorperm"`
	Weight     uint64     `json:"weight"`
	Rshares    int64      `json:"rshares"`
	Percent    int16      `json:"percent"`
	Time       types.Time `json:"time"`
}

Votes structure for the GetAccountVotes function.

type WithdrawVestingRoutes

type WithdrawVestingRoutes struct {
	FromAccount string `json:"from_account"`
	ToAccount   string `json:"to_account"`
	Percent     uint16 `json:"percent"`
	AutoVest    bool   `json:"auto_vest"`
}

WithdrawVestingRoutes structure for the GetWithdrawRoutes function.

type Witness

type Witness struct {
	ID                    types.Int             `json:"id"`
	Owner                 string                `json:"owner"`
	Created               types.Time            `json:"created"`
	URL                   string                `json:"url"`
	Votes                 int64                 `json:"votes"`
	VirtualLastUpdate     types.UInt64          `json:"virtual_last_update"`
	VirtualPosition       types.UInt64          `json:"virtual_position"`
	VirtualScheduledTime  types.UInt64          `json:"virtual_scheduled_time"`
	TotalMissed           uint32                `json:"total_missed"`
	LastAslot             uint64                `json:"last_aslot"`
	LastConfirmedBlockNum uint64                `json:"last_confirmed_block_num"`
	PowWorker             uint64                `json:"pow_worker"`
	SigningKey            string                `json:"signing_key"`
	Props                 types.ChainProperties `json:"props"`
	SbdExchangeRate       Prices                `json:"sbd_exchange_rate"`
	LastSbdExchangeUpdate types.Time            `json:"last_sbd_exchange_update"`
	LastWork              string                `json:"last_work"`
	RunningVersion        string                `json:"running_version"`
	HardforkVersionVote   string                `json:"hardfork_version_vote"`
	HardforkTimeVote      types.Time            `json:"hardfork_time_vote"`
	TransitToCyberwayVote types.Time            `json:"transit_to_cyberway_vote"`
}

Witness structure for the GetWitnessByAccount, GetWitnesses and GetWitnessByVote function.

type WitnessSchedule

type WitnessSchedule struct {
	ID                            types.Int             `json:"id"`
	CurrentVirtualTime            types.UInt64          `json:"current_virtual_time"`
	NextShuffleBlockNum           uint32                `json:"next_shuffle_block_num"`
	CurrentShuffledWitnesses      string                `json:"current_shuffled_witnesses"`
	NumScheduledWitnesses         uint8                 `json:"num_scheduled_witnesses"`
	Top19Weight                   uint8                 `json:"top19_weight"`
	TimeshareWeight               uint8                 `json:"timeshare_weight"`
	MinerWeight                   uint8                 `json:"miner_weight"`
	WitnessPayNormalizationFactor uint32                `json:"witness_pay_normalization_factor"`
	MedianProps                   types.ChainProperties `json:"median_props"`
	MajorityVersion               string                `json:"majority_version"`
}

WitnessSchedule structure for the GetWitnessSchedule function.

type WorkerRequestQuery

type WorkerRequestQuery struct {
	Limit         uint32   `json:"limit"`
	StartAuthor   []string `json:"start_author,omitempty"`
	StartPermlink []string `json:"start_permlink,omitempty"`
	SelectAuthors []string `json:"select_authors"`
	SelectStates  []int8   `json:"select_states"`
}

type WorkerRequests

type WorkerRequests struct {
	Post              string      `json:"post"`
	Worker            string      `json:"worker"`
	State             int8        `json:"state"`
	Created           types.Time  `json:"created"`
	Modified          types.Time  `json:"modified"`
	NetRshares        int64       `json:"net_rshares"`
	RequiredAmountMin types.Asset `json:"required_amount_min"`
	RequiredAmountMax types.Asset `json:"required_amount_max"`
	VestReward        bool        `json:"vest_reward"`
	Duration          uint32      `json:"duration"`
	VoteEndTime       types.Time  `json:"vote_end_time"`
	CreationFee       types.Asset `json:"creation_fee"`
	Upvotes           uint16      `json:"upvotes"`
	Downvotes         uint16      `json:"downvotes"`
	StakeRshares      int64       `json:"stake_rshares"`
	StakeTotal        int64       `json:"stake_total"`
	RemainingPayment  types.Asset `json:"remaining_payment"`
}

WorkerRequests structure for the GetWorkerRequests function.

type WorkerVotes

type WorkerVotes struct {
	ID          types.Int `json:"id"`
	Voter       string    `json:"voter"`
	Post        string    `json:"post"`
	VotePercent int16     `json:"vote_percent"`
	Rshares     int64     `json:"rshares"`
	Stake       int64     `json:"stake"`
}

WorkerVotes structure for the GetWorkerRequestVotes function.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL