Client¶
cyhole.solscan.v1.client
¶
SolscanClient
¶
SolscanClient(
interaction: Solscan, headers: Any | None = None
)
Bases: APIClient
flowchart TD
cyhole.solscan.v1.client.SolscanClient[SolscanClient]
cyhole.core.client.APIClient[APIClient]
cyhole.core.client.APIClientInterface[APIClientInterface]
cyhole.core.client.APIClient --> cyhole.solscan.v1.client.SolscanClient
cyhole.core.client.APIClientInterface --> cyhole.core.client.APIClient
click cyhole.solscan.v1.client.SolscanClient href "" "cyhole.solscan.v1.client.SolscanClient"
click cyhole.core.client.APIClient href "" "cyhole.core.client.APIClient"
click cyhole.core.client.APIClientInterface href "" "cyhole.core.client.APIClientInterface"
Client used for synchronous API calls for Solscan interaction on V1 API.
Source code in src/cyhole/solscan/v1/client.py
37 38 39 | |
get_account_tokens
¶
get_account_tokens(
account: str,
) -> GetAccountTokensResponse
Call the Solscan's V1 API endpoint GET Account Tokens for synchronous logic.
All the API endopint details are available on Solscan._get_account_tokens.
Source code in src/cyhole/solscan/v1/client.py
48 49 50 51 52 53 | |
get_account_transactions
¶
get_account_transactions(
account: str,
before_hash: str | None = None,
limit: int | None = None,
) -> GetAccountTransactionsResponse
Call the Solscan's V1 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/v1/client.py
55 56 57 58 59 60 | |
get_account_stake_accounts
¶
get_account_stake_accounts(
account: str,
) -> GetAccountStakeAccountsResponse
Call the Solscan's V1 API endpoint GET Account StakeAccounts for synchronous logic.
All the API endopint details are available on Solscan._get_account_stake_accounts.
Source code in src/cyhole/solscan/v1/client.py
62 63 64 65 66 67 | |
get_account_spl_transfers
¶
get_account_spl_transfers(
account: str,
utc_from_unix_time: int | None = None,
utc_to_unix_time: int | None = None,
limit: int = 10,
offset: int | None = None,
) -> GetAccountSplTransfersResponse
Call the Solscan's V1 API endpoint GET Account SplTransfers for synchronous logic.
All the API endopint details are available on Solscan._get_account_spl_transfers.
Source code in src/cyhole/solscan/v1/client.py
69 70 71 72 73 74 75 76 77 78 79 80 81 | |
get_account_sol_transfers
¶
get_account_sol_transfers(
account: str,
utc_from_unix_time: int | None = None,
utc_to_unix_time: int | None = None,
limit: int = 10,
offset: int | None = None,
) -> GetAccountSolTransfersResponse
Call the Solscan's V1 API endpoint GET Account SolTransfers for synchronous logic.
All the API endopint details are available on Solscan._get_account_sol_transfers.
Source code in src/cyhole/solscan/v1/client.py
83 84 85 86 87 88 89 90 91 92 93 94 95 | |
get_account_export_transactions
¶
get_account_export_transactions(
account: str,
export_type: str,
dt_from: datetime,
dt_to: datetime,
) -> GetAccountExportTransactionsResponse
Call the Solscan's V1 API endpoint GET Account Export Transactions for synchronous logic.
All the API endopint details are available on Solscan._get_account_export_transactions.
Source code in src/cyhole/solscan/v1/client.py
97 98 99 100 101 102 | |
get_account_export_rewards
¶
get_account_export_rewards(
account: str, dt_from: datetime, dt_to: datetime
) -> GetAccountExportRewardsResponse
Call the Solscan's V1 API endpoint GET Account Export Rewards for synchronous logic.
All the API endopint details are available on Solscan._get_account_export_rewards.
Source code in src/cyhole/solscan/v1/client.py
104 105 106 107 108 109 | |
get_account_detail
¶
get_account_detail(
account: str,
) -> GetAccountDetailResponse
Call the Solscan's V1 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/v1/client.py
111 112 113 114 115 116 | |
get_token_holders
¶
get_token_holders(
token: str,
limit: int = 10,
offset: int | None = None,
amount_from: int | None = None,
amount_to: int | None = None,
) -> GetTokenHoldersResponse
Call the Solscan's V1 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/v1/client.py
118 119 120 121 122 123 124 125 126 127 128 129 130 | |
get_token_meta
¶
get_token_meta(token: str) -> GetTokenMetaResponse
Call the Solscan's V1 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/v1/client.py
132 133 134 135 136 137 | |
get_token_transfer
¶
get_token_transfer(
token: str,
account: str | None = None,
limit: int = 10,
offset: int | None = None,
) -> GetTokenTransferResponse
Call the Solscan's V1 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/v1/client.py
139 140 141 142 143 144 | |
get_token_list
¶
get_token_list(
sort_by: str = SolscanSort.MARKET_CAP.value,
order_by: str = SolscanOrder.DESCENDING.value,
limit: int = 10,
offset: int | None = None,
) -> GetTokenListResponse
Call the Solscan's V1 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/v1/client.py
146 147 148 149 150 151 152 153 154 155 156 157 | |
get_market_token_detail
¶
get_market_token_detail(
token: str, limit: int = 10, offset: int | None = None
) -> GetMarketTokenDetailResponse
Call the Solscan's V1 API endpoint GET Market Token Detail for synchronous logic.
All the API endopint details are available on Solscan._get_market_token_detail.
Source code in src/cyhole/solscan/v1/client.py
159 160 161 162 163 164 | |
get_transaction_last
¶
get_transaction_last(
limit: int = 10,
) -> GetTransactionLastResponse
Call the Solscan's V1 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/v1/client.py
166 167 168 169 170 171 | |
get_transaction_detail
¶
get_transaction_detail(
transaction_id: str,
) -> GetTransactionDetailResponse
Call the Solscan's V1 API endpoint GET Transaction Detail for synchronous logic.
All the API endopint details are available on Solscan._get_transaction_detail.
Source code in src/cyhole/solscan/v1/client.py
173 174 175 176 177 178 | |
get_block_last
¶
get_block_last(limit: int = 10) -> GetBlockLastResponse
Call the Solscan's V1 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/v1/client.py
180 181 182 183 184 185 | |
get_block_detail
¶
get_block_detail(block_id: int) -> GetBlockDetailResponse
Call the Solscan's V1 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/v1/client.py
187 188 189 190 191 192 | |
get_block_transactions
¶
get_block_transactions(
block_id: int,
limit: int = 10,
offset: int | None = None,
) -> GetBlockTransactionsResponse
Call the Solscan's V1 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/v1/client.py
194 195 196 197 198 199 | |
SolscanAsyncClient
¶
SolscanAsyncClient(
interaction: Solscan, headers: Any | None = None
)
Bases: AsyncAPIClient
flowchart TD
cyhole.solscan.v1.client.SolscanAsyncClient[SolscanAsyncClient]
cyhole.core.client.AsyncAPIClient[AsyncAPIClient]
cyhole.core.client.APIClientInterface[APIClientInterface]
cyhole.core.client.AsyncAPIClient --> cyhole.solscan.v1.client.SolscanAsyncClient
cyhole.core.client.APIClientInterface --> cyhole.core.client.AsyncAPIClient
click cyhole.solscan.v1.client.SolscanAsyncClient href "" "cyhole.solscan.v1.client.SolscanAsyncClient"
click cyhole.core.client.AsyncAPIClient href "" "cyhole.core.client.AsyncAPIClient"
click cyhole.core.client.APIClientInterface href "" "cyhole.core.client.APIClientInterface"
Client used for asynchronous API calls for Solscan interaction on V1 API.
Source code in src/cyhole/solscan/v1/client.py
206 207 208 | |
get_account_tokens
async
¶
get_account_tokens(
account: str,
) -> GetAccountTokensResponse
Call the Solscan's V1 API endpoint GET Account Tokens for asynchronous logic.
All the API endopint details are available on Solscan._get_account_tokens.
Source code in src/cyhole/solscan/v1/client.py
217 218 219 220 221 222 | |
get_account_transactions
async
¶
get_account_transactions(
account: str,
before_hash: str | None = None,
limit: int | None = None,
) -> GetAccountTransactionsResponse
Call the Solscan's V1 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/v1/client.py
224 225 226 227 228 229 | |
get_account_stake_accounts
async
¶
get_account_stake_accounts(
account: str,
) -> GetAccountStakeAccountsResponse
Call the Solscan's V1 API endpoint GET Account StakeAccounts for asynchronous logic.
All the API endopint details are available on Solscan._get_account_stake_accounts.
Source code in src/cyhole/solscan/v1/client.py
231 232 233 234 235 236 | |
get_account_spl_transfers
async
¶
get_account_spl_transfers(
account: str,
utc_from_unix_time: int | None = None,
utc_to_unix_time: int | None = None,
limit: int = 10,
offset: int | None = None,
) -> GetAccountSplTransfersResponse
Call the Solscan's V1 API endpoint GET Account SplTransfers for asynchronous logic.
All the API endopint details are available on Solscan._get_account_spl_transfers.
Source code in src/cyhole/solscan/v1/client.py
238 239 240 241 242 243 244 245 246 247 248 249 250 | |
get_account_sol_transfers
async
¶
get_account_sol_transfers(
account: str,
utc_from_unix_time: int | None = None,
utc_to_unix_time: int | None = None,
limit: int = 10,
offset: int | None = None,
) -> GetAccountSolTransfersResponse
Call the Solscan's V1 API endpoint GET Account SolTransfers for asynchronous logic.
All the API endopint details are available on Solscan._get_account_sol_transfers.
Source code in src/cyhole/solscan/v1/client.py
252 253 254 255 256 257 258 259 260 261 262 263 264 | |
get_account_export_transactions
async
¶
get_account_export_transactions(
account: str,
export_type: str,
dt_from: datetime,
dt_to: datetime,
) -> GetAccountExportTransactionsResponse
Call the Solscan's V1 API endpoint GET Account Export Transactions for asynchronous logic.
All the API endopint details are available on Solscan._get_account_export_transactions.
Source code in src/cyhole/solscan/v1/client.py
266 267 268 269 270 271 | |
get_account_export_rewards
async
¶
get_account_export_rewards(
account: str, dt_from: datetime, dt_to: datetime
) -> GetAccountExportRewardsResponse
Call the Solscan's V1 API endpoint GET Account Export Rewards for asynchronous logic.
All the API endopint details are available on Solscan._get_account_export_rewards.
Source code in src/cyhole/solscan/v1/client.py
273 274 275 276 277 278 | |
get_account_detail
async
¶
get_account_detail(
account: str,
) -> GetAccountDetailResponse
Call the Solscan's V1 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/v1/client.py
280 281 282 283 284 285 | |
get_token_holders
async
¶
get_token_holders(
token: str,
limit: int = 10,
offset: int | None = None,
amount_from: int | None = None,
amount_to: int | None = None,
) -> GetTokenHoldersResponse
Call the Solscan's V1 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/v1/client.py
287 288 289 290 291 292 293 294 295 296 297 298 299 | |
get_token_meta
async
¶
get_token_meta(token: str) -> GetTokenMetaResponse
Call the Solscan's V1 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/v1/client.py
301 302 303 304 305 306 | |
get_token_transfer
async
¶
get_token_transfer(
token: str,
account: str | None = None,
limit: int = 10,
offset: int | None = None,
) -> GetTokenTransferResponse
Call the Solscan's V1 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/v1/client.py
308 309 310 311 312 313 | |
get_token_list
async
¶
get_token_list(
sort_by: str = SolscanSort.MARKET_CAP.value,
order_by: str = SolscanOrder.DESCENDING.value,
limit: int = 10,
offset: int | None = None,
) -> GetTokenListResponse
Call the Solscan's V1 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/v1/client.py
315 316 317 318 319 320 321 322 323 324 325 326 | |
get_market_token_detail
async
¶
get_market_token_detail(
token: str, limit: int = 10, offset: int | None = None
) -> GetMarketTokenDetailResponse
Call the Solscan's V1 API endpoint GET Market Token Detail for asynchronous logic.
All the API endopint details are available on Solscan._get_market_token_detail.
Source code in src/cyhole/solscan/v1/client.py
328 329 330 331 332 333 | |
get_transaction_last
async
¶
get_transaction_last(
limit: int = 10,
) -> GetTransactionLastResponse
Call the Solscan's V1 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/v1/client.py
335 336 337 338 339 340 | |
get_transaction_detail
async
¶
get_transaction_detail(
transaction_id: str,
) -> GetTransactionDetailResponse
Call the Solscan's V1 API endpoint GET Transaction Detail for asynchronous logic.
All the API endopint details are available on Solscan._get_transaction_detail.
Source code in src/cyhole/solscan/v1/client.py
342 343 344 345 346 347 | |
get_block_last
async
¶
get_block_last(limit: int = 10) -> GetBlockLastResponse
Call the Solscan's V1 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/v1/client.py
349 350 351 352 353 354 | |
get_block_detail
async
¶
get_block_detail(block_id: int) -> GetBlockDetailResponse
Call the Solscan's V1 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/v1/client.py
356 357 358 359 360 361 | |
get_block_transactions
async
¶
get_block_transactions(
block_id: int,
limit: int = 10,
offset: int | None = None,
) -> GetBlockTransactionsResponse
Call the Solscan's V1 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/v1/client.py
363 364 365 366 367 368 | |