Skip to main content

DatabaseApi

Struct DatabaseApi 

Source
pub struct DatabaseApi { /* private fields */ }

Implementations§

Source§

impl DatabaseApi

Source

pub async fn get_accounts( &self, accounts: &[&str], ) -> Result<Vec<ExtendedAccount>>

Source

pub async fn get_account_count(&self) -> Result<u64>

Source

pub async fn get_account_history( &self, account: &str, start: i64, limit: u32, ) -> Result<Vec<AccountHistoryEntry>>

Source

pub async fn get_account_reputations( &self, account_lower_bound: &str, limit: u32, ) -> Result<Vec<AccountReputation>>

Source

pub async fn get_owner_history( &self, account: &str, ) -> Result<Vec<OwnerHistory>>

Source

pub async fn get_recovery_request( &self, account: &str, ) -> Result<Option<RecoveryRequest>>

Source

pub async fn get_content(&self, author: &str, permlink: &str) -> Result<Comment>

Source

pub async fn get_content_replies( &self, author: &str, permlink: &str, ) -> Result<Vec<Comment>>

Source

pub async fn get_discussions( &self, by: DiscussionQueryCategory, query: &DiscussionQuery, ) -> Result<Vec<Discussion>>

Source

pub async fn get_discussions_by_author_before_date( &self, author: &str, start_permlink: &str, before_date: &str, limit: u32, ) -> Result<Vec<Discussion>>

Source

pub async fn get_active_votes( &self, author: &str, permlink: &str, ) -> Result<Vec<ActiveVote>>

Source

pub async fn get_dynamic_global_properties( &self, ) -> Result<DynamicGlobalProperties>

Source

pub async fn get_chain_properties(&self) -> Result<Value>

Source

pub async fn get_feed_history(&self) -> Result<FeedHistory>

Source

pub async fn get_current_median_history_price(&self) -> Result<Price>

Source

pub async fn get_hardfork_version(&self) -> Result<String>

Source

pub async fn get_next_scheduled_hardfork(&self) -> Result<ScheduledHardfork>

Source

pub async fn get_reward_fund(&self, name: &str) -> Result<RewardFund>

Source

pub async fn get_config(&self) -> Result<Value>

Source

pub async fn get_version(&self) -> Result<Version>

Source

pub async fn get_active_witnesses(&self) -> Result<Vec<String>>

Source

pub async fn get_witness_by_account( &self, account: &str, ) -> Result<Option<Witness>>

Source

pub async fn get_vesting_delegations( &self, account: &str, from: &str, limit: u32, ) -> Result<Vec<VestingDelegation>>

Source

pub async fn get_expiring_vesting_delegations( &self, account: &str, from: &str, limit: u32, ) -> Result<Vec<ExpiringVestingDelegation>>

Source

pub async fn get_order_book(&self, limit: u32) -> Result<OrderBook>

Source

pub async fn get_open_orders(&self, account: &str) -> Result<Vec<OpenOrder>>

Source

pub async fn get_recent_trades(&self, limit: u32) -> Result<Vec<MarketTrade>>

Source

pub async fn get_market_history( &self, bucket_seconds: u32, start: &str, end: &str, ) -> Result<Vec<MarketBucket>>

Source

pub async fn get_market_history_buckets(&self) -> Result<Vec<u32>>

Source

pub async fn get_savings_withdraw_from( &self, account: &str, ) -> Result<Vec<SavingsWithdraw>>

Source

pub async fn get_savings_withdraw_to( &self, account: &str, ) -> Result<Vec<SavingsWithdraw>>

Source

pub async fn get_conversion_requests(&self, account: &str) -> Result<Vec<Value>>

Source

pub async fn get_collateralized_conversion_requests( &self, account: &str, ) -> Result<Vec<CollateralizedConversionRequest>>

Source

pub async fn get_followers( &self, account: &str, start_follower: &str, follow_type: &str, limit: u32, ) -> Result<Vec<FollowEntry>>

Source

pub async fn get_following( &self, account: &str, start_following: &str, follow_type: &str, limit: u32, ) -> Result<Vec<FollowEntry>>

Source

pub async fn get_follow_count(&self, account: &str) -> Result<FollowCount>

Source

pub async fn get_reblogged_by( &self, author: &str, permlink: &str, ) -> Result<Vec<String>>

Source

pub async fn get_blog( &self, account: &str, start_entry_id: u32, limit: u32, ) -> Result<Vec<Discussion>>

Source

pub async fn get_blog_entries( &self, account: &str, start_entry_id: u32, limit: u32, ) -> Result<Vec<Value>>

Source

pub async fn get_potential_signatures( &self, transaction: &SignedTransaction, ) -> Result<Vec<String>>

Source

pub async fn get_required_signatures( &self, transaction: &SignedTransaction, available_keys: &[String], ) -> Result<Vec<String>>

Source

pub async fn verify_authority( &self, transaction: &SignedTransaction, ) -> Result<bool>

Source

pub async fn get_key_references( &self, keys: &[String], ) -> Result<Vec<Vec<String>>>

Source

pub async fn get_escrow( &self, from: &str, escrow_id: u32, ) -> Result<Option<Escrow>>

Source

pub async fn find_proposals( &self, proposal_ids: &[i64], ) -> Result<Vec<Proposal>>

Source

pub async fn list_proposals( &self, start: Value, limit: u32, order_by: &str, order_direction: &str, status: &str, ) -> Result<Vec<Proposal>>

Source

pub async fn find_recurrent_transfers( &self, account: &str, ) -> Result<Vec<RecurrentTransfer>>

Source

pub async fn get_ops_in_block( &self, block_num: u32, only_virtual: bool, ) -> Result<Vec<AppliedOperation>>

Source

pub async fn get_operations( &self, block_num: u32, ) -> Result<Vec<AppliedOperation>>

Source

pub async fn get_block(&self, block_num: u32) -> Result<Option<SignedBlock>>

Source

pub async fn get_block_header( &self, block_num: u32, ) -> Result<Option<BlockHeader>>

Trait Implementations§

Source§

impl Clone for DatabaseApi

Source§

fn clone(&self) -> DatabaseApi

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DatabaseApi

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more