pub struct Client { /* private fields */ }Expand description
Client for ChainStream API
ChainStream Unified API
Version: 2.0
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: ClientWithMiddleware) -> Self
pub fn new_with_client(baseurl: &str, client: ClientWithMiddleware) -> Self
Construct a new client with an existing reqwest_middleware::ClientWithMiddleware,
allowing more control over its configuration.
baseurl is the base URL provided to the internal
reqwest_middleware::ClientWithMiddleware, and should include a scheme and hostname,
as well as port and a path stem if applicable.
Source§impl Client
impl Client
Sourcepub fn get_supported_blockchains(&self) -> GetSupportedBlockchains<'_>
pub fn get_supported_blockchains(&self) -> GetSupportedBlockchains<'_>
Blockchain - List
Get list of supported blockchains
Sends a GET request to /v2/blockchain
let response = client.get_supported_blockchains()
.send()
.await;Sourcepub fn get_latest_block(&self) -> GetLatestBlock<'_>
pub fn get_latest_block(&self) -> GetLatestBlock<'_>
Blockchain - Latest Block
Get the latest block information for a specific blockchain
Sends a GET request to /v2/blockchain/{chain}/latest_block
Arguments:
chain: A chain name listed in supported networks
let response = client.get_latest_block()
.chain(chain)
.send()
.await;Sourcepub fn list_dex(&self) -> ListDex<'_>
pub fn list_dex(&self) -> ListDex<'_>
Dex - List
Obtain information about all DEXs on a specified blockchain.
Sends a GET request to /v2/dex
Arguments:
chains: Filter by blockchain networkscursor: Pagination cursordex_program: Filter by DEX program addressdirection: Pagination direction (next or prev)limit: Number of results per page
let response = client.list_dex()
.chains(chains)
.cursor(cursor)
.dex_program(dex_program)
.direction(direction)
.limit(limit)
.send()
.await;Sourcepub fn create_token(&self) -> CreateToken<'_>
pub fn create_token(&self) -> CreateToken<'_>
Dex - Create Token
Create a new token on the specified DEX
Sends a POST request to /v2/dex/{chain}/create
Arguments:
chain: A chain name listed in supported networksbody: Token creation parameters
let response = client.create_token()
.chain(chain)
.body(body)
.send()
.await;Sourcepub fn quote(&self) -> Quote<'_>
pub fn quote(&self) -> Quote<'_>
Dex - Get Quote
Get DEX trading quote information
Sends a GET request to /v2/dex/{chain}/quote
Arguments:
chain: A chain name listed in supported networksamount: Trading amountdex: DEX protocol typeexact_in: Exact input modeinput_mint: Input token addressoutput_mint: Output token addressslippage: Slippage tolerance
let response = client.quote()
.chain(chain)
.amount(amount)
.dex(dex)
.exact_in(exact_in)
.input_mint(input_mint)
.output_mint(output_mint)
.slippage(slippage)
.send()
.await;Sourcepub fn route(&self) -> Route<'_>
pub fn route(&self) -> Route<'_>
Dex - Route
Calculate the best route for token swap considering price impact and fees. Returns the optimal path and a prepared transaction.
Sends a POST request to /v2/dex/{chain}/route
Arguments:
chain: A chain name listed in supported networksbody
let response = client.route()
.chain(chain)
.body(body)
.send()
.await;Sourcepub fn swap(&self) -> Swap<'_>
pub fn swap(&self) -> Swap<'_>
Dex - Swap
Swap parameters including input token, output token, amount and slippage
Sends a POST request to /v2/dex/{chain}/swap
Arguments:
chain: A chain name listed in supported networksbody
let response = client.swap()
.chain(chain)
.body(body)
.send()
.await;Sourcepub fn get_dexpool(&self) -> GetDexpool<'_>
pub fn get_dexpool(&self) -> GetDexpool<'_>
DexPool - Detail
Retrieve detailed information about a specific DEX pool
Sends a GET request to /v2/dexpools/{chain}/{poolAddress}
Arguments:
chain: A chain name listed in supported networkspool_address: A pool address
let response = client.get_dexpool()
.chain(chain)
.pool_address(pool_address)
.send()
.await;Sourcepub fn get_dexpool_snapshots(&self) -> GetDexpoolSnapshots<'_>
pub fn get_dexpool_snapshots(&self) -> GetDexpoolSnapshots<'_>
DexPool - Liquidity Snapshots
Retrieve historical liquidity snapshots for a specific pool. If a time parameter is provided, returns the nearest snapshot before or at that time.
Sends a GET request to /v2/dexpools/{chain}/{poolAddress}/snapshots
Arguments:
chain: A chain name listed in supported networkspool_address: A pool addresscursor: Pagination cursordirection: Pagination direction (next or prev)limit: Number of results per pagetime: Target Unix timestamp for snapshot query
let response = client.get_dexpool_snapshots()
.chain(chain)
.pool_address(pool_address)
.cursor(cursor)
.direction(direction)
.limit(limit)
.time(time)
.send()
.await;Sourcepub fn get_dexscr_ads(&self) -> GetDexscrAds<'_>
pub fn get_dexscr_ads(&self) -> GetDexscrAds<'_>
DexScreener - Ads
Retrieve a list of paid DexScreener advertisements
Sends a GET request to /v2/dexscr/{chain}/ads
Arguments:
chain: A chain name listed in supported networkslimit: Number of results to return
let response = client.get_dexscr_ads()
.chain(chain)
.limit(limit)
.send()
.await;Sourcepub fn get_dexscr_boosts(&self) -> GetDexscrBoosts<'_>
pub fn get_dexscr_boosts(&self) -> GetDexscrBoosts<'_>
DexScreener - Boosts
Retrieve a list of token boosts with spending amounts from DexScreener
Sends a GET request to /v2/dexscr/{chain}/boosts
Arguments:
chain: A chain name listed in supported networkslimit: Number of results to return
let response = client.get_dexscr_boosts()
.chain(chain)
.limit(limit)
.send()
.await;Sourcepub fn get_dexscr_link_updates(&self) -> GetDexscrLinkUpdates<'_>
pub fn get_dexscr_link_updates(&self) -> GetDexscrLinkUpdates<'_>
DexScreener - Link Updates
Retrieve recently updated token profile links from DexScreener
Sends a GET request to /v2/dexscr/{chain}/link-updates
Arguments:
chain: A chain name listed in supported networkslimit: Number of results to return
let response = client.get_dexscr_link_updates()
.chain(chain)
.limit(limit)
.send()
.await;Sourcepub fn get_dexscr_token_info(&self) -> GetDexscrTokenInfo<'_>
pub fn get_dexscr_token_info(&self) -> GetDexscrTokenInfo<'_>
DexScreener - Token Info
Retrieve DexScreener ad, boost, and link update information for a specific token
Sends a GET request to /v2/dexscr/{chain}/token/{tokenAddress}
Arguments:
chain: A chain name listed in supported networkstoken_address: An address of a token
let response = client.get_dexscr_token_info()
.chain(chain)
.token_address(token_address)
.send()
.await;Sourcepub fn get_dexscr_trending(&self) -> GetDexscrTrending<'_>
pub fn get_dexscr_trending(&self) -> GetDexscrTrending<'_>
DexScreener - Trending
Retrieve trending meta categories from DexScreener
Sends a GET request to /v2/dexscr/{chain}/trending
Arguments:
chain: A chain name listed in supported networkslimit: Number of results to return
let response = client.get_dexscr_trending()
.chain(chain)
.limit(limit)
.send()
.await;Sourcepub fn presign(&self) -> Presign<'_>
pub fn presign(&self) -> Presign<'_>
IPFS - Presign
Create a Presign URL for IPFS content
Sends a POST request to /v2/ipfs/presign
let response = client.presign()
.send()
.await;Sourcepub fn get(&self) -> Get<'_>
pub fn get(&self) -> Get<'_>
Job - Get
Retrieve the current status and result of a job by its ID
Sends a GET request to /v2/job/{id}
Arguments:
id: Job identifier
let response = client.get()
.id(id)
.send()
.await;Sourcepub fn streaming(&self) -> Streaming<'_>
pub fn streaming(&self) -> Streaming<'_>
Job - Streaming
Subscribe to real-time job status updates via Server-Sent Events (SSE). The connection will remain open until the job completes or an error occurs
Sends a GET request to /v2/job/{id}/streaming
Arguments:
id: Job identifier
let response = client.streaming()
.id(id)
.send()
.await;Sourcepub fn register_address(&self) -> RegisterAddress<'_>
pub fn register_address(&self) -> RegisterAddress<'_>
KYT - Register Address
Register an address for KYT monitoring
Sends a POST request to /v2/kyt/address
let response = client.register_address()
.body(body)
.send()
.await;Sourcepub fn get_address_risk(&self) -> GetAddressRisk<'_>
pub fn get_address_risk(&self) -> GetAddressRisk<'_>
KYT - Get Address Risk
Retrieve risk assessment for a registered address
Sends a GET request to /v2/kyt/addresses/{address}/risk
Arguments:
address: Address
let response = client.get_address_risk()
.address(address)
.send()
.await;Sourcepub fn register_transfer(&self) -> RegisterTransfer<'_>
pub fn register_transfer(&self) -> RegisterTransfer<'_>
KYT - Register Transfer
Register a transfer for KYT (Know Your Transaction) analysis
Sends a POST request to /v2/kyt/transfer
let response = client.register_transfer()
.body(body)
.send()
.await;Sourcepub fn get_transfer_alerts(&self) -> GetTransferAlerts<'_>
pub fn get_transfer_alerts(&self) -> GetTransferAlerts<'_>
KYT - Get Transfer Alerts
Retrieve alerts associated with a transfer
Sends a GET request to /v2/kyt/transfers/{transferId}/alerts
Arguments:
transfer_id: Transfer ID
let response = client.get_transfer_alerts()
.transfer_id(transfer_id)
.send()
.await;Sourcepub fn get_transfer_direct_exposure(&self) -> GetTransferDirectExposure<'_>
pub fn get_transfer_direct_exposure(&self) -> GetTransferDirectExposure<'_>
KYT - Get Transfer Direct Exposure
Get direct exposure information for a transfer
Sends a GET request to /v2/kyt/transfers/{transferId}/exposures/direct
Arguments:
transfer_id: Transfer ID
let response = client.get_transfer_direct_exposure()
.transfer_id(transfer_id)
.send()
.await;Sourcepub fn get_transfer_network_identifications(
&self,
) -> GetTransferNetworkIdentifications<'_>
pub fn get_transfer_network_identifications( &self, ) -> GetTransferNetworkIdentifications<'_>
KYT - Get Transfer Network Identifications
Get network identifications for a transfer
Sends a GET request to /v2/kyt/transfers/{transferId}/network-identifications
Arguments:
transfer_id: Transfer ID
let response = client.get_transfer_network_identifications()
.transfer_id(transfer_id)
.send()
.await;Sourcepub fn get_transfer_summary(&self) -> GetTransferSummary<'_>
pub fn get_transfer_summary(&self) -> GetTransferSummary<'_>
KYT - Get Transfer Summary
Retrieve summary information for a registered transfer
Sends a GET request to /v2/kyt/transfers/{transferId}/summary
Arguments:
transfer_id: Transfer ID
let response = client.get_transfer_summary()
.transfer_id(transfer_id)
.send()
.await;Sourcepub fn register_withdrawal(&self) -> RegisterWithdrawal<'_>
pub fn register_withdrawal(&self) -> RegisterWithdrawal<'_>
KYT - Register Withdrawal
Register a withdrawal for KYT (Know Your Transaction) analysis
Sends a POST request to /v2/kyt/withdrawal
let response = client.register_withdrawal()
.body(body)
.send()
.await;Sourcepub fn get_withdrawal_address_identifications(
&self,
) -> GetWithdrawalAddressIdentifications<'_>
pub fn get_withdrawal_address_identifications( &self, ) -> GetWithdrawalAddressIdentifications<'_>
KYT - Get Withdrawal Address Identifications
Get address identifications for a withdrawal
Sends a GET request to /v2/kyt/withdrawal/{withdrawalId}/address-identifications
Arguments:
withdrawal_id: Withdrawal ID
let response = client.get_withdrawal_address_identifications()
.withdrawal_id(withdrawal_id)
.send()
.await;Sourcepub fn get_withdrawal_alerts(&self) -> GetWithdrawalAlerts<'_>
pub fn get_withdrawal_alerts(&self) -> GetWithdrawalAlerts<'_>
KYT - Get Withdrawal Alerts
Retrieve alerts associated with a withdrawal
Sends a GET request to /v2/kyt/withdrawal/{withdrawalId}/alerts
Arguments:
withdrawal_id: Withdrawal ID
let response = client.get_withdrawal_alerts()
.withdrawal_id(withdrawal_id)
.send()
.await;Sourcepub fn get_withdrawal_direct_exposure(&self) -> GetWithdrawalDirectExposure<'_>
pub fn get_withdrawal_direct_exposure(&self) -> GetWithdrawalDirectExposure<'_>
KYT - Get Withdrawal Direct Exposure
Get direct exposure information for a withdrawal
Sends a GET request to /v2/kyt/withdrawal/{withdrawalId}/exposures/direct
Arguments:
withdrawal_id: Withdrawal ID
let response = client.get_withdrawal_direct_exposure()
.withdrawal_id(withdrawal_id)
.send()
.await;Sourcepub fn get_withdrawal_fraud_assessment(
&self,
) -> GetWithdrawalFraudAssessment<'_>
pub fn get_withdrawal_fraud_assessment( &self, ) -> GetWithdrawalFraudAssessment<'_>
KYT - Get Withdrawal Fraud Assessment
Get fraud assessment results for a withdrawal
Sends a GET request to /v2/kyt/withdrawal/{withdrawalId}/fraud-assessment
Arguments:
withdrawal_id: Withdrawal ID
let response = client.get_withdrawal_fraud_assessment()
.withdrawal_id(withdrawal_id)
.send()
.await;Sourcepub fn get_withdrawal_network_identifications(
&self,
) -> GetWithdrawalNetworkIdentifications<'_>
pub fn get_withdrawal_network_identifications( &self, ) -> GetWithdrawalNetworkIdentifications<'_>
KYT - Get Withdrawal Network Identifications
Get network identifications for a withdrawal
Sends a GET request to /v2/kyt/withdrawal/{withdrawalId}/network-identifications
Arguments:
withdrawal_id: Withdrawal ID
let response = client.get_withdrawal_network_identifications()
.withdrawal_id(withdrawal_id)
.send()
.await;Sourcepub fn get_withdrawal_summary(&self) -> GetWithdrawalSummary<'_>
pub fn get_withdrawal_summary(&self) -> GetWithdrawalSummary<'_>
KYT - Get Withdrawal Summary
Retrieve summary information for a registered withdrawal
Sends a GET request to /v2/kyt/withdrawal/{withdrawalId}/summary
Arguments:
withdrawal_id: Withdrawal ID
let response = client.get_withdrawal_summary()
.withdrawal_id(withdrawal_id)
.send()
.await;Sourcepub fn get_final_stretch_tokens(&self) -> GetFinalStretchTokens<'_>
pub fn get_final_stretch_tokens(&self) -> GetFinalStretchTokens<'_>
Ranking - FinalStretch Tokens
Return the finalStretch tokens
Sends a GET request to /v2/ranking/{chain}/finalStretch
Arguments:
chain: A chain name listed in supported networksexclude_keywords: Exclude Keywordsfilters: Filterslaunchpad_platform: Launchpad Platformrange_filters: Filter fieldsearch_keywords: Search Keywordssort_by: Sort fieldsort_direction: Sort Directiontag: Ranking tag filter
let response = client.get_final_stretch_tokens()
.chain(chain)
.exclude_keywords(exclude_keywords)
.filters(filters)
.launchpad_platform(launchpad_platform)
.range_filters(range_filters)
.search_keywords(search_keywords)
.sort_by(sort_by)
.sort_direction(sort_direction)
.tag(tag)
.send()
.await;Sourcepub fn get_hot_tokens(&self) -> GetHotTokens<'_>
pub fn get_hot_tokens(&self) -> GetHotTokens<'_>
Ranking - Hot Tokens
Retrieve a list of trending tokens
Sends a GET request to /v2/ranking/{chain}/hotTokens/{duration}
Arguments:
chain: A chain name listed in supported networksduration: Duration of the rankingexclude_keywords: Exclude Keywordsfilters: Filterslaunchpad_platform: Launchpad Platformrange_filters: Filter fieldsearch_keywords: Search Keywordssort_by: Sort fieldsort_direction: Sort Directiontag: Ranking tag filter
let response = client.get_hot_tokens()
.chain(chain)
.duration(duration)
.exclude_keywords(exclude_keywords)
.filters(filters)
.launchpad_platform(launchpad_platform)
.range_filters(range_filters)
.search_keywords(search_keywords)
.sort_by(sort_by)
.sort_direction(sort_direction)
.tag(tag)
.send()
.await;Sourcepub fn get_migrated_tokens(&self) -> GetMigratedTokens<'_>
pub fn get_migrated_tokens(&self) -> GetMigratedTokens<'_>
Ranking - Migrated Tokens
Return the migrated tokens
Sends a GET request to /v2/ranking/{chain}/migrated
Arguments:
chain: A chain name listed in supported networksexclude_keywords: Exclude Keywordsfilters: Filterslaunchpad_platform: Launchpad Platformrange_filters: Filter fieldsearch_keywords: Search Keywordssort_by: Sort fieldsort_direction: Sort Directiontag: Ranking tag filter
let response = client.get_migrated_tokens()
.chain(chain)
.exclude_keywords(exclude_keywords)
.filters(filters)
.launchpad_platform(launchpad_platform)
.range_filters(range_filters)
.search_keywords(search_keywords)
.sort_by(sort_by)
.sort_direction(sort_direction)
.tag(tag)
.send()
.await;Sourcepub fn get_new_tokens(&self) -> GetNewTokens<'_>
pub fn get_new_tokens(&self) -> GetNewTokens<'_>
Ranking - New Tokens
Return the latest 100 tokens
Sends a GET request to /v2/ranking/{chain}/newTokens
Arguments:
chain: A chain name listed in supported networksexclude_keywords: Exclude Keywordsfilters: Filterslaunchpad_platform: Launchpad Platformrange_filters: Filter fieldsearch_keywords: Search Keywordssort_by: Sort fieldsort_direction: Sort Directiontag: Ranking tag filter
let response = client.get_new_tokens()
.chain(chain)
.exclude_keywords(exclude_keywords)
.filters(filters)
.launchpad_platform(launchpad_platform)
.range_filters(range_filters)
.search_keywords(search_keywords)
.sort_by(sort_by)
.sort_direction(sort_direction)
.tag(tag)
.send()
.await;Sourcepub fn get_stocks_tokens(&self) -> GetStocksTokens<'_>
pub fn get_stocks_tokens(&self) -> GetStocksTokens<'_>
Ranking - Stocks Tokens
Return the stocks tokens
Sends a GET request to /v2/ranking/{chain}/stocks
Arguments:
chain: A chain name listed in supported networksexclude_keywords: Exclude Keywordsfilters: Filterslaunchpad_platform: Launchpad Platformrange_filters: Filter fieldsearch_keywords: Search Keywordssort_by: Sort fieldsort_direction: Sort Directiontag: Ranking tag filter
let response = client.get_stocks_tokens()
.chain(chain)
.exclude_keywords(exclude_keywords)
.filters(filters)
.launchpad_platform(launchpad_platform)
.range_filters(range_filters)
.search_keywords(search_keywords)
.sort_by(sort_by)
.sort_direction(sort_direction)
.tag(tag)
.send()
.await;Sourcepub fn get_redpackets(&self) -> GetRedpackets<'_>
pub fn get_redpackets(&self) -> GetRedpackets<'_>
RedPacket - GetRedpackets
Get the redpackets list
Sends a GET request to /v2/redpacket
Arguments:
chain: Blockchain network for the red packetcreator: Creator wallet addresscursor: Pagination cursordirection: Pagination directionlimit: Number of results per page
let response = client.get_redpackets()
.chain(chain)
.creator(creator)
.cursor(cursor)
.direction(direction)
.limit(limit)
.send()
.await;Sourcepub fn get_claims_by_address(&self) -> GetClaimsByAddress<'_>
pub fn get_claims_by_address(&self) -> GetClaimsByAddress<'_>
RedPacket - GetClaimsByAddress
Check the record of redpacket collection by the claimer address
Sends a GET request to /v2/redpacket/wallet/{address}/claims
Arguments:
address: An address of a walletcursor: Pagination cursordirection: Pagination directionlimit: Number of results per page
let response = client.get_claims_by_address()
.address(address)
.cursor(cursor)
.direction(direction)
.limit(limit)
.send()
.await;Sourcepub fn get_redpackets_by_address(&self) -> GetRedpacketsByAddress<'_>
pub fn get_redpackets_by_address(&self) -> GetRedpacketsByAddress<'_>
RedPacket - GetRedpacketsByAddress
Get the redpackets list by the creator address
Sends a GET request to /v2/redpacket/wallet/{address}/redpackets
Arguments:
address: An address of a walletcursor: Pagination cursordirection: Pagination directionlimit: Number of results per page
let response = client.get_redpackets_by_address()
.address(address)
.cursor(cursor)
.direction(direction)
.limit(limit)
.send()
.await;Sourcepub fn claim_redpacket(&self) -> ClaimRedpacket<'_>
pub fn claim_redpacket(&self) -> ClaimRedpacket<'_>
RedPacket - Claim
Claim tokens from an existing red packet
Sends a POST request to /v2/redpacket/{chain}/claim
Arguments:
chain: A chain name listed in supported networksbody
let response = client.claim_redpacket()
.chain(chain)
.body(body)
.send()
.await;Sourcepub fn create_redpacket(&self) -> CreateRedpacket<'_>
pub fn create_redpacket(&self) -> CreateRedpacket<'_>
RedPacket - Create
Create a new red packet with specified amount and quantity
Sends a POST request to /v2/redpacket/{chain}/create
Arguments:
chain: A chain name listed in supported networksbody
let response = client.create_redpacket()
.chain(chain)
.body(body)
.send()
.await;Sourcepub fn redpacket_send(&self) -> RedpacketSend<'_>
pub fn redpacket_send(&self) -> RedpacketSend<'_>
RedPacket - Send
Transactions related to redpacket
Sends a POST request to /v2/redpacket/{chain}/send
Arguments:
chain: A chain name listed in supported networksbody
let response = client.redpacket_send()
.chain(chain)
.body(body)
.send()
.await;Sourcepub fn get_redpacket(&self) -> GetRedpacket<'_>
pub fn get_redpacket(&self) -> GetRedpacket<'_>
RedPacket - Get
Query redpacket information
Sends a GET request to /v2/redpacket/{id}
Arguments:
id: Red packet identifier
let response = client.get_redpacket()
.id(id)
.send()
.await;Sourcepub fn get_claims(&self) -> GetClaims<'_>
pub fn get_claims(&self) -> GetClaims<'_>
RedPacket - GetClaims
Check the record of redpacket collection
Sends a GET request to /v2/redpacket/{id}/claims
Arguments:
id: Red packet identifiercursor: Pagination cursordirection: Pagination directionlimit: Number of results per page
let response = client.get_claims()
.id(id)
.cursor(cursor)
.direction(direction)
.limit(limit)
.send()
.await;Sourcepub fn search(&self) -> Search<'_>
pub fn search(&self) -> Search<'_>
Token - Search
Search tokens by name, symbol or address
Sends a GET request to /v2/token/search
Arguments:
chains: Chain filtercursor: Pagination cursordirection: Pagination direction (next or prev)limit: Number of results per pagemode: Search mode: fast (default, returns basic fields) or normal (returns full token details)protocols: Protocol filterq: Search query string for token name, symbol or addresssort: Sort directionsort_by: Field to sort by
let response = client.search()
.chains(chains)
.cursor(cursor)
.direction(direction)
.limit(limit)
.mode(mode)
.protocols(protocols)
.q(q)
.sort(sort)
.sort_by(sort_by)
.send()
.await;Sourcepub fn get_dev_tokens(&self) -> GetDevTokens<'_>
pub fn get_dev_tokens(&self) -> GetDevTokens<'_>
Token - Get Dev Tokens
Retrieve all tokens created by a specific developer address
Sends a GET request to /v2/token/{chain}/dev/{devAddress}/tokens
Arguments:
chain: A chain name listed in supported networksdev_address: An address of a usercursor: Pagination cursordirection: Pagination direction (next or prev)limit: Number of results per page
let response = client.get_dev_tokens()
.chain(chain)
.dev_address(dev_address)
.cursor(cursor)
.direction(direction)
.limit(limit)
.send()
.await;Sourcepub fn list_token(&self) -> ListToken<'_>
pub fn list_token(&self) -> ListToken<'_>
Token - List (Filtered)
Get filtered token list with range conditions
Sends a GET request to /v2/token/{chain}/list
Arguments:
chain: A chain name listed in supported networkscursor: Pagination cursordirection: Pagination direction (next or prev)limit: Number of results per pagemax_h1_buy_volume_in_usd: Maximum 1h buy volume in USDmax_h1_buyers: Maximum 1h buyer countmax_h1_buys: Maximum 1h buy countmax_h1_price_change_ratio: Maximum 1h price change ratiomax_h1_sell_volume_in_usd: Maximum 1h sell volume in USDmax_h1_sellers: Maximum 1h seller countmax_h1_sells: Maximum 1h sell countmax_h1_trades: Maximum 1h trade countmax_h1_volume_in_usd: Maximum 1h volume in USDmax_h24_buy_volume_in_usd: Maximum 24h buy volume in USDmax_h24_buyers: Maximum 24h buyer countmax_h24_buys: Maximum 24h buy countmax_h24_price_change_ratio: Maximum 24h price change ratiomax_h24_sell_volume_in_usd: Maximum 24h sell volume in USDmax_h24_sellers: Maximum 24h seller countmax_h24_sells: Maximum 24h sell countmax_h24_trades: Maximum 24h trade countmax_h24_volume_in_usd: Maximum 24h volume in USDmax_h4_buy_volume_in_usd: Maximum 4h buy volume in USDmax_h4_buyers: Maximum 4h buyer countmax_h4_buys: Maximum 4h buy countmax_h4_price_change_ratio: Maximum 4h price change ratiomax_h4_sell_volume_in_usd: Maximum 4h sell volume in USDmax_h4_sellers: Maximum 4h seller countmax_h4_sells: Maximum 4h sell countmax_h4_trades: Maximum 4h trade countmax_h4_volume_in_usd: Maximum 4h volume in USDmax_m15_buy_volume_in_usd: Maximum 15min buy volume in USDmax_m15_buyers: Maximum 15min buyer countmax_m15_buys: Maximum 15min buy countmax_m15_price_change_ratio: Maximum 15min price change ratiomax_m15_sell_volume_in_usd: Maximum 15min sell volume in USDmax_m15_sellers: Maximum 15min seller countmax_m15_sells: Maximum 15min sell countmax_m15_trades: Maximum 15min trade countmax_m15_volume_in_usd: Maximum 15min volume in USDmax_m1_buy_volume_in_usd: Maximum 1min buy volume in USDmax_m1_buyers: Maximum 1min buyer countmax_m1_buys: Maximum 1min buy countmax_m1_price_change_ratio: Maximum 1min price change ratiomax_m1_sell_volume_in_usd: Maximum 1min sell volume in USDmax_m1_sellers: Maximum 1min seller countmax_m1_sells: Maximum 1min sell countmax_m1_trades: Maximum 1min trade countmax_m1_volume_in_usd: Maximum 1min volume in USDmax_m30_buy_volume_in_usd: Maximum 30min buy volume in USDmax_m30_buyers: Maximum 30min buyer countmax_m30_buys: Maximum 30min buy countmax_m30_price_change_ratio: Maximum 30min price change ratiomax_m30_sell_volume_in_usd: Maximum 30min sell volume in USDmax_m30_sellers: Maximum 30min seller countmax_m30_sells: Maximum 30min sell countmax_m30_trades: Maximum 30min trade countmax_m30_volume_in_usd: Maximum 30min volume in USDmax_m5_buy_volume_in_usd: Maximum 5min buy volume in USDmax_m5_buyers: Maximum 5min buyer countmax_m5_buys: Maximum 5min buy countmax_m5_price_change_ratio: Maximum 5min price change ratiomax_m5_sell_volume_in_usd: Maximum 5min sell volume in USDmax_m5_sellers: Maximum 5min seller countmax_m5_sells: Maximum 5min sell countmax_m5_trades: Maximum 5min trade countmax_m5_volume_in_usd: Maximum 5min volume in USDmin_h1_buy_volume_in_usd: Minimum 1h buy volume in USDmin_h1_buyers: Minimum 1h buyer countmin_h1_buys: Minimum 1h buy countmin_h1_price_change_ratio: Minimum 1h price change ratiomin_h1_sell_volume_in_usd: Minimum 1h sell volume in USDmin_h1_sellers: Minimum 1h seller countmin_h1_sells: Minimum 1h sell countmin_h1_trades: Minimum 1h trade countmin_h1_volume_in_usd: Minimum 1h volume in USDmin_h24_buy_volume_in_usd: Minimum 24h buy volume in USDmin_h24_buyers: Minimum 24h buyer countmin_h24_buys: Minimum 24h buy countmin_h24_price_change_ratio: Minimum 24h price change ratiomin_h24_sell_volume_in_usd: Minimum 24h sell volume in USDmin_h24_sellers: Minimum 24h seller countmin_h24_sells: Minimum 24h sell countmin_h24_trades: Minimum 24h trade countmin_h24_volume_in_usd: Minimum 24h volume in USDmin_h4_buy_volume_in_usd: Minimum 4h buy volume in USDmin_h4_buyers: Minimum 4h buyer countmin_h4_buys: Minimum 4h buy countmin_h4_price_change_ratio: Minimum 4h price change ratiomin_h4_sell_volume_in_usd: Minimum 4h sell volume in USDmin_h4_sellers: Minimum 4h seller countmin_h4_sells: Minimum 4h sell countmin_h4_trades: Minimum 4h trade countmin_h4_volume_in_usd: Minimum 4h volume in USDmin_m15_buy_volume_in_usd: Minimum 15min buy volume in USDmin_m15_buyers: Minimum 15min buyer countmin_m15_buys: Minimum 15min buy countmin_m15_price_change_ratio: Minimum 15min price change ratiomin_m15_sell_volume_in_usd: Minimum 15min sell volume in USDmin_m15_sellers: Minimum 15min seller countmin_m15_sells: Minimum 15min sell countmin_m15_trades: Minimum 15min trade countmin_m15_volume_in_usd: Minimum 15min volume in USDmin_m1_buy_volume_in_usd: Minimum 1min buy volume in USDmin_m1_buyers: Minimum 1min buyer countmin_m1_buys: Minimum 1min buy countmin_m1_price_change_ratio: Minimum 1min price change ratiomin_m1_sell_volume_in_usd: Minimum 1min sell volume in USDmin_m1_sellers: Minimum 1min seller countmin_m1_sells: Minimum 1min sell countmin_m1_trades: Minimum 1min trade countmin_m1_volume_in_usd: Minimum 1min volume in USDmin_m30_buy_volume_in_usd: Minimum 30min buy volume in USDmin_m30_buyers: Minimum 30min buyer countmin_m30_buys: Minimum 30min buy countmin_m30_price_change_ratio: Minimum 30min price change ratiomin_m30_sell_volume_in_usd: Minimum 30min sell volume in USDmin_m30_sellers: Minimum 30min seller countmin_m30_sells: Minimum 30min sell countmin_m30_trades: Minimum 30min trade countmin_m30_volume_in_usd: Minimum 30min volume in USDmin_m5_buy_volume_in_usd: Minimum 5min buy volume in USDmin_m5_buyers: Minimum 5min buyer countmin_m5_buys: Minimum 5min buy countmin_m5_price_change_ratio: Minimum 5min price change ratiomin_m5_sell_volume_in_usd: Minimum 5min sell volume in USDmin_m5_sellers: Minimum 5min seller countmin_m5_sells: Minimum 5min sell countmin_m5_trades: Minimum 5min trade countmin_m5_volume_in_usd: Minimum 5min volume in USDsort: Sort direction (asc or desc)sort_by: Sort by field
let response = client.list_token()
.chain(chain)
.cursor(cursor)
.direction(direction)
.limit(limit)
.max_h1_buy_volume_in_usd(max_h1_buy_volume_in_usd)
.max_h1_buyers(max_h1_buyers)
.max_h1_buys(max_h1_buys)
.max_h1_price_change_ratio(max_h1_price_change_ratio)
.max_h1_sell_volume_in_usd(max_h1_sell_volume_in_usd)
.max_h1_sellers(max_h1_sellers)
.max_h1_sells(max_h1_sells)
.max_h1_trades(max_h1_trades)
.max_h1_volume_in_usd(max_h1_volume_in_usd)
.max_h24_buy_volume_in_usd(max_h24_buy_volume_in_usd)
.max_h24_buyers(max_h24_buyers)
.max_h24_buys(max_h24_buys)
.max_h24_price_change_ratio(max_h24_price_change_ratio)
.max_h24_sell_volume_in_usd(max_h24_sell_volume_in_usd)
.max_h24_sellers(max_h24_sellers)
.max_h24_sells(max_h24_sells)
.max_h24_trades(max_h24_trades)
.max_h24_volume_in_usd(max_h24_volume_in_usd)
.max_h4_buy_volume_in_usd(max_h4_buy_volume_in_usd)
.max_h4_buyers(max_h4_buyers)
.max_h4_buys(max_h4_buys)
.max_h4_price_change_ratio(max_h4_price_change_ratio)
.max_h4_sell_volume_in_usd(max_h4_sell_volume_in_usd)
.max_h4_sellers(max_h4_sellers)
.max_h4_sells(max_h4_sells)
.max_h4_trades(max_h4_trades)
.max_h4_volume_in_usd(max_h4_volume_in_usd)
.max_m15_buy_volume_in_usd(max_m15_buy_volume_in_usd)
.max_m15_buyers(max_m15_buyers)
.max_m15_buys(max_m15_buys)
.max_m15_price_change_ratio(max_m15_price_change_ratio)
.max_m15_sell_volume_in_usd(max_m15_sell_volume_in_usd)
.max_m15_sellers(max_m15_sellers)
.max_m15_sells(max_m15_sells)
.max_m15_trades(max_m15_trades)
.max_m15_volume_in_usd(max_m15_volume_in_usd)
.max_m1_buy_volume_in_usd(max_m1_buy_volume_in_usd)
.max_m1_buyers(max_m1_buyers)
.max_m1_buys(max_m1_buys)
.max_m1_price_change_ratio(max_m1_price_change_ratio)
.max_m1_sell_volume_in_usd(max_m1_sell_volume_in_usd)
.max_m1_sellers(max_m1_sellers)
.max_m1_sells(max_m1_sells)
.max_m1_trades(max_m1_trades)
.max_m1_volume_in_usd(max_m1_volume_in_usd)
.max_m30_buy_volume_in_usd(max_m30_buy_volume_in_usd)
.max_m30_buyers(max_m30_buyers)
.max_m30_buys(max_m30_buys)
.max_m30_price_change_ratio(max_m30_price_change_ratio)
.max_m30_sell_volume_in_usd(max_m30_sell_volume_in_usd)
.max_m30_sellers(max_m30_sellers)
.max_m30_sells(max_m30_sells)
.max_m30_trades(max_m30_trades)
.max_m30_volume_in_usd(max_m30_volume_in_usd)
.max_m5_buy_volume_in_usd(max_m5_buy_volume_in_usd)
.max_m5_buyers(max_m5_buyers)
.max_m5_buys(max_m5_buys)
.max_m5_price_change_ratio(max_m5_price_change_ratio)
.max_m5_sell_volume_in_usd(max_m5_sell_volume_in_usd)
.max_m5_sellers(max_m5_sellers)
.max_m5_sells(max_m5_sells)
.max_m5_trades(max_m5_trades)
.max_m5_volume_in_usd(max_m5_volume_in_usd)
.min_h1_buy_volume_in_usd(min_h1_buy_volume_in_usd)
.min_h1_buyers(min_h1_buyers)
.min_h1_buys(min_h1_buys)
.min_h1_price_change_ratio(min_h1_price_change_ratio)
.min_h1_sell_volume_in_usd(min_h1_sell_volume_in_usd)
.min_h1_sellers(min_h1_sellers)
.min_h1_sells(min_h1_sells)
.min_h1_trades(min_h1_trades)
.min_h1_volume_in_usd(min_h1_volume_in_usd)
.min_h24_buy_volume_in_usd(min_h24_buy_volume_in_usd)
.min_h24_buyers(min_h24_buyers)
.min_h24_buys(min_h24_buys)
.min_h24_price_change_ratio(min_h24_price_change_ratio)
.min_h24_sell_volume_in_usd(min_h24_sell_volume_in_usd)
.min_h24_sellers(min_h24_sellers)
.min_h24_sells(min_h24_sells)
.min_h24_trades(min_h24_trades)
.min_h24_volume_in_usd(min_h24_volume_in_usd)
.min_h4_buy_volume_in_usd(min_h4_buy_volume_in_usd)
.min_h4_buyers(min_h4_buyers)
.min_h4_buys(min_h4_buys)
.min_h4_price_change_ratio(min_h4_price_change_ratio)
.min_h4_sell_volume_in_usd(min_h4_sell_volume_in_usd)
.min_h4_sellers(min_h4_sellers)
.min_h4_sells(min_h4_sells)
.min_h4_trades(min_h4_trades)
.min_h4_volume_in_usd(min_h4_volume_in_usd)
.min_m15_buy_volume_in_usd(min_m15_buy_volume_in_usd)
.min_m15_buyers(min_m15_buyers)
.min_m15_buys(min_m15_buys)
.min_m15_price_change_ratio(min_m15_price_change_ratio)
.min_m15_sell_volume_in_usd(min_m15_sell_volume_in_usd)
.min_m15_sellers(min_m15_sellers)
.min_m15_sells(min_m15_sells)
.min_m15_trades(min_m15_trades)
.min_m15_volume_in_usd(min_m15_volume_in_usd)
.min_m1_buy_volume_in_usd(min_m1_buy_volume_in_usd)
.min_m1_buyers(min_m1_buyers)
.min_m1_buys(min_m1_buys)
.min_m1_price_change_ratio(min_m1_price_change_ratio)
.min_m1_sell_volume_in_usd(min_m1_sell_volume_in_usd)
.min_m1_sellers(min_m1_sellers)
.min_m1_sells(min_m1_sells)
.min_m1_trades(min_m1_trades)
.min_m1_volume_in_usd(min_m1_volume_in_usd)
.min_m30_buy_volume_in_usd(min_m30_buy_volume_in_usd)
.min_m30_buyers(min_m30_buyers)
.min_m30_buys(min_m30_buys)
.min_m30_price_change_ratio(min_m30_price_change_ratio)
.min_m30_sell_volume_in_usd(min_m30_sell_volume_in_usd)
.min_m30_sellers(min_m30_sellers)
.min_m30_sells(min_m30_sells)
.min_m30_trades(min_m30_trades)
.min_m30_volume_in_usd(min_m30_volume_in_usd)
.min_m5_buy_volume_in_usd(min_m5_buy_volume_in_usd)
.min_m5_buyers(min_m5_buyers)
.min_m5_buys(min_m5_buys)
.min_m5_price_change_ratio(min_m5_price_change_ratio)
.min_m5_sell_volume_in_usd(min_m5_sell_volume_in_usd)
.min_m5_sellers(min_m5_sellers)
.min_m5_sells(min_m5_sells)
.min_m5_trades(min_m5_trades)
.min_m5_volume_in_usd(min_m5_volume_in_usd)
.sort(sort)
.sort_by(sort_by)
.send()
.await;Sourcepub fn get_market_data_multi(&self) -> GetMarketDataMulti<'_>
pub fn get_market_data_multi(&self) -> GetMarketDataMulti<'_>
Token - Market Data (Multi)
Get market data for multiple tokens
Sends a GET request to /v2/token/{chain}/marketData/multi
Arguments:
chain: A chain name listed in supported networkstoken_addresses: A list of token addresses in string separated by commas (,). Maximum 100 token addresses allowed
let response = client.get_market_data_multi()
.chain(chain)
.token_addresses(token_addresses)
.send()
.await;Sourcepub fn get_metadata_multi(&self) -> GetMetadataMulti<'_>
pub fn get_metadata_multi(&self) -> GetMetadataMulti<'_>
Token - Metadata (Multi)
Get metadata for multiple tokens
Sends a GET request to /v2/token/{chain}/metadata/multi
Arguments:
chain: A chain name listed in supported networkstoken_addresses: A list of token addresses in string separated by commas (,). Maximum 100 token addresses allowed
let response = client.get_metadata_multi()
.chain(chain)
.token_addresses(token_addresses)
.send()
.await;Sourcepub fn get_tokens(&self) -> GetTokens<'_>
pub fn get_tokens(&self) -> GetTokens<'_>
Token - Detail (Multi)
Get detail of tokens
Sends a GET request to /v2/token/{chain}/multi
Arguments:
chain: A chain name listed in supported networksfilter_by: DTO.TOKEN.REQUEST.FILTER_BY (JSON array of filter conditions)sort_by: Sort fieldsort_direction: Sort Directiontoken_addresses: A list of token addresses in string separated by commas (,). Maximum 100 token addresses allowed
let response = client.get_tokens()
.chain(chain)
.filter_by(filter_by)
.sort_by(sort_by)
.sort_direction(sort_direction)
.token_addresses(token_addresses)
.send()
.await;Sourcepub fn get_pair_candles(&self) -> GetPairCandles<'_>
pub fn get_pair_candles(&self) -> GetPairCandles<'_>
Pair - Candles
Get OHLCV candlestick data for a trading pair (format: TOKEN_A_ADDRESS-TOKEN_B_ADDRESS)
Sends a GET request to /v2/token/{chain}/pair/{pair}/candles
Arguments:
chain: A chain name listed in supported networkspair: Trading pair identifier (format: TOKEN_A_ADDRESS-TOKEN_B_ADDRESS). The pair will be automatically sortedfrom: Start timestamp (Unix epoch in seconds)limit: Number of candles to returnprice_type: Price type: usd (default) or native token priceresolution: Time resolution for candle datato: End timestamp (Unix epoch in seconds)
let response = client.get_pair_candles()
.chain(chain)
.pair(pair)
.from(from)
.limit(limit)
.price_type(price_type)
.resolution(resolution)
.to(to)
.send()
.await;Sourcepub fn get_pool_candles(&self) -> GetPoolCandles<'_>
pub fn get_pool_candles(&self) -> GetPoolCandles<'_>
Pool - Candles
Get OHLCV candlestick data for a specific liquidity pool
Sends a GET request to /v2/token/{chain}/pool/{poolAddress}/candles
Arguments:
chain: A chain name listed in supported networkspool_address: A pool addressfrom: Start timestamp (Unix epoch in seconds)limit: Number of candles to returnprice_type: Price type: usd (default) or native token priceresolution: Time resolution for candle datato: End timestamp (Unix epoch in seconds)
let response = client.get_pool_candles()
.chain(chain)
.pool_address(pool_address)
.from(from)
.limit(limit)
.price_type(price_type)
.resolution(resolution)
.to(to)
.send()
.await;Sourcepub fn get_stats_multi(&self) -> GetStatsMulti<'_>
pub fn get_stats_multi(&self) -> GetStatsMulti<'_>
Token - Stats (Multi)
Get statistics for multiple tokens
Sends a GET request to /v2/token/{chain}/stats/multi
Arguments:
chain: A chain name listed in supported networkstoken_addresses: A list of token addresses in string separated by commas (,). Maximum 100 token addresses allowed
let response = client.get_stats_multi()
.chain(chain)
.token_addresses(token_addresses)
.send()
.await;Sourcepub fn get_token(&self) -> GetToken<'_>
pub fn get_token(&self) -> GetToken<'_>
Token - Detail
Get detail of token
Sends a GET request to /v2/token/{chain}/{tokenAddress}
Arguments:
chain: A chain name listed in supported networkstoken_address: An address of a token
let response = client.get_token()
.chain(chain)
.token_address(token_address)
.send()
.await;Sourcepub fn get_candles(&self) -> GetCandles<'_>
pub fn get_candles(&self) -> GetCandles<'_>
Token - Candles
Get token price candles
Sends a GET request to /v2/token/{chain}/{tokenAddress}/candles
Arguments:
chain: A chain name listed in supported networkstoken_address: An address of a tokenfrom: Start timestamp (Unix epoch in seconds)limit: Number of candles to returnprice_type: Price type: usd (default) or native token priceresolution: Time resolution for candle datato: End timestamp (Unix epoch in seconds)
let response = client.get_candles()
.chain(chain)
.token_address(token_address)
.from(from)
.limit(limit)
.price_type(price_type)
.resolution(resolution)
.to(to)
.send()
.await;Sourcepub fn get_creation(&self) -> GetCreation<'_>
pub fn get_creation(&self) -> GetCreation<'_>
Token - Creation
Get token creation information
Sends a GET request to /v2/token/{chain}/{tokenAddress}/creation
Arguments:
chain: A chain name listed in supported networkstoken_address: An address of a token
let response = client.get_creation()
.chain(chain)
.token_address(token_address)
.send()
.await;Sourcepub fn get_fee_estimates(&self) -> GetFeeEstimates<'_>
pub fn get_fee_estimates(&self) -> GetFeeEstimates<'_>
CONTROLLER.TOKEN.GET_FEE_ESTIMATES.SUMMARY
CONTROLLER.TOKEN.GET_FEE_ESTIMATES.DESCRIPTION
Sends a GET request to /v2/token/{chain}/{tokenAddress}/fee-estimates
Arguments:
chain: A chain name listed in supported networkstoken_address: An address of a token
let response = client.get_fee_estimates()
.chain(chain)
.token_address(token_address)
.send()
.await;Sourcepub fn get_holder_trend(&self) -> GetHolderTrend<'_>
pub fn get_holder_trend(&self) -> GetHolderTrend<'_>
Token - Holder Trend
Get historical holder count trend data for a token with customizable resolution and time range
Sends a GET request to /v2/token/{chain}/{tokenAddress}/holderTrend
Arguments:
chain: A chain name listed in supported networkstoken_address: An address of a tokenfrom: DTO.TOKEN.HOLDER_TREND.FROM Start timestamp in Unix milliseconds (default: 30 days ago)resolution: DTO.TOKEN.HOLDER_TREND.RESOLUTION Aggregation resolution: 1h (default) | 1dto: DTO.TOKEN.HOLDER_TREND.TO End timestamp in Unix milliseconds (default: now)
let response = client.get_holder_trend()
.chain(chain)
.token_address(token_address)
.from(from)
.resolution(resolution)
.to(to)
.send()
.await;Sourcepub fn get_holders(&self) -> GetHolders<'_>
pub fn get_holders(&self) -> GetHolders<'_>
Token - Holders
Get holders of a token
Sends a GET request to /v2/token/{chain}/{tokenAddress}/holders
Arguments:
chain: A chain name listed in supported networkstoken_address: An address of a tokencursor: Pagination cursordirection: Pagination direction (next or prev)limit: Number of results per pagemin_cost_usd: Minimum position cost in USD (inclusive). Filters out holders whose open position cost is below this threshold. Maps to OpenSearch fieldposition_cost_in_usd.sort_by: DTO.TOKEN.HOLDERS.SORT_BY Sort by: holdingUsd (default) | lastActiveAt | profit | buyVolume | sellVolumetag: Filter by wallet tag: smart | kol | sniper | dev | bundle | bluechip | fresh | insider | pro | sandwich | phishing
let response = client.get_holders()
.chain(chain)
.token_address(token_address)
.cursor(cursor)
.direction(direction)
.limit(limit)
.min_cost_usd(min_cost_usd)
.sort_by(sort_by)
.tag(tag)
.send()
.await;Sourcepub fn get_holders_multi(&self) -> GetHoldersMulti<'_>
pub fn get_holders_multi(&self) -> GetHoldersMulti<'_>
Token - Holders (Multi)
Get holders information for multiple wallet addresses
Sends a GET request to /v2/token/{chain}/{tokenAddress}/holders/multi
Arguments:
chain: A chain name listed in supported networkstoken_address: An address of a tokenwallet_addresses: A list of wallet addresses in string separated by commas (,). Maximum 100 address addresses allowed
let response = client.get_holders_multi()
.chain(chain)
.token_address(token_address)
.wallet_addresses(wallet_addresses)
.send()
.await;Sourcepub fn get_token_liquidity_snapshots(&self) -> GetTokenLiquiditySnapshots<'_>
pub fn get_token_liquidity_snapshots(&self) -> GetTokenLiquiditySnapshots<'_>
Token - Liquidity Snapshots
Retrieve historical liquidity snapshots for a token. If a time parameter is provided, returns the nearest snapshot before or at that time.
Sends a GET request to /v2/token/{chain}/{tokenAddress}/liquiditySnapshots
Arguments:
chain: A chain name listed in supported networkstoken_address: An address of a tokencursor: Pagination cursordirection: Pagination direction (next or prev)limit: Number of results per pagetime: Target Unix timestamp for liquidity snapshot query
let response = client.get_token_liquidity_snapshots()
.chain(chain)
.token_address(token_address)
.cursor(cursor)
.direction(direction)
.limit(limit)
.time(time)
.send()
.await;Sourcepub fn get_logo_duplicates(&self) -> GetLogoDuplicates<'_>
pub fn get_logo_duplicates(&self) -> GetLogoDuplicates<'_>
CONTROLLER.TOKEN.GET_LOGO_DUPLICATES.SUMMARY
CONTROLLER.TOKEN.GET_LOGO_DUPLICATES.DESCRIPTION
Sends a GET request to /v2/token/{chain}/{tokenAddress}/logo-duplicates
Arguments:
chain: A chain name listed in supported networkstoken_address: An address of a token
let response = client.get_logo_duplicates()
.chain(chain)
.token_address(token_address)
.send()
.await;Sourcepub fn get_market_data(&self) -> GetMarketData<'_>
pub fn get_market_data(&self) -> GetMarketData<'_>
Token - Market Cap
Get the market cap of a token
Sends a GET request to /v2/token/{chain}/{tokenAddress}/marketData
Arguments:
chain: A chain name listed in supported networkstoken_address: An address of a token
let response = client.get_market_data()
.chain(chain)
.token_address(token_address)
.send()
.await;Sourcepub fn get_metadata(&self) -> GetMetadata<'_>
pub fn get_metadata(&self) -> GetMetadata<'_>
Token - Metadata
Get metadata of token
Sends a GET request to /v2/token/{chain}/{tokenAddress}/metadata
Arguments:
chain: A chain name listed in supported networkstoken_address: An address of a token
let response = client.get_metadata()
.chain(chain)
.token_address(token_address)
.send()
.await;Sourcepub fn get_mint_and_burn(&self) -> GetMintAndBurn<'_>
pub fn get_mint_and_burn(&self) -> GetMintAndBurn<'_>
Token - Mint and Burn
Get mint and burn information for a token
Sends a GET request to /v2/token/{chain}/{tokenAddress}/mintAndBurn
Arguments:
chain: A chain name listed in supported networkstoken_address: An address of a tokencursor: Pagination cursordirection: Pagination direction (next or prev)limit: Number of results per pagetype_: Filter type for mint and burn operations
let response = client.get_mint_and_burn()
.chain(chain)
.token_address(token_address)
.cursor(cursor)
.direction(direction)
.limit(limit)
.type_(type_)
.send()
.await;Sourcepub fn get_pools(&self) -> GetPools<'_>
pub fn get_pools(&self) -> GetPools<'_>
Token - Pools
Get all pools containing this token
Sends a GET request to /v2/token/{chain}/{tokenAddress}/pools
Arguments:
chain: A chain name listed in supported networkstoken_address: An address of a tokencursor: Pagination cursordirection: Pagination direction (next or prev)limit: Number of results per pagemax_tvl_in_sol: Maximum TVL in SOLmax_tvl_in_usd: Maximum TVL in USDmin_tvl_in_sol: Minimum TVL in SOLmin_tvl_in_usd: Minimum TVL in USDsort_by: Sort field (tvlInSol or tvlInUsd)sort_direction: Sort direction (asc or desc)
let response = client.get_pools()
.chain(chain)
.token_address(token_address)
.cursor(cursor)
.direction(direction)
.limit(limit)
.max_tvl_in_sol(max_tvl_in_sol)
.max_tvl_in_usd(max_tvl_in_usd)
.min_tvl_in_sol(min_tvl_in_sol)
.min_tvl_in_usd(min_tvl_in_usd)
.sort_by(sort_by)
.sort_direction(sort_direction)
.send()
.await;Sourcepub fn get_price_by_time(&self) -> GetPriceByTime<'_>
pub fn get_price_by_time(&self) -> GetPriceByTime<'_>
Token - Price by Time
Get token price at a specific timestamp
Sends a GET request to /v2/token/{chain}/{tokenAddress}/price
Arguments:
chain: A chain name listed in supported networkstoken_address: An address of a tokentimestamp: Price timestamp (Unix epoch in seconds)
let response = client.get_price_by_time()
.chain(chain)
.token_address(token_address)
.timestamp(timestamp)
.send()
.await;Sourcepub fn get_prices(&self) -> GetPrices<'_>
pub fn get_prices(&self) -> GetPrices<'_>
Token - Prices
Get historical price data for a token
Sends a GET request to /v2/token/{chain}/{tokenAddress}/prices
Arguments:
chain: A chain name listed in supported networkstoken_address: An address of a tokencursor: Pagination cursordirection: Pagination direction (next or prev)limit: Number of results per page
let response = client.get_prices()
.chain(chain)
.token_address(token_address)
.cursor(cursor)
.direction(direction)
.limit(limit)
.send()
.await;Sourcepub fn get_security(&self) -> GetSecurity<'_>
pub fn get_security(&self) -> GetSecurity<'_>
Token - Security
Get token security information
Sends a GET request to /v2/token/{chain}/{tokenAddress}/security
Arguments:
chain: A chain name listed in supported networkstoken_address: An address of a token
let response = client.get_security()
.chain(chain)
.token_address(token_address)
.send()
.await;Sourcepub fn get_token_similar(&self) -> GetTokenSimilar<'_>
pub fn get_token_similar(&self) -> GetTokenSimilar<'_>
Token - Similar
Find tokens similar to the specified token by image hash or normalized name
Sends a GET request to /v2/token/{chain}/{tokenAddress}/similar
Arguments:
chain: A chain name listed in supported networkstoken_address: An address of a tokenlimit: Maximum number of results (1-100)type_: Similarity type: Image or Name
let response = client.get_token_similar()
.chain(chain)
.token_address(token_address)
.limit(limit)
.type_(type_)
.send()
.await;Sourcepub fn get_stats(&self) -> GetStats<'_>
pub fn get_stats(&self) -> GetStats<'_>
Token - Stats
Get token statistics
Sends a GET request to /v2/token/{chain}/{tokenAddress}/stats
Arguments:
chain: A chain name listed in supported networkstoken_address: An address of a token
let response = client.get_stats()
.chain(chain)
.token_address(token_address)
.send()
.await;Sourcepub fn get_top_holders(&self) -> GetTopHolders<'_>
pub fn get_top_holders(&self) -> GetTopHolders<'_>
Token - Top Holders
Get the top 20 holders for a token
Sends a GET request to /v2/token/{chain}/{tokenAddress}/topHolders
Arguments:
chain: A chain name listed in supported networkstoken_address: An address of a tokencursor: Pagination cursordirection: Pagination direction (next or prev)limit: Number of results per pagemin_cost_usd: Minimum position cost in USD (inclusive). Filters out holders whose open position cost is below this threshold. Maps to OpenSearch fieldposition_cost_in_usd.sort_by: DTO.TOKEN.HOLDERS.SORT_BY Sort by: holdingUsd (default) | lastActiveAt | profit | buyVolume | sellVolumetag: Filter by wallet tag: smart | kol | sniper | dev | bundle | bluechip | fresh | insider | pro | sandwich | phishing
let response = client.get_top_holders()
.chain(chain)
.token_address(token_address)
.cursor(cursor)
.direction(direction)
.limit(limit)
.min_cost_usd(min_cost_usd)
.sort_by(sort_by)
.tag(tag)
.send()
.await;Sourcepub fn get_token_top_traders(&self) -> GetTokenTopTraders<'_>
pub fn get_token_top_traders(&self) -> GetTokenTopTraders<'_>
Get top traders for a token, sorted by profit or volume. Includes all historical traders (cleared positions included)
Sends a GET request to /v2/token/{chain}/{tokenAddress}/topTraders
Arguments:
chain: A chain name listed in supported networkstoken_address: An address of a tokencursor: Pagination cursordirection: Pagination direction (next or prev)limit: Number of results per pagesort_by: Sort by field: profit (default) | buyVolume | sellVolume | lastActiveAttag: Filter by wallet tag: smart | kol | sniper | dev | bundle | bluechip | fresh | insider | pro | sandwich | phishing
let response = client.get_token_top_traders()
.chain(chain)
.token_address(token_address)
.cursor(cursor)
.direction(direction)
.limit(limit)
.sort_by(sort_by)
.tag(tag)
.send()
.await;Sourcepub fn get_token_traders(&self) -> GetTokenTraders<'_>
pub fn get_token_traders(&self) -> GetTokenTraders<'_>
Token - Get Token Traders
Retrieve traders for a token by tag (fresh, sandwish, bundle, sniper, dev, pro, insider)
Sends a GET request to /v2/token/{chain}/{tokenAddress}/traders/{tag}
Arguments:
chain: A chain name listed in supported networkstoken_address: An address of a tokentag: Token trader tag (fresh, sandwish, bundle, sniper, dev, pro, insider)cursor: Pagination cursordirection: Pagination direction (next or prev)limit: Number of results per page
let response = client.get_token_traders()
.chain(chain)
.token_address(token_address)
.tag(tag)
.cursor(cursor)
.direction(direction)
.limit(limit)
.send()
.await;Sourcepub fn get_token_transfer_total(&self) -> GetTokenTransferTotal<'_>
pub fn get_token_transfer_total(&self) -> GetTokenTransferTotal<'_>
Token - Transfer Total
Get total count of transfers for a specific token with filters
Sends a GET request to /v2/token/{chain}/{tokenAddress}/transfer-total
Arguments:
chain: A chain name listed in supported networkstoken_address: An address of a tokenafter_timestamp: Filter transfers after this timestamp (Unix epoch seconds)before_timestamp: Filter transfers before this timestamp (Unix epoch seconds)
let response = client.get_token_transfer_total()
.chain(chain)
.token_address(token_address)
.after_timestamp(after_timestamp)
.before_timestamp(before_timestamp)
.send()
.await;Sourcepub fn get_token_transfers(&self) -> GetTokenTransfers<'_>
pub fn get_token_transfers(&self) -> GetTokenTransfers<'_>
Token - Transfer List
Get transfer history for a specific token
Sends a GET request to /v2/token/{chain}/{tokenAddress}/transfers
Arguments:
chain: A chain name listed in supported networkstoken_address: An address of a tokencursor: Pagination cursordirection: Pagination direction (next or prev)from_timestamp: Start timestamp (Unix epoch in seconds)limit: Number of results per pageto_timestamp: End timestamp (Unix epoch in seconds)
let response = client.get_token_transfers()
.chain(chain)
.token_address(token_address)
.cursor(cursor)
.direction(direction)
.from_timestamp(from_timestamp)
.limit(limit)
.to_timestamp(to_timestamp)
.send()
.await;Sourcepub fn get_trades(&self) -> GetTrades<'_>
pub fn get_trades(&self) -> GetTrades<'_>
Trade - List
Retrieve a list of token transactions
Sends a GET request to /v2/trade/{chain}
Arguments:
chain: A chain name listed in supported networksafter_block_height: Filter trades after this block heightafter_timestamp: End timestamp for filtering trades (Unix epoch in seconds)before_block_height: Filter trades before this block heightbefore_timestamp: Start timestamp for filtering trades (Unix epoch in seconds)cursor: Pagination cursordirection: Pagination direction (next or prev)limit: Number of results per pagepool_address: A pool addresstoken_address: An address of a tokentransactions_signature: Transaction signature/hashtype_: Trade type filterwallet_address: An address of a wallet
let response = client.get_trades()
.chain(chain)
.after_block_height(after_block_height)
.after_timestamp(after_timestamp)
.before_block_height(before_block_height)
.before_timestamp(before_timestamp)
.cursor(cursor)
.direction(direction)
.limit(limit)
.pool_address(pool_address)
.token_address(token_address)
.transactions_signature(transactions_signature)
.type_(type_)
.wallet_address(wallet_address)
.send()
.await;Sourcepub fn get_activities(&self) -> GetActivities<'_>
pub fn get_activities(&self) -> GetActivities<'_>
Activity - List
Get token activities including trades, liquidity operations, and other token-related activities
Sends a GET request to /v2/trade/{chain}/activities
Arguments:
chain: A chain name listed in supported networksafter_block_height: Filter trades after this block heightafter_timestamp: End timestamp for filtering trades (Unix epoch in seconds)before_block_height: Filter trades before this block heightbefore_timestamp: Start timestamp for filtering trades (Unix epoch in seconds)cursor: Pagination cursordirection: Pagination direction (next or prev)limit: Number of results per pagemaker: Filter by specific maker (trader) wallet address. Equivalent to filtering by accountOwnerAddress.min_amount_usd: Minimum trade value in USD (inclusive). Filters out small trades.pool_address: A pool addresssort_by: DTO.TRADE.SORT_BY Sort by: timestamp (default) | totalUsdtoken_address: An address of a tokentrader_tags: Filter by trader tag(s). Comma-separated list from: kol, smart, sniper, bundle, dev, bluechip, insider, fresh. Returns activities where the trader has ANY of the specified tags.transactions_signature: Transaction signature/hashtype_: Activity type filterwallet_address: An address of a wallet
let response = client.get_activities()
.chain(chain)
.after_block_height(after_block_height)
.after_timestamp(after_timestamp)
.before_block_height(before_block_height)
.before_timestamp(before_timestamp)
.cursor(cursor)
.direction(direction)
.limit(limit)
.maker(maker)
.min_amount_usd(min_amount_usd)
.pool_address(pool_address)
.sort_by(sort_by)
.token_address(token_address)
.trader_tags(trader_tags)
.transactions_signature(transactions_signature)
.type_(type_)
.wallet_address(wallet_address)
.send()
.await;Sourcepub fn get_top_traders(&self) -> GetTopTraders<'_>
pub fn get_top_traders(&self) -> GetTopTraders<'_>
Trade - Top Traders
Get top traders for a specific token
Sends a GET request to /v2/trade/{chain}/top-traders
Arguments:
chain: A chain name listed in supported networkscursor: Pagination cursordirection: Pagination direction (next or prev)limit: Number of results per pagesort_by: Field to sort trades bysort_type: Sort type for trade resultstime_frame: Time frame for filtering tradestoken_address: An address of a token
let response = client.get_top_traders()
.chain(chain)
.cursor(cursor)
.direction(direction)
.limit(limit)
.sort_by(sort_by)
.sort_type(sort_type)
.time_frame(time_frame)
.token_address(token_address)
.send()
.await;Sourcepub fn get_trader_gainers_losers(&self) -> GetTraderGainersLosers<'_>
pub fn get_trader_gainers_losers(&self) -> GetTraderGainersLosers<'_>
Trader - Gainers/Losers
Get top gainers or losers ranked by PnL
Sends a GET request to /v2/trade/{chain}/trader-gainers-losers
Arguments:
chain: A chain name listed in supported networkscursor: Pagination cursordirection: Pagination direction (next or prev)limit: Number of results per pageresolution: PnL time resolution (1d, 7d, or 30d)sort_type: Sort order (desc for gainers, asc for losers)
let response = client.get_trader_gainers_losers()
.chain(chain)
.cursor(cursor)
.direction(direction)
.limit(limit)
.resolution(resolution)
.sort_type(sort_type)
.send()
.await;Sourcepub fn get_gas_limit(&self) -> GetGasLimit<'_>
pub fn get_gas_limit(&self) -> GetGasLimit<'_>
Transaction - Estimate Gas Limit
Estimate the gas limit for an EVM transaction
Sends a POST request to /v2/transaction/{chain}/estimate-gas-limit
Arguments:
chain: A chain name listed in supported networksbody: Gas estimation parameters
let response = client.get_gas_limit()
.chain(chain)
.body(body)
.send()
.await;Sourcepub fn get_gas_price(&self) -> GetGasPrice<'_>
pub fn get_gas_price(&self) -> GetGasPrice<'_>
Transaction - Gas Price
Get the current gas price for an EVM chain
Sends a GET request to /v2/transaction/{chain}/gas-price
Arguments:
chain: A chain name listed in supported networks
let response = client.get_gas_price()
.chain(chain)
.send()
.await;Sourcepub fn send(&self) -> Send<'_>
pub fn send(&self) -> Send<'_>
Transaction - Send
Submit a signed transaction to the blockchain
Sends a POST request to /v2/transaction/{chain}/send
Arguments:
chain: A chain name listed in supported networksbody: Transaction parameters
let response = client.send()
.chain(chain)
.body(body)
.send()
.await;Sourcepub fn get_wallet_first_tx(&self) -> GetWalletFirstTx<'_>
pub fn get_wallet_first_tx(&self) -> GetWalletFirstTx<'_>
Wallet - First Tx Funded
Get the first funded transaction for one or more wallets
Sends a GET request to /v2/wallet/{chain}/first-tx
Arguments:
chain: A chain name listed in supported networkswallet_addresses: A list of wallet addresses in string separated by commas (,). Maximum 100 address addresses allowed
let response = client.get_wallet_first_tx()
.chain(chain)
.wallet_addresses(wallet_addresses)
.send()
.await;Sourcepub fn get_net_worth_summary(&self) -> GetNetWorthSummary<'_>
pub fn get_net_worth_summary(&self) -> GetNetWorthSummary<'_>
Wallet - Net Worth Summary (Multi)
Get current net worth summary for multiple wallets
Sends a GET request to /v2/wallet/{chain}/net-worth-summary
Arguments:
chain: A chain name listed in supported networkswallet_addresses: A list of wallet addresses in string separated by commas (,). Maximum 100 address addresses allowed
let response = client.get_net_worth_summary()
.chain(chain)
.wallet_addresses(wallet_addresses)
.send()
.await;Sourcepub fn get_pnl_by_wallet(&self) -> GetPnlByWallet<'_>
pub fn get_pnl_by_wallet(&self) -> GetPnlByWallet<'_>
Wallet - PnL By Wallet
Get PnL for a specific token across multiple wallets
Sends a GET request to /v2/wallet/{chain}/pnl-by-wallet
Arguments:
chain: A chain name listed in supported networksresolution: DTO.WALLET.PNL_DETAILS.RESOLUTIONtoken_address: An address of a tokenwallet_addresses: A list of wallet addresses in string separated by commas (,). Maximum 100 address addresses allowed
let response = client.get_pnl_by_wallet()
.chain(chain)
.resolution(resolution)
.token_address(token_address)
.wallet_addresses(wallet_addresses)
.send()
.await;Sourcepub fn get_balance_updates(&self) -> GetBalanceUpdates<'_>
pub fn get_balance_updates(&self) -> GetBalanceUpdates<'_>
Wallet - Balance Updates
Get wallet balance change history with filtering and pagination
Sends a GET request to /v2/wallet/{chain}/{walletAddress}/balance-updates
Arguments:
chain: A chain name listed in supported networkswallet_address: An address of a walletchange_type: Balance change direction filter (INCREASE or DECREASE)cursor: Pagination cursordirection: Pagination direction (next or prev)limit: Number of results per pagetime_from: Start timestamp (Unix epoch in seconds)time_to: End timestamp (Unix epoch in seconds)token_address: An address of a tokentype_: Balance type filter (SOL for native, SPL for tokens)
let response = client.get_balance_updates()
.chain(chain)
.wallet_address(wallet_address)
.change_type(change_type)
.cursor(cursor)
.direction(direction)
.limit(limit)
.time_from(time_from)
.time_to(time_to)
.token_address(token_address)
.type_(type_)
.send()
.await;Sourcepub fn calculate_pnl(&self) -> CalculatePnl<'_>
pub fn calculate_pnl(&self) -> CalculatePnl<'_>
Wallet - Calculate PNL
Calculate profit and loss for wallet tokens
Sends a POST request to /v2/wallet/{chain}/{walletAddress}/calculate-pnl
Arguments:
chain: A chain name listed in supported networkswallet_address: An address of a walletbody
let response = client.calculate_pnl()
.chain(chain)
.wallet_address(wallet_address)
.body(body)
.send()
.await;Sourcepub fn get_net_worth(&self) -> GetNetWorth<'_>
pub fn get_net_worth(&self) -> GetNetWorth<'_>
Wallet - Net Worth
Get current net worth of a wallet including all token holdings with prices
Sends a GET request to /v2/wallet/{chain}/{walletAddress}/net-worth
Arguments:
chain: A chain name listed in supported networkswallet_address: An address of a walletcursor: Pagination cursordirection: Pagination direction (next or prev)limit: Number of results per page
let response = client.get_net_worth()
.chain(chain)
.wallet_address(wallet_address)
.cursor(cursor)
.direction(direction)
.limit(limit)
.send()
.await;Sourcepub fn get_net_worth_chart(&self) -> GetNetWorthChart<'_>
pub fn get_net_worth_chart(&self) -> GetNetWorthChart<'_>
Wallet - Net Worth Chart
Get historical net worth chart data for a wallet with hourly snapshots
Sends a GET request to /v2/wallet/{chain}/{walletAddress}/net-worth-chart
Arguments:
chain: A chain name listed in supported networkswallet_address: An address of a wallethours: DTO.WALLET.NET_WORTH_CHART.HOURS (1-720, default 24)
let response = client.get_net_worth_chart()
.chain(chain)
.wallet_address(wallet_address)
.hours(hours)
.send()
.await;Sourcepub fn get_net_worth_details(&self) -> GetNetWorthDetails<'_>
pub fn get_net_worth_details(&self) -> GetNetWorthDetails<'_>
Wallet - Net Worth Details
Get detailed net worth breakdown for a wallet, supporting both real-time and historical snapshots
Sends a GET request to /v2/wallet/{chain}/{walletAddress}/net-worth-details
Arguments:
chain: A chain name listed in supported networkswallet_address: An address of a walletcursor: Pagination cursordirection: Pagination direction (next or prev)hours: DTO.WALLET.NET_WORTH_DETAILS.HOURS (0=realtime, 1-720=historical snapshot, default 0)limit: Number of results per page
let response = client.get_net_worth_details()
.chain(chain)
.wallet_address(wallet_address)
.cursor(cursor)
.direction(direction)
.hours(hours)
.limit(limit)
.send()
.await;Sourcepub fn get_net_worth_by_tokens(&self) -> GetNetWorthByTokens<'_>
pub fn get_net_worth_by_tokens(&self) -> GetNetWorthByTokens<'_>
Wallet - Net Worth By Tokens
Get net worth breakdown by tokens for a wallet
Sends a GET request to /v2/wallet/{chain}/{walletAddress}/net-worth/tokens
Arguments:
chain: A chain name listed in supported networkswallet_address: An address of a wallettoken_addresses: A list of token addresses in string separated by commas (,). Maximum 100 token addresses allowed
let response = client.get_net_worth_by_tokens()
.chain(chain)
.wallet_address(wallet_address)
.token_addresses(token_addresses)
.send()
.await;Sourcepub fn get_pnl(&self) -> GetPnl<'_>
pub fn get_pnl(&self) -> GetPnl<'_>
Wallet - PnL Summary
Get aggregated profit and loss summary for a wallet
Sends a GET request to /v2/wallet/{chain}/{walletAddress}/pnl
Arguments:
chain: A chain name listed in supported networkswallet_address: An address of a walletresolution: PnL time resolution (1d, 7d, 30d, or all)
let response = client.get_pnl()
.chain(chain)
.wallet_address(wallet_address)
.resolution(resolution)
.send()
.await;Sourcepub fn get_pnl_by_token(&self) -> GetPnlByToken<'_>
pub fn get_pnl_by_token(&self) -> GetPnlByToken<'_>
Wallet - PnL By Token
Get PnL for specific tokens in a wallet
Sends a GET request to /v2/wallet/{chain}/{walletAddress}/pnl-by-token
Arguments:
chain: A chain name listed in supported networkswallet_address: An address of a walletresolution: DTO.WALLET.PNL_DETAILS.RESOLUTIONtoken_addresses: A list of token addresses in string separated by commas (,). Maximum 100 token addresses allowed
let response = client.get_pnl_by_token()
.chain(chain)
.wallet_address(wallet_address)
.resolution(resolution)
.token_addresses(token_addresses)
.send()
.await;Sourcepub fn get_pnl_details(&self) -> GetPnlDetails<'_>
pub fn get_pnl_details(&self) -> GetPnlDetails<'_>
Wallet - PnL Details
Get per-token PnL breakdown for a wallet
Sends a GET request to /v2/wallet/{chain}/{walletAddress}/pnl-details
Arguments:
chain: A chain name listed in supported networkswallet_address: An address of a walletcursor: Pagination cursordirection: Pagination direction (next or prev)limit: Number of results per pageresolution: DTO.WALLET.PNL_DETAILS.RESOLUTION
let response = client.get_pnl_details()
.chain(chain)
.wallet_address(wallet_address)
.cursor(cursor)
.direction(direction)
.limit(limit)
.resolution(resolution)
.send()
.await;Sourcepub fn get_tokens_balance(&self) -> GetTokensBalance<'_>
pub fn get_tokens_balance(&self) -> GetTokensBalance<'_>
Wallet - Tokens Balance
Get token balances for a wallet with current prices
Sends a GET request to /v2/wallet/{chain}/{walletAddress}/tokens-balance
Arguments:
chain: A chain name listed in supported networkswallet_address: An address of a walletcursor: Pagination cursordirection: Pagination direction (next or prev)limit: Number of results per page
let response = client.get_tokens_balance()
.chain(chain)
.wallet_address(wallet_address)
.cursor(cursor)
.direction(direction)
.limit(limit)
.send()
.await;Sourcepub fn get_wallet_transfer_total(&self) -> GetWalletTransferTotal<'_>
pub fn get_wallet_transfer_total(&self) -> GetWalletTransferTotal<'_>
Wallet - Transfer Total
Get total count of transfers for a wallet with optional token filter
Sends a GET request to /v2/wallet/{chain}/{walletAddress}/transfer-total
Arguments:
chain: A chain name listed in supported networkswallet_address: An address of a walletfrom_timestamp: Filter transfers after this timestamp (Unix epoch seconds)max_token_amount: Maximum token amount filter (inclusive)max_token_amount_in_usd: Maximum token amount in USD filter (inclusive)min_token_amount: Minimum token amount filter (inclusive)min_token_amount_in_usd: Minimum token amount in USD filter (inclusive)to_timestamp: Filter transfers before this timestamp (Unix epoch seconds)token_address: An address of a token
let response = client.get_wallet_transfer_total()
.chain(chain)
.wallet_address(wallet_address)
.from_timestamp(from_timestamp)
.max_token_amount(max_token_amount)
.max_token_amount_in_usd(max_token_amount_in_usd)
.min_token_amount(min_token_amount)
.min_token_amount_in_usd(min_token_amount_in_usd)
.to_timestamp(to_timestamp)
.token_address(token_address)
.send()
.await;Sourcepub fn get_wallet_transfers(&self) -> GetWalletTransfers<'_>
pub fn get_wallet_transfers(&self) -> GetWalletTransfers<'_>
Wallet - Transfer List
Get transfer history for a wallet with optional token filter
Sends a GET request to /v2/wallet/{chain}/{walletAddress}/transfers
Arguments:
chain: A chain name listed in supported networkswallet_address: An address of a walletcursor: Pagination cursordirection: Pagination direction (next or prev)from_timestamp: Filter transfers after this timestamp (Unix epoch seconds)limit: Number of results per pagemax_token_amount: Maximum token amount filter (inclusive)max_token_amount_in_usd: Maximum token amount in USD filter (inclusive)min_token_amount: Minimum token amount filter (inclusive)min_token_amount_in_usd: Minimum token amount in USD filter (inclusive)to_timestamp: Filter transfers before this timestamp (Unix epoch seconds)token_address: An address of a token
let response = client.get_wallet_transfers()
.chain(chain)
.wallet_address(wallet_address)
.cursor(cursor)
.direction(direction)
.from_timestamp(from_timestamp)
.limit(limit)
.max_token_amount(max_token_amount)
.max_token_amount_in_usd(max_token_amount_in_usd)
.min_token_amount(min_token_amount)
.min_token_amount_in_usd(min_token_amount_in_usd)
.to_timestamp(to_timestamp)
.token_address(token_address)
.send()
.await;Sourcepub fn watchlist_add(&self) -> WatchlistAdd<'_>
pub fn watchlist_add(&self) -> WatchlistAdd<'_>
Watchlist - Add
Add the wallet address to the watchlist. Only the addresses in the watchlist have PNL data
Sends a POST request to /v2/watchlist/{chain}/{walletAddress}
Arguments:
chain: A chain name listed in supported networkswallet_address: An address of a wallet
let response = client.watchlist_add()
.chain(chain)
.wallet_address(wallet_address)
.send()
.await;Sourcepub fn list_endpoints(&self) -> ListEndpoints<'_>
pub fn list_endpoints(&self) -> ListEndpoints<'_>
Endpoint - List
Get list of webhook endpoints
Sends a GET request to /v2/webhook/endpoint
Arguments:
iterator: Pagination iteratorlimit: Number of results per pageorder: Sort order
let response = client.list_endpoints()
.iterator(iterator)
.limit(limit)
.order(order)
.send()
.await;Sourcepub fn create_endpoint(&self) -> CreateEndpoint<'_>
pub fn create_endpoint(&self) -> CreateEndpoint<'_>
Endpoint - Create
Create a new webhook endpoint
Sends a POST request to /v2/webhook/endpoint
let response = client.create_endpoint()
.body(body)
.send()
.await;Sourcepub fn update_endpoint(&self) -> UpdateEndpoint<'_>
pub fn update_endpoint(&self) -> UpdateEndpoint<'_>
Endpoint - Update
Update webhook endpoint configuration
Sends a PATCH request to /v2/webhook/endpoint
let response = client.update_endpoint()
.body(body)
.send()
.await;Sourcepub fn get_endpoint(&self) -> GetEndpoint<'_>
pub fn get_endpoint(&self) -> GetEndpoint<'_>
Endpoint - Get
Get webhook endpoint details
Sends a GET request to /v2/webhook/endpoint/{id}
Arguments:
id: Endpoint ID
let response = client.get_endpoint()
.id(id)
.send()
.await;Sourcepub fn delete_endpoint(&self) -> DeleteEndpoint<'_>
pub fn delete_endpoint(&self) -> DeleteEndpoint<'_>
Endpoint - Delete
Delete a webhook endpoint
Sends a DELETE request to /v2/webhook/endpoint/{id}
Arguments:
id: Endpoint ID
let response = client.delete_endpoint()
.id(id)
.send()
.await;Sourcepub fn get_endpoint_secret(&self) -> GetEndpointSecret<'_>
pub fn get_endpoint_secret(&self) -> GetEndpointSecret<'_>
Endpoint - Get Secret
Get webhook endpoint secret
Sends a GET request to /v2/webhook/endpoint/{id}/secret
Arguments:
id: Endpoint ID
let response = client.get_endpoint_secret()
.id(id)
.send()
.await;Sourcepub fn rotate_endpoint_secret(&self) -> RotateEndpointSecret<'_>
pub fn rotate_endpoint_secret(&self) -> RotateEndpointSecret<'_>
Endpoint - Rotate Secret
Rotate the secret key for a webhook endpoint
Sends a POST request to /v2/webhook/endpoint/{id}/secret/rotate
Arguments:
id: Endpoint ID
let response = client.rotate_endpoint_secret()
.id(id)
.send()
.await;Trait Implementations§
Source§impl ClientHooks for &Client
impl ClientHooks for &Client
Source§async fn pre<E>(
&self,
request: &mut Request,
info: &OperationInfo,
) -> Result<(), Error<E>>
async fn pre<E>( &self, request: &mut Request, info: &OperationInfo, ) -> Result<(), Error<E>>
Source§impl ClientInfo<()> for Client
impl ClientInfo<()> for Client
Source§fn api_version() -> &'static str
fn api_version() -> &'static str
Source§fn client(&self) -> &ClientWithMiddleware
fn client(&self) -> &ClientWithMiddleware
reqwest_middleware::ClientWithMiddleware used to make requests.