pub struct DatabaseApi { /* private fields */ }Implementations§
Source§impl DatabaseApi
impl DatabaseApi
pub async fn get_accounts( &self, accounts: &[&str], ) -> Result<Vec<ExtendedAccount>>
pub async fn get_account_count(&self) -> Result<u64>
pub async fn get_account_history( &self, account: &str, start: i64, limit: u32, ) -> Result<Vec<AccountHistoryEntry>>
pub async fn get_account_reputations( &self, account_lower_bound: &str, limit: u32, ) -> Result<Vec<AccountReputation>>
pub async fn get_owner_history( &self, account: &str, ) -> Result<Vec<OwnerHistory>>
pub async fn get_recovery_request( &self, account: &str, ) -> Result<Option<RecoveryRequest>>
pub async fn get_content(&self, author: &str, permlink: &str) -> Result<Comment>
pub async fn get_content_replies( &self, author: &str, permlink: &str, ) -> Result<Vec<Comment>>
pub async fn get_discussions( &self, by: DiscussionQueryCategory, query: &DiscussionQuery, ) -> Result<Vec<Discussion>>
pub async fn get_active_votes( &self, author: &str, permlink: &str, ) -> Result<Vec<ActiveVote>>
pub async fn get_dynamic_global_properties( &self, ) -> Result<DynamicGlobalProperties>
pub async fn get_chain_properties(&self) -> Result<Value>
pub async fn get_feed_history(&self) -> Result<FeedHistory>
pub async fn get_current_median_history_price(&self) -> Result<Price>
pub async fn get_hardfork_version(&self) -> Result<String>
pub async fn get_next_scheduled_hardfork(&self) -> Result<ScheduledHardfork>
pub async fn get_reward_fund(&self, name: &str) -> Result<RewardFund>
pub async fn get_config(&self) -> Result<Value>
pub async fn get_version(&self) -> Result<Version>
pub async fn get_active_witnesses(&self) -> Result<Vec<String>>
pub async fn get_witness_by_account( &self, account: &str, ) -> Result<Option<Witness>>
pub async fn get_vesting_delegations( &self, account: &str, from: &str, limit: u32, ) -> Result<Vec<VestingDelegation>>
pub async fn get_expiring_vesting_delegations( &self, account: &str, from: &str, limit: u32, ) -> Result<Vec<ExpiringVestingDelegation>>
pub async fn get_order_book(&self, limit: u32) -> Result<OrderBook>
pub async fn get_open_orders(&self, account: &str) -> Result<Vec<OpenOrder>>
pub async fn get_recent_trades(&self, limit: u32) -> Result<Vec<MarketTrade>>
pub async fn get_market_history( &self, bucket_seconds: u32, start: &str, end: &str, ) -> Result<Vec<MarketBucket>>
pub async fn get_market_history_buckets(&self) -> Result<Vec<u32>>
pub async fn get_savings_withdraw_from( &self, account: &str, ) -> Result<Vec<SavingsWithdraw>>
pub async fn get_savings_withdraw_to( &self, account: &str, ) -> Result<Vec<SavingsWithdraw>>
pub async fn get_conversion_requests(&self, account: &str) -> Result<Vec<Value>>
pub async fn get_collateralized_conversion_requests( &self, account: &str, ) -> Result<Vec<CollateralizedConversionRequest>>
pub async fn get_followers( &self, account: &str, start_follower: &str, follow_type: &str, limit: u32, ) -> Result<Vec<FollowEntry>>
pub async fn get_following( &self, account: &str, start_following: &str, follow_type: &str, limit: u32, ) -> Result<Vec<FollowEntry>>
pub async fn get_follow_count(&self, account: &str) -> Result<FollowCount>
pub async fn get_reblogged_by( &self, author: &str, permlink: &str, ) -> Result<Vec<String>>
pub async fn get_blog( &self, account: &str, start_entry_id: u32, limit: u32, ) -> Result<Vec<Discussion>>
pub async fn get_blog_entries( &self, account: &str, start_entry_id: u32, limit: u32, ) -> Result<Vec<Value>>
pub async fn get_potential_signatures( &self, transaction: &SignedTransaction, ) -> Result<Vec<String>>
pub async fn get_required_signatures( &self, transaction: &SignedTransaction, available_keys: &[String], ) -> Result<Vec<String>>
pub async fn get_key_references( &self, keys: &[String], ) -> Result<Vec<Vec<String>>>
pub async fn get_escrow( &self, from: &str, escrow_id: u32, ) -> Result<Option<Escrow>>
pub async fn find_proposals( &self, proposal_ids: &[i64], ) -> Result<Vec<Proposal>>
pub async fn list_proposals( &self, start: Value, limit: u32, order_by: &str, order_direction: &str, status: &str, ) -> Result<Vec<Proposal>>
pub async fn find_recurrent_transfers( &self, account: &str, ) -> Result<Vec<RecurrentTransfer>>
pub async fn get_ops_in_block( &self, block_num: u32, only_virtual: bool, ) -> Result<Vec<AppliedOperation>>
pub async fn get_operations( &self, block_num: u32, ) -> Result<Vec<AppliedOperation>>
pub async fn get_block(&self, block_num: u32) -> Result<Option<SignedBlock>>
pub async fn get_block_header( &self, block_num: u32, ) -> Result<Option<BlockHeader>>
Trait Implementations§
Source§impl Clone for DatabaseApi
impl Clone for DatabaseApi
Source§fn clone(&self) -> DatabaseApi
fn clone(&self) -> DatabaseApi
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DatabaseApi
impl !RefUnwindSafe for DatabaseApi
impl Send for DatabaseApi
impl Sync for DatabaseApi
impl Unpin for DatabaseApi
impl UnsafeUnpin for DatabaseApi
impl !UnwindSafe for DatabaseApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more