Client¶
cyhole.solscan.v2.client
¶
SolscanClient
¶
SolscanClient(
interaction: Solscan, headers: Any | None = None
)
Bases: APIClient
Client used for synchronous API calls for Solscan interaction on V2 API.
Source code in src/cyhole/solscan/v2/client.py
59 60 61 | |
get_account_transfers
¶
get_account_transfers(
account: str,
params: GetAccountTransferParam = GetAccountTransferParam(),
) -> GetAccountTransferResponse
Call the Solscan's V2 API endpoint GET Account Transfer for synchronous logic.
All the API endopint details are available on Solscan._get_account_transfers.
Source code in src/cyhole/solscan/v2/client.py
70 71 72 73 74 75 | |
get_account_token_nft_account
¶
get_account_token_nft_account(
account: str,
account_type: str,
page: int = 1,
page_size: int = SolscanPageSizeType.SIZE_10.value,
hide_zero: bool = True,
) -> GetAccountTokenNFTAccountResponse
Call the Solscan's V2 API endpoint GET Account Token/NFT Account for synchronous logic.
All the API endopint details are available on Solscan._get_account_token_nft_account.
Source code in src/cyhole/solscan/v2/client.py
77 78 79 80 81 82 83 84 85 86 87 88 89 | |
get_account_defi_activities
¶
get_account_defi_activities(
account: str,
params: GetAccountDefiActivitiesParam = GetAccountDefiActivitiesParam(),
) -> GetAccountDefiActivitiesResponse
Call the Solscan's V2 API endpoint GET Account DeFi Activities for synchronous logic.
All the API endopint details are available on Solscan._get_account_defi_activities.
Source code in src/cyhole/solscan/v2/client.py
91 92 93 94 95 96 | |
get_account_balance_change_activities
¶
get_account_balance_change_activities(
account: str,
params: GetAccountBalanceChangeActivitiesParam = GetAccountBalanceChangeActivitiesParam(),
) -> GetAccountBalanceChangeActivitiesResponse
Call the Solscan's V2 API endpoint GET Account Balance Change Activities for synchronous logic.
All the API endopint details are available on Solscan._get_account_balance_change_activities.
Source code in src/cyhole/solscan/v2/client.py
98 99 100 101 102 103 | |
get_account_transactions
¶
get_account_transactions(
account: str,
before_transaction: str | None = None,
limit: int = SolscanReturnLimitType.LIMIT_10.value,
) -> GetAccountTransactionsResponse
Call the Solscan's V2 API endpoint GET Account Transactions for synchronous logic.
All the API endopint details are available on Solscan._get_account_transactions.
Source code in src/cyhole/solscan/v2/client.py
105 106 107 108 109 110 | |
get_account_stake
¶
get_account_stake(
account: str,
page: int = 1,
limit: int = SolscanReturnLimitType.LIMIT_10.value,
) -> GetAccountStakeResponse
Call the Solscan's V2 API endpoint GET Account Stake for synchronous logic.
All the API endopint details are available on Solscan._get_account_stake.
Source code in src/cyhole/solscan/v2/client.py
112 113 114 115 116 117 | |
get_account_detail
¶
get_account_detail(
account: str,
) -> GetAccountDetailResponse
Call the Solscan's V2 API endpoint GET Account Detail for synchronous logic.
All the API endopint details are available on Solscan._get_account_detail.
Source code in src/cyhole/solscan/v2/client.py
119 120 121 122 123 124 | |
get_account_rewards_export
¶
get_account_rewards_export(
account: str, dt_from: datetime, dt_to: datetime
) -> GetAccountRewardsExportResponse
Call the Solscan's V2 API endpoint GET Account Rewards Export for synchronous logic.
All the API endopint details are available on Solscan._get_account_rewards_export.
Source code in src/cyhole/solscan/v2/client.py
126 127 128 129 130 131 | |
get_token_transfer
¶
get_token_transfer(
token: str,
params: GetTokenTransferParam = GetTokenTransferParam(),
) -> GetTokenTransferResponse
Call the Solscan's V2 API endpoint GET Token Transfer for synchronous logic.
All the API endopint details are available on Solscan._get_token_transfer.
Source code in src/cyhole/solscan/v2/client.py
133 134 135 136 137 138 | |
get_token_defi_activities
¶
get_token_defi_activities(
token: str,
params: GetTokenDefiActivitiesParam = GetTokenDefiActivitiesParam(),
) -> GetTokenDefiActivitiesResponse
Call the Solscan's V2 API endpoint GET Token DeFi Activities for synchronous logic.
All the API endopint details are available on Solscan._get_token_defi_activities.
Source code in src/cyhole/solscan/v2/client.py
140 141 142 143 144 145 | |
get_token_markets
¶
get_token_markets(
tokens: str | list[str],
program_address: str | list[str] | None = None,
page: int = 1,
page_size: int = SolscanPageSizeType.SIZE_10.value,
) -> GetTokenMarketsResponse
Call the Solscan's V2 API endpoint GET Token Markets for synchronous logic.
All the API endopint details are available on Solscan._get_token_markets.
Source code in src/cyhole/solscan/v2/client.py
147 148 149 150 151 152 153 154 155 156 157 158 | |
get_token_list
¶
get_token_list(
sort_by: str = SolscanSortType.MARKET_CAP.value,
order_by: str = SolscanOrderType.DESCENDING.value,
page: int = 1,
page_size: int = SolscanPageSizeType.SIZE_10.value,
) -> GetTokenListResponse
Call the Solscan's V2 API endpoint GET Token List for synchronous logic.
All the API endopint details are available on Solscan._get_token_list.
Source code in src/cyhole/solscan/v2/client.py
160 161 162 163 164 165 166 167 168 169 170 171 | |
get_token_trending
¶
get_token_trending(
limit: int = 10,
) -> GetTokenTrendingResponse
Call the Solscan's V2 API endpoint GET Token Trending for synchronous logic.
All the API endopint details are available on Solscan._get_token_trending.
Source code in src/cyhole/solscan/v2/client.py
173 174 175 176 177 178 | |
get_token_price
¶
get_token_price(
token: str,
time_range: (
datetime | tuple[datetime, datetime]
) = datetime.now(),
) -> GetTokenPriceResponse
Call the Solscan's V2 API endpoint GET Token Price for synchronous logic.
All the API endopint details are available on Solscan._get_token_price.
Source code in src/cyhole/solscan/v2/client.py
180 181 182 183 184 185 | |
get_token_holders
¶
get_token_holders(
token: str,
amount_range: tuple[int, int] | None = None,
page: int = 1,
page_size: int = SolscanPageSizeType.SIZE_10.value,
) -> GetTokenHoldersResponse
Call the Solscan's V2 API endpoint GET Token Holders for synchronous logic.
All the API endopint details are available on Solscan._get_token_holders.
Source code in src/cyhole/solscan/v2/client.py
187 188 189 190 191 192 | |
get_token_meta
¶
get_token_meta(token: str) -> GetTokenMetaResponse
Call the Solscan's V2 API endpoint GET Token Meta for synchronous logic.
All the API endopint details are available on Solscan._get_token_meta.
Source code in src/cyhole/solscan/v2/client.py
194 195 196 197 198 199 | |
get_nft_news
¶
get_nft_news(
filter: str = "created_time",
page: int = 1,
page_size: int = SolscanNFTPageSizeType.SIZE_12.value,
) -> GetNFTNewsResponse
Call the Solscan's V2 API endpoint GET NFT News for synchronous logic.
All the API endopint details are available on Solscan._get_nft_news.
Source code in src/cyhole/solscan/v2/client.py
201 202 203 204 205 206 | |
get_nft_activities
¶
get_nft_activities(
params: GetNFTActivitiesParam = GetNFTActivitiesParam(),
) -> GetNFTActivitiesResponse
Call the Solscan's V2 API endpoint GET NFT Activities for synchronous logic.
All the API endopint details are available on Solscan._get_nft_activities.
Source code in src/cyhole/solscan/v2/client.py
208 209 210 211 212 213 | |
get_nft_collection_lists
¶
get_nft_collection_lists(
params: GetNFTCollectionListsParam = GetNFTCollectionListsParam(),
) -> GetNFTCollectionListsResponse
Call the Solscan's V2 API endpoint GET NFT Collection Lists for synchronous logic.
All the API endopint details are available on Solscan._get_nft_collection_lists.
Source code in src/cyhole/solscan/v2/client.py
215 216 217 218 219 220 | |
get_nft_collection_items
¶
get_nft_collection_items(
collection: str,
sort_by: str = SolscanNFTItemSortType.LAST_TRADE.value,
page: int = 1,
page_size: int = SolscanNFTPageSizeType.SIZE_12.value,
) -> GetNFTCollectionItemsResponse
Call the Solscan's V2 API endpoint GET NFT Collection Items for synchronous logic.
All the API endopint details are available on Solscan._get_nft_collection_items.
Source code in src/cyhole/solscan/v2/client.py
222 223 224 225 226 227 228 229 230 231 232 233 | |
get_transaction_last
¶
get_transaction_last(
limit: int = SolscanReturnLimitType.LIMIT_10.value,
filter: str = SolscanTransactionFilterType.EXCEPT_VOTE.value,
) -> GetTransactionLastResponse
Call the Solscan's V2 API endpoint GET Transaction Last for synchronous logic.
All the API endopint details are available on Solscan._get_transaction_last.
Source code in src/cyhole/solscan/v2/client.py
235 236 237 238 239 240 | |
get_transaction_actions
¶
get_transaction_actions(
transaction: str,
) -> GetTransactionActionsResponse
Call the Solscan's V2 API endpoint GET Transaction Actions for synchronous logic.
All the API endopint details are available on Solscan._get_transaction_actions.
Source code in src/cyhole/solscan/v2/client.py
242 243 244 245 246 247 | |
get_block_last
¶
get_block_last(
page_size: int = SolscanPageSizeType.SIZE_10.value,
) -> GetBlockLastResponse
Call the Solscan's V2 API endpoint GET Block Last for synchronous logic.
All the API endopint details are available on Solscan._get_block_last.
Source code in src/cyhole/solscan/v2/client.py
249 250 251 252 253 254 | |
get_block_transactions
¶
get_block_transactions(
block: int,
page: int = 1,
page_size: int = SolscanPageSizeType.SIZE_10.value,
) -> GetBlockTransactionsResponse
Call the Solscan's V2 API endpoint GET Block Transactions for synchronous logic.
All the API endopint details are available on Solscan._get_block_transactions.
Source code in src/cyhole/solscan/v2/client.py
256 257 258 259 260 261 | |
get_block_detail
¶
get_block_detail(block: int) -> GetBlockDetailResponse
Call the Solscan's V2 API endpoint GET Block Detail for synchronous logic.
All the API endopint details are available on Solscan._get_block_detail.
Source code in src/cyhole/solscan/v2/client.py
263 264 265 266 267 268 | |
SolscanAsyncClient
¶
SolscanAsyncClient(
interaction: Solscan, headers: Any | None = None
)
Bases: AsyncAPIClient
Client used for asynchronous API calls for Solscan interaction on V2 API.
Source code in src/cyhole/solscan/v2/client.py
275 276 277 | |
get_account_transfers
async
¶
get_account_transfers(
account: str,
params: GetAccountTransferParam = GetAccountTransferParam(),
) -> GetAccountTransferResponse
Call the Solscan's V2 API endpoint GET Account Transfer for asynchronous logic.
All the API endopint details are available on Solscan._get_account_transfers.
Source code in src/cyhole/solscan/v2/client.py
286 287 288 289 290 291 | |
get_account_token_nft_account
async
¶
get_account_token_nft_account(
account: str,
account_type: str,
page: int = 1,
page_size: int = SolscanPageSizeType.SIZE_10.value,
hide_zero: bool = True,
) -> GetAccountTokenNFTAccountResponse
Call the Solscan's V2 API endpoint GET Account Token/NFT Account for asynchronous logic.
All the API endopint details are available on Solscan._get_account_token_nft_account.
Source code in src/cyhole/solscan/v2/client.py
293 294 295 296 297 298 299 300 301 302 303 304 305 | |
get_account_defi_activities
async
¶
get_account_defi_activities(
account: str,
params: GetAccountDefiActivitiesParam = GetAccountDefiActivitiesParam(),
) -> GetAccountDefiActivitiesResponse
Call the Solscan's V2 API endpoint GET Account DeFi Activities for asynchronous logic.
All the API endopint details are available on Solscan._get_account_defi_activities.
Source code in src/cyhole/solscan/v2/client.py
307 308 309 310 311 312 | |
get_account_balance_change_activities
async
¶
get_account_balance_change_activities(
account: str,
params: GetAccountBalanceChangeActivitiesParam = GetAccountBalanceChangeActivitiesParam(),
) -> GetAccountBalanceChangeActivitiesResponse
Call the Solscan's V2 API endpoint GET Account Balance Change Activities for asynchronous logic.
All the API endopint details are available on Solscan._get_account_balance_change_activities.
Source code in src/cyhole/solscan/v2/client.py
314 315 316 317 318 319 | |
get_account_transactions
async
¶
get_account_transactions(
account: str,
before_transaction: str | None = None,
limit: int = SolscanReturnLimitType.LIMIT_10.value,
) -> GetAccountTransactionsResponse
Call the Solscan's V2 API endpoint GET Account Transactions for asynchronous logic.
All the API endopint details are available on Solscan._get_account_transactions.
Source code in src/cyhole/solscan/v2/client.py
321 322 323 324 325 326 | |
get_account_stake
async
¶
get_account_stake(
account: str,
page: int = 1,
limit: int = SolscanReturnLimitType.LIMIT_10.value,
) -> GetAccountStakeResponse
Call the Solscan's V2 API endpoint GET Account Stake for asynchronous logic.
All the API endopint details are available on Solscan._get_account_stake.
Source code in src/cyhole/solscan/v2/client.py
328 329 330 331 332 333 | |
get_account_detail
async
¶
get_account_detail(
account: str,
) -> GetAccountDetailResponse
Call the Solscan's V2 API endpoint GET Account Detail for asynchronous logic.
All the API endopint details are available on Solscan._get_account_detail.
Source code in src/cyhole/solscan/v2/client.py
335 336 337 338 339 340 | |
get_account_rewards_export
async
¶
get_account_rewards_export(
account: str, dt_from: datetime, dt_to: datetime
) -> GetAccountRewardsExportResponse
Call the Solscan's V2 API endpoint GET Account Rewards Export for asynchronous logic.
All the API endopint details are available on Solscan._get_account_rewards_export.
Source code in src/cyhole/solscan/v2/client.py
342 343 344 345 346 347 | |
get_token_transfer
async
¶
get_token_transfer(
token: str,
params: GetTokenTransferParam = GetTokenTransferParam(),
) -> GetTokenTransferResponse
Call the Solscan's V2 API endpoint GET Token Transfer for asynchronous logic.
All the API endopint details are available on Solscan._get_token_transfer.
Source code in src/cyhole/solscan/v2/client.py
349 350 351 352 353 354 | |
get_token_defi_activities
async
¶
get_token_defi_activities(
token: str,
params: GetTokenDefiActivitiesParam = GetTokenDefiActivitiesParam(),
) -> GetTokenDefiActivitiesResponse
Call the Solscan's V2 API endpoint GET Token DeFi Activities for asynchronous logic.
All the API endopint details are available on Solscan._get_token_defi_activities.
Source code in src/cyhole/solscan/v2/client.py
356 357 358 359 360 361 | |
get_token_markets
async
¶
get_token_markets(
tokens: str | list[str],
program_address: str | list[str] | None = None,
page: int = 1,
page_size: int = SolscanPageSizeType.SIZE_10.value,
) -> GetTokenMarketsResponse
Call the Solscan's V2 API endpoint GET Token Markets for asynchronous logic.
All the API endopint details are available on Solscan._get_token_markets.
Source code in src/cyhole/solscan/v2/client.py
363 364 365 366 367 368 369 370 371 372 373 374 | |
get_token_list
async
¶
get_token_list(
sort_by: str = SolscanSortType.MARKET_CAP.value,
order_by: str = SolscanOrderType.DESCENDING.value,
page: int = 1,
page_size: int = SolscanPageSizeType.SIZE_10.value,
) -> GetTokenListResponse
Call the Solscan's V2 API endpoint GET Token List for asynchronous logic.
All the API endopint details are available on Solscan._get_token_list.
Source code in src/cyhole/solscan/v2/client.py
376 377 378 379 380 381 382 383 384 385 386 387 | |
get_token_trending
async
¶
get_token_trending(
limit: int = 10,
) -> GetTokenTrendingResponse
Call the Solscan's V2 API endpoint GET Token Trending for asynchronous logic.
All the API endopint details are available on Solscan._get_token_trending.
Source code in src/cyhole/solscan/v2/client.py
389 390 391 392 393 394 | |
get_token_price
async
¶
get_token_price(
token: str,
time_range: (
datetime | tuple[datetime, datetime]
) = datetime.now(),
) -> GetTokenPriceResponse
Call the Solscan's V2 API endpoint GET Token Price for asynchronous logic.
All the API endopint details are available on Solscan._get_token_price.
Source code in src/cyhole/solscan/v2/client.py
396 397 398 399 400 401 | |
get_token_holders
async
¶
get_token_holders(
token: str,
amount_range: tuple[int, int] | None = None,
page: int = 1,
page_size: int = SolscanPageSizeType.SIZE_10.value,
) -> GetTokenHoldersResponse
Call the Solscan's V2 API endpoint GET Token Holders for asynchronous logic.
All the API endopint details are available on Solscan._get_token_holders.
Source code in src/cyhole/solscan/v2/client.py
403 404 405 406 407 408 | |
get_token_meta
async
¶
get_token_meta(token: str) -> GetTokenMetaResponse
Call the Solscan's V2 API endpoint GET Token Meta for asynchronous logic.
All the API endopint details are available on Solscan._get_token_meta.
Source code in src/cyhole/solscan/v2/client.py
410 411 412 413 414 415 | |
get_nft_news
async
¶
get_nft_news(
filter: str = "created_time",
page: int = 1,
page_size: int = SolscanNFTPageSizeType.SIZE_12.value,
) -> GetNFTNewsResponse
Call the Solscan's V2 API endpoint GET NFT News for asynchronous logic.
All the API endopint details are available on Solscan._get_nft_news.
Source code in src/cyhole/solscan/v2/client.py
417 418 419 420 421 422 | |
get_nft_activities
async
¶
get_nft_activities(
params: GetNFTActivitiesParam = GetNFTActivitiesParam(),
) -> GetNFTActivitiesResponse
Call the Solscan's V2 API endpoint GET NFT Activities for asynchronous logic.
All the API endopint details are available on Solscan._get_nft_activities.
Source code in src/cyhole/solscan/v2/client.py
424 425 426 427 428 429 | |
get_nft_collection_lists
async
¶
get_nft_collection_lists(
params: GetNFTCollectionListsParam = GetNFTCollectionListsParam(),
) -> GetNFTCollectionListsResponse
Call the Solscan's V2 API endpoint GET NFT Collection Lists for asynchronous logic.
All the API endopint details are available on Solscan._get_nft_collection_lists.
Source code in src/cyhole/solscan/v2/client.py
431 432 433 434 435 436 | |
get_nft_collection_items
async
¶
get_nft_collection_items(
collection: str,
sort_by: str = SolscanNFTItemSortType.LAST_TRADE.value,
page: int = 1,
page_size: int = SolscanNFTPageSizeType.SIZE_12.value,
) -> GetNFTCollectionItemsResponse
Call the Solscan's V2 API endpoint GET NFT Collection Items for asynchronous logic.
All the API endopint details are available on Solscan._get_nft_collection_items.
Source code in src/cyhole/solscan/v2/client.py
438 439 440 441 442 443 444 445 446 447 448 449 | |
get_transaction_last
async
¶
get_transaction_last(
limit: int = SolscanReturnLimitType.LIMIT_10.value,
filter: str = SolscanTransactionFilterType.EXCEPT_VOTE.value,
) -> GetTransactionLastResponse
Call the Solscan's V2 API endpoint GET Transaction Last for asynchronous logic.
All the API endopint details are available on Solscan._get_transaction_last.
Source code in src/cyhole/solscan/v2/client.py
451 452 453 454 455 456 | |
get_transaction_actions
async
¶
get_transaction_actions(
transaction: str,
) -> GetTransactionActionsResponse
Call the Solscan's V2 API endpoint GET Transaction Actions for asynchronous logic.
All the API endopint details are available on Solscan._get_transaction_actions.
Source code in src/cyhole/solscan/v2/client.py
458 459 460 461 462 463 | |
get_block_last
async
¶
get_block_last(
page_size: int = SolscanPageSizeType.SIZE_10.value,
) -> GetBlockLastResponse
Call the Solscan's V2 API endpoint GET Block Last for asynchronous logic.
All the API endopint details are available on Solscan._get_block_last.
Source code in src/cyhole/solscan/v2/client.py
465 466 467 468 469 470 | |
get_block_transactions
async
¶
get_block_transactions(
block: int,
page: int = 1,
page_size: int = SolscanPageSizeType.SIZE_10.value,
) -> GetBlockTransactionsResponse
Call the Solscan's V2 API endpoint GET Block Transactions for asynchronous logic.
All the API endopint details are available on Solscan._get_block_transactions.
Source code in src/cyhole/solscan/v2/client.py
472 473 474 475 476 477 | |
get_block_detail
async
¶
get_block_detail(block: int) -> GetBlockDetailResponse
Call the Solscan's V2 API endpoint GET Block Detail for asynchronous logic.
All the API endopint details are available on Solscan._get_block_detail.
Source code in src/cyhole/solscan/v2/client.py
479 480 481 482 483 484 | |