Struct Maestro

Source
pub struct Maestro {
    pub base_url: String,
    /* private fields */
}

Fields§

§base_url: String

Implementations§

Source§

impl Maestro

Source

pub async fn account_addresses( &self, stake_addr: &str, params: Option<Parameters>, ) -> Result<AccountAddresses, Box<dyn Error>>

Source

pub async fn account_assets( &self, stake_addr: &str, params: Option<Parameters>, ) -> Result<AccountAssets, Box<dyn Error>>

Source

pub async fn stake_account_history( &self, stake_addr: &str, params: Option<Parameters>, ) -> Result<StakeAccountHistory, Box<dyn Error>>

Source

pub async fn stake_account_information( &self, stake_addr: &str, ) -> Result<StakeAccountInformation, Box<dyn Error>>

Source

pub async fn stake_account_rewards( &self, stake_addr: &str, params: Option<Parameters>, ) -> Result<StakeAccountRewards, Box<dyn Error>>

Source

pub async fn stake_account_updates( &self, stake_addr: &str, params: Option<Parameters>, ) -> Result<StakeAccountUpdates, Box<dyn Error>>

Source§

impl Maestro

Source

pub async fn decode_address( &self, address: &str, ) -> Result<DecodedAddress, Box<dyn Error>>

Source

pub async fn address_transaction_count( &self, address: &str, ) -> Result<AddressTransactionCount, Box<dyn Error>>

Source

pub async fn address_transactions( &self, address: &str, params: Option<&Parameters>, ) -> Result<AddressTransactions, Box<dyn Error>>

Source

pub async fn payment_credential_transactions( &self, payment_credential: &str, params: Option<Parameters>, ) -> Result<AddressTransactions, Box<dyn Error>>

Source

pub async fn utxo_references_at_address( &self, address: &str, params: Option<Parameters>, ) -> Result<UtxoReferencesAtAddress, Box<dyn Error>>

Source

pub async fn utxos_at_address( &self, address: &str, params: Option<Parameters>, ) -> Result<UtxosAtAddress, Box<dyn Error>>

Source

pub async fn utxos_at_addresses( &self, addresses: Vec<String>, params: Option<Parameters>, ) -> Result<UtxosAtAddress, Box<dyn Error>>

Source

pub async fn utxos_by_payment_credential( &self, payment_credential: &str, params: Option<Parameters>, ) -> Result<UtxosAtAddress, Box<dyn Error>>

Source§

impl Maestro

Source

pub async fn accounts_holding_asset( &self, asset_id: &str, params: Option<&Parameters>, ) -> Result<AccountsHoldingAsset, Box<dyn Error>>

Source

pub async fn address_holding_asset( &self, asset_id: &str, params: Option<&Parameters>, ) -> Result<AddressesHoldingAsset, Box<dyn Error>>

Source

pub async fn asset( &self, asset_id: &str, ) -> Result<AssetInformations, Box<dyn Error>>

Source

pub async fn asset_transactions( &self, asset_id: &str, params: Option<&Parameters>, ) -> Result<AssetTransactions, Box<dyn Error>>

Source

pub async fn asset_updates( &self, asset_id: &str, params: Option<&Parameters>, ) -> Result<AssetUpdates, Box<dyn Error>>

Source

pub async fn asset_utxos( &self, asset_id: &str, params: Option<&Parameters>, ) -> Result<AssetUtxos, Box<dyn Error>>

Source§

impl Maestro

Source

pub async fn accounts_holding_policy( &self, policy: &str, params: Option<Parameters>, ) -> Result<AccountsHoldingPolicy, Box<dyn Error>>

Source

pub async fn addresses_holding_policy( &self, policy: &str, params: Option<Parameters>, ) -> Result<AddressesHoldingPolicy, Box<dyn Error>>

Source

pub async fn specific_policy_informations( &self, policy: &str, params: Option<Parameters>, ) -> Result<PolicyInformation, Box<dyn Error>>

Source

pub async fn transactions_moving_policy( &self, policy: &str, params: Option<Parameters>, ) -> Result<PolicyTransactions, Box<dyn Error>>

Source

pub async fn utxos_containing_policy( &self, policy: &str, params: Option<Parameters>, ) -> Result<UtxosContainingPolicy, Box<dyn Error>>

Source§

impl Maestro

Source

pub async fn block_info( &self, block_height: i64, ) -> Result<BlockInfo, Box<dyn Error>>

Source§

impl Maestro

Source

pub async fn datum_from_hash( &self, hash: &str, ) -> Result<DatumFromHash, Box<dyn Error>>

Source§

impl Maestro

Source

pub async fn resolve_ada_handle( &self, handle: &str, ) -> Result<BasicResponse, Box<dyn Error>>

Source§

impl Maestro

Source

pub async fn current_epoch(&self) -> Result<EpochResp, Box<dyn Error>>

Source

pub async fn specific_epoch( &self, epoch_no: i32, ) -> Result<EpochResp, Box<dyn Error>>

