pub struct Maestro {
pub base_url: String,
/* private fields */
}
Fields§
§base_url: String
Implementations§
Source§impl Maestro
impl Maestro
pub async fn account_addresses( &self, stake_addr: &str, params: Option<Parameters>, ) -> Result<AccountAddresses, Box<dyn Error>>
pub async fn account_assets( &self, stake_addr: &str, params: Option<Parameters>, ) -> Result<AccountAssets, Box<dyn Error>>
pub async fn stake_account_history( &self, stake_addr: &str, params: Option<Parameters>, ) -> Result<StakeAccountHistory, Box<dyn Error>>
pub async fn stake_account_information( &self, stake_addr: &str, ) -> Result<StakeAccountInformation, Box<dyn Error>>
pub async fn stake_account_rewards( &self, stake_addr: &str, params: Option<Parameters>, ) -> Result<StakeAccountRewards, Box<dyn Error>>
pub async fn stake_account_updates( &self, stake_addr: &str, params: Option<Parameters>, ) -> Result<StakeAccountUpdates, Box<dyn Error>>
Source§impl Maestro
impl Maestro
pub async fn decode_address( &self, address: &str, ) -> Result<DecodedAddress, Box<dyn Error>>
pub async fn address_transaction_count( &self, address: &str, ) -> Result<AddressTransactionCount, Box<dyn Error>>
pub async fn address_transactions( &self, address: &str, params: Option<&Parameters>, ) -> Result<AddressTransactions, Box<dyn Error>>
pub async fn payment_credential_transactions( &self, payment_credential: &str, params: Option<Parameters>, ) -> Result<AddressTransactions, Box<dyn Error>>
pub async fn utxo_references_at_address( &self, address: &str, params: Option<Parameters>, ) -> Result<UtxoReferencesAtAddress, Box<dyn Error>>
pub async fn utxos_at_address( &self, address: &str, params: Option<Parameters>, ) -> Result<UtxosAtAddress, Box<dyn Error>>
pub async fn utxos_at_addresses( &self, addresses: Vec<String>, params: Option<Parameters>, ) -> Result<UtxosAtAddress, Box<dyn Error>>
pub async fn utxos_by_payment_credential( &self, payment_credential: &str, params: Option<Parameters>, ) -> Result<UtxosAtAddress, Box<dyn Error>>
Source§impl Maestro
impl Maestro
pub async fn accounts_holding_asset( &self, asset_id: &str, params: Option<&Parameters>, ) -> Result<AccountsHoldingAsset, Box<dyn Error>>
pub async fn address_holding_asset( &self, asset_id: &str, params: Option<&Parameters>, ) -> Result<AddressesHoldingAsset, Box<dyn Error>>
pub async fn asset( &self, asset_id: &str, ) -> Result<AssetInformations, Box<dyn Error>>
pub async fn asset_transactions( &self, asset_id: &str, params: Option<&Parameters>, ) -> Result<AssetTransactions, Box<dyn Error>>
pub async fn asset_updates( &self, asset_id: &str, params: Option<&Parameters>, ) -> Result<AssetUpdates, Box<dyn Error>>
pub async fn asset_utxos( &self, asset_id: &str, params: Option<&Parameters>, ) -> Result<AssetUtxos, Box<dyn Error>>
Source§impl Maestro
impl Maestro
pub async fn accounts_holding_policy( &self, policy: &str, params: Option<Parameters>, ) -> Result<AccountsHoldingPolicy, Box<dyn Error>>
pub async fn addresses_holding_policy( &self, policy: &str, params: Option<Parameters>, ) -> Result<AddressesHoldingPolicy, Box<dyn Error>>
pub async fn specific_policy_informations( &self, policy: &str, params: Option<Parameters>, ) -> Result<PolicyInformation, Box<dyn Error>>
pub async fn transactions_moving_policy( &self, policy: &str, params: Option<Parameters>, ) -> Result<PolicyTransactions, Box<dyn Error>>
pub async fn utxos_containing_policy( &self, policy: &str, params: Option<Parameters>, ) -> Result<UtxosContainingPolicy, Box<dyn Error>>
Source§impl Maestro
impl Maestro
pub async fn datum_from_hash( &self, hash: &str, ) -> Result<DatumFromHash, Box<dyn Error>>
Source§impl Maestro
impl Maestro
pub async fn resolve_ada_handle( &self, handle: &str, ) -> Result<BasicResponse, Box<dyn Error>>
Source§impl Maestro
impl Maestro
pub async fn chain_tip(&self) -> Result<ChainTip, Box<dyn Error>>
pub async fn era_history(&self) -> Result<EraSummaries, Box<dyn Error>>
pub async fn protocol_parameters( &self, ) -> Result<ProtocolParameters, Box<dyn Error>>
pub async fn block_chain_start_time( &self, ) -> Result<BasicResponse, Box<dyn Error>>
Source§impl Maestro
impl Maestro
pub async fn lock_assets( &self, lock_body: LockBody, ) -> Result<LockTransaction, Box<dyn Error>>
pub async fn state_of_vesting_assets( &self, beneficiary: &str, ) -> Result<Vec<VestingState>, Box<dyn Error>>
pub async fn collect_assets( &self, beneficiary: &str, ) -> Result<CollectTransaction, Box<dyn Error>>
Source§impl Maestro
impl Maestro
Sourcepub async fn markets_dex_pair_ohlc(
&self,
dex: impl Display,
pair: impl Display,
parameters: Option<DexPairOHLCParameters>,
) -> Result<Vec<DexPairOHLC>, Box<dyn Error>>
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
impl Maestro
pub async fn list_of_registered_pools( &self, params: Option<Parameters>, ) -> Result<RegisteredPools, Box<dyn Error>>
pub async fn stake_pool_minted_blocks( &self, pool_id: &str, params: Option<Parameters>, ) -> Result<PoolMintedBlocks, Box<dyn Error>>
pub async fn stake_pool_delegators( &self, pool_id: &str, params: Option<Parameters>, ) -> Result<StakePoolDelegators, Box<dyn Error>>
pub async fn stake_pool_history( &self, pool_id: &str, params: Option<Parameters>, ) -> Result<StakePoolHistory, Box<dyn Error>>
pub async fn stake_pool_information( &self, pool_id: &str, ) -> Result<StakePoolInformation, Box<dyn Error>>
pub async fn stake_pool_metadata( &self, pool_id: &str, ) -> Result<StakePoolMetadata, Box<dyn Error>>
pub async fn stake_pool_relays( &self, pool_id: &str, ) -> Result<StakePoolRelays, Box<dyn Error>>
pub async fn stake_pool_updates( &self, pool_id: &str, ) -> Result<StakePoolUpdates, Box<dyn Error>>
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
impl Maestro
pub async fn script_by_hash( &self, hash: &str, ) -> Result<ScriptByHash, Box<dyn Error>>
Source§impl Maestro
impl Maestro
pub async fn address_by_output_reference( &self, tx_hash: &str, index: i32, ) -> Result<BasicResponse, Box<dyn Error>>
pub async fn submit_tx( &self, cbor: &str, ) -> Result<BasicResponse, Box<dyn Error>>
pub async fn transaction_cbor( &self, tx_hash: &str, ) -> Result<BasicResponse, Box<dyn Error>>
pub async fn transaction_details( &self, tx_hash: &str, ) -> Result<TransactionDetails, Box<dyn Error>>
pub async fn transaction_output_from_reference( &self, tx_hash: &str, index: i32, params: Option<HashMap<String, String>>, ) -> Result<TransactionOutputFromReference, Box<dyn Error>>
pub async fn transaction_outputs_from_references( &self, references: Vec<String>, params: Option<HashMap<String, String>>, ) -> Result<TransactionOutputsFromReferences, Box<dyn Error>>
pub async fn evaluate_tx( &self, tx_cbor: &str, additional_utxos: Vec<AdditionalUtxo>, ) -> Result<Vec<RedeemerEvaluation>, Box<dyn Error>>
Source§impl Maestro
impl Maestro
pub async fn tx_manager_history( &self, ) -> Result<Vec<TxManagerState>, Box<dyn Error>>
pub async fn tx_manager_submit( &self, cbor: &str, ) -> Result<BasicResponse, Box<dyn Error>>
pub async fn tx_manager_submit_turbo( &self, cbor: &str, ) -> Result<BasicResponse, Box<dyn Error>>
pub async fn tx_manager_state( &self, tx_hash: &str, ) -> Result<TxManagerState, Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for Maestro
impl !RefUnwindSafe for Maestro
impl Send for Maestro
impl Sync for Maestro
impl Unpin for Maestro
impl !UnwindSafe for Maestro
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