pub struct Client { /* private fields */ }Expand description
Client for photon-indexer
Solana indexer for general compression
Version: 0.51.2
Implementations§
Source§impl Client
impl Client
Sourcepub fn new(baseurl: &str) -> Self
pub fn new(baseurl: &str) -> Self
Create a new client.
baseurl is the base URL provided to the internal
reqwest::Client, and should include a scheme and hostname,
as well as port and a path stem if applicable.
Sourcepub fn new_with_client(baseurl: &str, client: Client) -> Self
pub fn new_with_client(baseurl: &str, client: Client) -> Self
Construct a new client with an existing reqwest::Client,
allowing more control over its configuration.
baseurl is the base URL provided to the internal
reqwest::Client, and should include a scheme and hostname,
as well as port and a path stem if applicable.
Source§impl Client
impl Client
Sourcepub fn post_get_account_interface(&self) -> PostGetAccountInterface<'_>
pub fn post_get_account_interface(&self) -> PostGetAccountInterface<'_>
Sends a POST request to /getAccountInterface
let response = client.post_get_account_interface()
.body(body)
.send()
.await;Sourcepub fn post_get_compressed_account(&self) -> PostGetCompressedAccount<'_>
pub fn post_get_compressed_account(&self) -> PostGetCompressedAccount<'_>
Sends a POST request to /getCompressedAccount
let response = client.post_get_compressed_account()
.body(body)
.send()
.await;Sourcepub fn post_get_compressed_account_balance(
&self,
) -> PostGetCompressedAccountBalance<'_>
pub fn post_get_compressed_account_balance( &self, ) -> PostGetCompressedAccountBalance<'_>
Sends a POST request to /getCompressedAccountBalance
let response = client.post_get_compressed_account_balance()
.body(body)
.send()
.await;Sourcepub fn post_get_compressed_account_proof(
&self,
) -> PostGetCompressedAccountProof<'_>
pub fn post_get_compressed_account_proof( &self, ) -> PostGetCompressedAccountProof<'_>
Sends a POST request to /getCompressedAccountProof
let response = client.post_get_compressed_account_proof()
.body(body)
.send()
.await;Sourcepub fn post_get_compressed_account_proof_v2(
&self,
) -> PostGetCompressedAccountProofV2<'_>
pub fn post_get_compressed_account_proof_v2( &self, ) -> PostGetCompressedAccountProofV2<'_>
Sends a POST request to /getCompressedAccountProofV2
let response = client.post_get_compressed_account_proof_v2()
.body(body)
.send()
.await;Sourcepub fn post_get_compressed_account_v2(&self) -> PostGetCompressedAccountV2<'_>
pub fn post_get_compressed_account_v2(&self) -> PostGetCompressedAccountV2<'_>
Sends a POST request to /getCompressedAccountV2
let response = client.post_get_compressed_account_v2()
.body(body)
.send()
.await;Sourcepub fn post_get_compressed_accounts_by_owner(
&self,
) -> PostGetCompressedAccountsByOwner<'_>
pub fn post_get_compressed_accounts_by_owner( &self, ) -> PostGetCompressedAccountsByOwner<'_>
Sends a POST request to /getCompressedAccountsByOwner
let response = client.post_get_compressed_accounts_by_owner()
.body(body)
.send()
.await;Sourcepub fn post_get_compressed_accounts_by_owner_v2(
&self,
) -> PostGetCompressedAccountsByOwnerV2<'_>
pub fn post_get_compressed_accounts_by_owner_v2( &self, ) -> PostGetCompressedAccountsByOwnerV2<'_>
Sends a POST request to /getCompressedAccountsByOwnerV2
let response = client.post_get_compressed_accounts_by_owner_v2()
.body(body)
.send()
.await;Sourcepub fn post_get_compressed_balance_by_owner(
&self,
) -> PostGetCompressedBalanceByOwner<'_>
pub fn post_get_compressed_balance_by_owner( &self, ) -> PostGetCompressedBalanceByOwner<'_>
Sends a POST request to /getCompressedBalanceByOwner
let response = client.post_get_compressed_balance_by_owner()
.body(body)
.send()
.await;Sourcepub fn post_get_compressed_mint_token_holders(
&self,
) -> PostGetCompressedMintTokenHolders<'_>
pub fn post_get_compressed_mint_token_holders( &self, ) -> PostGetCompressedMintTokenHolders<'_>
Sends a POST request to /getCompressedMintTokenHolders
let response = client.post_get_compressed_mint_token_holders()
.body(body)
.send()
.await;Sourcepub fn post_get_compressed_token_account_balance(
&self,
) -> PostGetCompressedTokenAccountBalance<'_>
pub fn post_get_compressed_token_account_balance( &self, ) -> PostGetCompressedTokenAccountBalance<'_>
Sends a POST request to /getCompressedTokenAccountBalance
let response = client.post_get_compressed_token_account_balance()
.body(body)
.send()
.await;Sourcepub fn post_get_compressed_token_accounts_by_delegate(
&self,
) -> PostGetCompressedTokenAccountsByDelegate<'_>
pub fn post_get_compressed_token_accounts_by_delegate( &self, ) -> PostGetCompressedTokenAccountsByDelegate<'_>
Sends a POST request to /getCompressedTokenAccountsByDelegate
let response = client.post_get_compressed_token_accounts_by_delegate()
.body(body)
.send()
.await;Sourcepub fn post_get_compressed_token_accounts_by_delegate_v2(
&self,
) -> PostGetCompressedTokenAccountsByDelegateV2<'_>
pub fn post_get_compressed_token_accounts_by_delegate_v2( &self, ) -> PostGetCompressedTokenAccountsByDelegateV2<'_>
Sends a POST request to /getCompressedTokenAccountsByDelegateV2
let response = client.post_get_compressed_token_accounts_by_delegate_v2()
.body(body)
.send()
.await;Sourcepub fn post_get_compressed_token_accounts_by_owner(
&self,
) -> PostGetCompressedTokenAccountsByOwner<'_>
pub fn post_get_compressed_token_accounts_by_owner( &self, ) -> PostGetCompressedTokenAccountsByOwner<'_>
Sends a POST request to /getCompressedTokenAccountsByOwner
let response = client.post_get_compressed_token_accounts_by_owner()
.body(body)
.send()
.await;Sourcepub fn post_get_compressed_token_accounts_by_owner_v2(
&self,
) -> PostGetCompressedTokenAccountsByOwnerV2<'_>
pub fn post_get_compressed_token_accounts_by_owner_v2( &self, ) -> PostGetCompressedTokenAccountsByOwnerV2<'_>
Sends a POST request to /getCompressedTokenAccountsByOwnerV2
let response = client.post_get_compressed_token_accounts_by_owner_v2()
.body(body)
.send()
.await;Sourcepub fn post_get_compressed_token_balances_by_owner(
&self,
) -> PostGetCompressedTokenBalancesByOwner<'_>
pub fn post_get_compressed_token_balances_by_owner( &self, ) -> PostGetCompressedTokenBalancesByOwner<'_>
Sends a POST request to /getCompressedTokenBalancesByOwner
let response = client.post_get_compressed_token_balances_by_owner()
.body(body)
.send()
.await;Sourcepub fn post_get_compressed_token_balances_by_owner_v2(
&self,
) -> PostGetCompressedTokenBalancesByOwnerV2<'_>
pub fn post_get_compressed_token_balances_by_owner_v2( &self, ) -> PostGetCompressedTokenBalancesByOwnerV2<'_>
Sends a POST request to /getCompressedTokenBalancesByOwnerV2
let response = client.post_get_compressed_token_balances_by_owner_v2()
.body(body)
.send()
.await;Sourcepub fn post_get_compression_signatures_for_account(
&self,
) -> PostGetCompressionSignaturesForAccount<'_>
pub fn post_get_compression_signatures_for_account( &self, ) -> PostGetCompressionSignaturesForAccount<'_>
Sends a POST request to /getCompressionSignaturesForAccount
let response = client.post_get_compression_signatures_for_account()
.body(body)
.send()
.await;Sourcepub fn post_get_compression_signatures_for_address(
&self,
) -> PostGetCompressionSignaturesForAddress<'_>
pub fn post_get_compression_signatures_for_address( &self, ) -> PostGetCompressionSignaturesForAddress<'_>
Sends a POST request to /getCompressionSignaturesForAddress
let response = client.post_get_compression_signatures_for_address()
.body(body)
.send()
.await;Sourcepub fn post_get_compression_signatures_for_owner(
&self,
) -> PostGetCompressionSignaturesForOwner<'_>
pub fn post_get_compression_signatures_for_owner( &self, ) -> PostGetCompressionSignaturesForOwner<'_>
Sends a POST request to /getCompressionSignaturesForOwner
let response = client.post_get_compression_signatures_for_owner()
.body(body)
.send()
.await;Sourcepub fn post_get_compression_signatures_for_token_owner(
&self,
) -> PostGetCompressionSignaturesForTokenOwner<'_>
pub fn post_get_compression_signatures_for_token_owner( &self, ) -> PostGetCompressionSignaturesForTokenOwner<'_>
Sends a POST request to /getCompressionSignaturesForTokenOwner
let response = client.post_get_compression_signatures_for_token_owner()
.body(body)
.send()
.await;Sourcepub fn post_get_indexer_health(&self) -> PostGetIndexerHealth<'_>
pub fn post_get_indexer_health(&self) -> PostGetIndexerHealth<'_>
Sends a POST request to /getIndexerHealth
let response = client.post_get_indexer_health()
.body(body)
.send()
.await;Sourcepub fn post_get_indexer_slot(&self) -> PostGetIndexerSlot<'_>
pub fn post_get_indexer_slot(&self) -> PostGetIndexerSlot<'_>
Sends a POST request to /getIndexerSlot
let response = client.post_get_indexer_slot()
.body(body)
.send()
.await;Sourcepub fn post_get_latest_compression_signatures(
&self,
) -> PostGetLatestCompressionSignatures<'_>
pub fn post_get_latest_compression_signatures( &self, ) -> PostGetLatestCompressionSignatures<'_>
Sends a POST request to /getLatestCompressionSignatures
let response = client.post_get_latest_compression_signatures()
.body(body)
.send()
.await;Sourcepub fn post_get_latest_non_voting_signatures(
&self,
) -> PostGetLatestNonVotingSignatures<'_>
pub fn post_get_latest_non_voting_signatures( &self, ) -> PostGetLatestNonVotingSignatures<'_>
Sends a POST request to /getLatestNonVotingSignatures
let response = client.post_get_latest_non_voting_signatures()
.body(body)
.send()
.await;Sourcepub fn post_get_multiple_account_interfaces(
&self,
) -> PostGetMultipleAccountInterfaces<'_>
pub fn post_get_multiple_account_interfaces( &self, ) -> PostGetMultipleAccountInterfaces<'_>
Sends a POST request to /getMultipleAccountInterfaces
let response = client.post_get_multiple_account_interfaces()
.body(body)
.send()
.await;Sourcepub fn post_get_multiple_compressed_account_proofs(
&self,
) -> PostGetMultipleCompressedAccountProofs<'_>
pub fn post_get_multiple_compressed_account_proofs( &self, ) -> PostGetMultipleCompressedAccountProofs<'_>
Sends a POST request to /getMultipleCompressedAccountProofs
let response = client.post_get_multiple_compressed_account_proofs()
.body(body)
.send()
.await;Sourcepub fn post_get_multiple_compressed_account_proofs_v2(
&self,
) -> PostGetMultipleCompressedAccountProofsV2<'_>
pub fn post_get_multiple_compressed_account_proofs_v2( &self, ) -> PostGetMultipleCompressedAccountProofsV2<'_>
Sends a POST request to /getMultipleCompressedAccountProofsV2
let response = client.post_get_multiple_compressed_account_proofs_v2()
.body(body)
.send()
.await;Sourcepub fn post_get_multiple_compressed_accounts(
&self,
) -> PostGetMultipleCompressedAccounts<'_>
pub fn post_get_multiple_compressed_accounts( &self, ) -> PostGetMultipleCompressedAccounts<'_>
Sends a POST request to /getMultipleCompressedAccounts
let response = client.post_get_multiple_compressed_accounts()
.body(body)
.send()
.await;Sourcepub fn post_get_multiple_compressed_accounts_v2(
&self,
) -> PostGetMultipleCompressedAccountsV2<'_>
pub fn post_get_multiple_compressed_accounts_v2( &self, ) -> PostGetMultipleCompressedAccountsV2<'_>
Sends a POST request to /getMultipleCompressedAccountsV2
let response = client.post_get_multiple_compressed_accounts_v2()
.body(body)
.send()
.await;Sourcepub fn post_get_multiple_new_address_proofs(
&self,
) -> PostGetMultipleNewAddressProofs<'_>
pub fn post_get_multiple_new_address_proofs( &self, ) -> PostGetMultipleNewAddressProofs<'_>
Sends a POST request to /getMultipleNewAddressProofs
let response = client.post_get_multiple_new_address_proofs()
.body(body)
.send()
.await;Sourcepub fn post_get_multiple_new_address_proofs_v2(
&self,
) -> PostGetMultipleNewAddressProofsV2<'_>
pub fn post_get_multiple_new_address_proofs_v2( &self, ) -> PostGetMultipleNewAddressProofsV2<'_>
Sends a POST request to /getMultipleNewAddressProofsV2
let response = client.post_get_multiple_new_address_proofs_v2()
.body(body)
.send()
.await;Sourcepub fn post_get_queue_elements(&self) -> PostGetQueueElements<'_>
pub fn post_get_queue_elements(&self) -> PostGetQueueElements<'_>
Sends a POST request to /getQueueElements
let response = client.post_get_queue_elements()
.body(body)
.send()
.await;Sourcepub fn post_get_queue_info(&self) -> PostGetQueueInfo<'_>
pub fn post_get_queue_info(&self) -> PostGetQueueInfo<'_>
Sends a POST request to /getQueueInfo
let response = client.post_get_queue_info()
.body(body)
.send()
.await;Sourcepub fn post_get_transaction_with_compression_info(
&self,
) -> PostGetTransactionWithCompressionInfo<'_>
pub fn post_get_transaction_with_compression_info( &self, ) -> PostGetTransactionWithCompressionInfo<'_>
Sends a POST request to /getTransactionWithCompressionInfo
let response = client.post_get_transaction_with_compression_info()
.body(body)
.send()
.await;Sourcepub fn post_get_transaction_with_compression_info_v2(
&self,
) -> PostGetTransactionWithCompressionInfoV2<'_>
pub fn post_get_transaction_with_compression_info_v2( &self, ) -> PostGetTransactionWithCompressionInfoV2<'_>
Sends a POST request to /getTransactionWithCompressionInfoV2
let response = client.post_get_transaction_with_compression_info_v2()
.body(body)
.send()
.await;Sourcepub fn post_get_validity_proof(&self) -> PostGetValidityProof<'_>
pub fn post_get_validity_proof(&self) -> PostGetValidityProof<'_>
Sends a POST request to /getValidityProof
let response = client.post_get_validity_proof()
.body(body)
.send()
.await;Sourcepub fn post_get_validity_proof_v2(&self) -> PostGetValidityProofV2<'_>
pub fn post_get_validity_proof_v2(&self) -> PostGetValidityProofV2<'_>
Sends a POST request to /getValidityProofV2
let response = client.post_get_validity_proof_v2()
.body(body)
.send()
.await;