Source§

impl Maestro

Source

pub async fn chain_tip(&self) -> Result<ChainTip, Box<dyn Error>>

Source

pub async fn era_history(&self) -> Result<EraSummaries, Box<dyn Error>>

Source

pub async fn protocol_parameters( &self, ) -> Result<ProtocolParameters, Box<dyn Error>>

Source

pub async fn block_chain_start_time( &self, ) -> Result<BasicResponse, Box<dyn Error>>

Source§

impl Maestro

Source

pub async fn lock_assets( &self, lock_body: LockBody, ) -> Result<LockTransaction, Box<dyn Error>>

Source

pub async fn state_of_vesting_assets( &self, beneficiary: &str, ) -> Result<Vec<VestingState>, Box<dyn Error>>

Source

pub async fn collect_assets( &self, beneficiary: &str, ) -> Result<CollectTransaction, Box<dyn Error>>

Source§

impl Maestro

Source

pub fn new(api_key: String, network: String) -> Self

Source

pub async fn get(&self, url: &str) -> Result<String, Box<dyn Error>>

Source

pub async fn post<T: Serialize>( &self, url: &str, body: T, ) -> Result<String, Box<dyn Error>>

Source§

impl Maestro

Source

pub async fn markets_dex_pair_ohlc( &self, dex: impl Display, pair: impl Display, parameters: Option<DexPairOHLCParameters>, ) -> Result<Vec<DexPairOHLC>, Box<dyn Error>>

Returns market activity in candlestick OHLC format for a specific DEX and token pair

Source§

impl Maestro

Source

pub async fn list_of_registered_pools( &self, params: Option<Parameters>, ) -> Result<RegisteredPools, Box<dyn Error>>

Source

pub async fn stake_pool_minted_blocks( &self, pool_id: &str, params: Option<Parameters>, ) -> Result<PoolMintedBlocks, Box<dyn Error>>

Source

pub async fn stake_pool_delegators( &self, pool_id: &str, params: Option<Parameters>, ) -> Result<StakePoolDelegators, Box<dyn Error>>

Source

pub async fn stake_pool_history( &self, pool_id: &str, params: Option<Parameters>, ) -> Result<StakePoolHistory, Box<dyn Error>>

Source

pub async fn stake_pool_information( &self, pool_id: &str, ) -> Result<StakePoolInformation, Box<dyn Error>>

Source

pub async fn stake_pool_metadata( &self, pool_id: &str, ) -> Result<StakePoolMetadata, Box<dyn Error>>

Source

pub async fn stake_pool_relays( &self, pool_id: &str, ) -> Result<StakePoolRelays, Box<dyn Error>>

Source

pub async fn stake_pool_updates( &self, pool_id: &str, ) -> Result<StakePoolUpdates, Box<dyn Error>>

Source

pub async fn stake_pool_delegator_history( &self, pool_id: &str, epoch_no: i64, params: Option<Parameters>, ) -> Result<StakePoolDelegatorHistory, Box<dyn Error>>

Source§

impl Maestro

Source

pub async fn script_by_hash( &self, hash: &str, ) -> Result<ScriptByHash, Box<dyn Error>>

Source§

impl Maestro

Source

pub async fn address_by_output_reference( &self, tx_hash: &str, index: i32, ) -> Result<BasicResponse, Box<dyn Error>>

Source

pub async fn submit_tx( &self, cbor: &str, ) -> Result<BasicResponse, Box<dyn Error>>

Source

pub async fn transaction_cbor( &self, tx_hash: &str, ) -> Result<BasicResponse, Box<dyn Error>>

Source

pub async fn transaction_details( &self, tx_hash: &str, ) -> Result<TransactionDetails, Box<dyn Error>>

Source

pub async fn transaction_output_from_reference( &self, tx_hash: &str, index: i32, params: Option<HashMap<String, String>>, ) -> Result<TransactionOutputFromReference, Box<dyn Error>>

Source

pub async fn transaction_outputs_from_references( &self, references: Vec<String>, params: Option<HashMap<String, String>>, ) -> Result<TransactionOutputsFromReferences, Box<dyn Error>>

Source

pub async fn evaluate_tx( &self, tx_cbor: &str, additional_utxos: Vec<AdditionalUtxo>, ) -> Result<Vec<RedeemerEvaluation>, Box<dyn Error>>

Source§

impl Maestro

Source

pub async fn tx_manager_history( &self, ) -> Result<Vec<TxManagerState>, Box<dyn Error>>

Source

pub async fn tx_manager_submit( &self, cbor: &str, ) -> Result<BasicResponse, Box<dyn Error>>

Source

pub async fn tx_manager_submit_turbo( &self, cbor: &str, ) -> Result<BasicResponse, Box<dyn Error>>

Source

pub async fn tx_manager_state( &self, tx_hash: &str, ) -> Result<TxManagerState, Box<dyn Error>>

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> 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, 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<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
Source§

impl<T> ErasedDestructor for T
where T: 'static,