Client¶
cyhole.solana_fm.client
¶
SolanaFMClient
¶
SolanaFMClient(
interaction: SolanaFM, headers: Any | None = None
)
Bases: APIClient
Client used for synchronous API calls for SolanaFM interaction.
Source code in src/cyhole/solana_fm/client.py
41 42 43 | |
get_account_transactions
¶
get_account_transactions(
account: str,
params: GetAccountTransactionsParam = GetAccountTransactionsParam(),
) -> GetAccountTransactionsResponse
Call the SolanaFM's API endpoint GET Account Transactions for synchronous logic.
All the API endopint details are available on SolanaFM._get_account_transactions.
Source code in src/cyhole/solana_fm/client.py
45 46 47 48 49 50 | |
get_account_transactions_fees
¶
get_account_transactions_fees(
account: str,
dt_from: datetime | None = None,
dt_to: datetime | None = None,
) -> GetAccountTransactionsFeesResponse
Call the SolanaFM's API endpoint GET Account Transactions Fees for synchronous logic.
All the API endopint details are available on SolanaFM._get_account_transactions_fees.
Source code in src/cyhole/solana_fm/client.py
52 53 54 55 56 57 | |
get_account_transfers
¶
get_account_transfers(
account: str,
params: GetAccountTransfersParam = GetAccountTransfersParam(),
) -> GetAccountTransfersResponse
Call the SolanaFM's API endpoint GET Account Transfers for synchronous logic.
All the API endopint details are available on SolanaFM._get_account_transfers.
Source code in src/cyhole/solana_fm/client.py
59 60 61 62 63 64 | |
get_account_transfers_csv_export
¶
get_account_transfers_csv_export(
account: str,
params: GetAccountTransfersCsvExportParam = GetAccountTransfersCsvExportParam(),
) -> GetAccountTransfersCsvExportResponse
Call the SolanaFM's API endpoint GET Account Transfers CSV Export for synchronous logic.
All the API endopint details are available on SolanaFM._get_account_transfers_csv_export.
Source code in src/cyhole/solana_fm/client.py
66 67 68 69 70 71 | |
get_blocks
¶
get_blocks(
from_block: int | None = None,
page_size: int = 50,
page_type: str = SolanaFMBlocksPaginationType.BLOCK_NUMBER.value,
ascending: bool | None = None,
) -> GetBlocksResponse
Call the SolanaFM's API endpoint GET Blocks for synchronous logic.
All the API endopint details are available on SolanaFM._get_blocks.
Source code in src/cyhole/solana_fm/client.py
73 74 75 76 77 78 79 80 81 82 83 84 | |
get_block
¶
get_block(block_number: int) -> GetBlockResponse
Call the SolanaFM's API endpoint GET Block for synchronous logic.
All the API endopint details are available on SolanaFM._get_block.
Source code in src/cyhole/solana_fm/client.py
86 87 88 89 90 91 | |
post_multiple_blocks
¶
post_multiple_blocks(
block_numbers: list[int], producer_details: bool = True
) -> PostMultipleBlocksResponse
Call the SolanaFM's API endpoint POST Multiple Blocks for synchronous logic.
All the API endopint details are available on SolanaFM._post_multiple_blocks.
Source code in src/cyhole/solana_fm/client.py
93 94 95 96 97 98 | |
get_solana_daily_transaction_fees
¶
get_solana_daily_transaction_fees(
dt: datetime = datetime.now(),
) -> GetSolanaDailyTransactionFeesResponse
Call the SolanaFM's API endpoint GET Solana Daily Transaction Fees for synchronous logic.
All the API endopint details are available on SolanaFM._get_solana_daily_transaction_fees.
Source code in src/cyhole/solana_fm/client.py
100 101 102 103 104 105 | |
get_tagged_tokens_list
¶
get_tagged_tokens_list() -> GetTaggedTokensListResponse
Call the SolanaFM's API endpoint GET Tagged Tokens List for synchronous logic.
All the API endopint details are available on SolanaFM._get_tagged_tokens_list.
Source code in src/cyhole/solana_fm/client.py
107 108 109 110 111 112 | |
get_token_info_v0
¶
get_token_info_v0(address: str) -> GetTokenInfoV0Response
Call the SolanaFM's API endpoint GET Token Info V0 for synchronous logic.
All the API endopint details are available on SolanaFM._get_token_info_v0.
Source code in src/cyhole/solana_fm/client.py
114 115 116 117 118 119 | |
post_token_multiple_info_v0
¶
post_token_multiple_info_v0(
addresses: list[str],
) -> PostTokenMultipleInfoV0Response
Call the SolanaFM's API endpoint POST Token Multiple Info V0 for synchronous logic.
All the API endopint details are available on SolanaFM._post_token_multiple_info_v0.
Source code in src/cyhole/solana_fm/client.py
121 122 123 124 125 126 | |
get_token_info_v1
¶
get_token_info_v1(address: str) -> GetTokenInfoV1Response
Call the SolanaFM's API endpoint GET Token Info V1 for synchronous logic.
All the API endopint details are available on SolanaFM._get_token_info_v1.
Source code in src/cyhole/solana_fm/client.py
128 129 130 131 132 133 | |
post_token_multiple_info_v1
¶
post_token_multiple_info_v1(
addresses: list[str],
) -> PostTokenMultipleInfoV1Response
Call the SolanaFM's API endpoint POST Token Multiple Info V1 for synchronous logic.
All the API endopint details are available on SolanaFM._post_token_multiple_info_v1.
Source code in src/cyhole/solana_fm/client.py
135 136 137 138 139 140 | |
post_user_token_accounts
¶
post_user_token_accounts(
address: str,
include_sol_balance: bool = False,
tokens: list[str] | None = None,
) -> PostUserTokenAccountsResponse
Call the SolanaFM's API endpoint POST User Token Accounts for synchronous logic.
All the API endopint details are available on SolanaFM._post_user_token_accounts.
Source code in src/cyhole/solana_fm/client.py
142 143 144 145 146 147 | |
get_mint_token_accounts
¶
get_mint_token_accounts(
address: str,
page: int | None = None,
page_size: int | None = None,
) -> GetMintTokenAccountsResponse
Call the SolanaFM's API endpoint GET Mint Token Accounts for synchronous logic.
All the API endopint details are available on SolanaFM._get_mint_token_accounts.
Source code in src/cyhole/solana_fm/client.py
149 150 151 152 153 154 | |
get_on_chain_token_data
¶
get_on_chain_token_data(
address: str,
) -> GetOnChainTokenDataResponse
Call the SolanaFM's API endpoint GET On Chain Token Data for synchronous logic.
All the API endopint details are available on SolanaFM._get_on_chain_token_data.
Source code in src/cyhole/solana_fm/client.py
156 157 158 159 160 161 | |
get_token_supply
¶
get_token_supply(address: str) -> GetTokenSupplyResponse
Call the SolanaFM's API endpoint GET Token Supply for synchronous logic.
All the API endopint details are available on SolanaFM._get_token_supply.
Source code in src/cyhole/solana_fm/client.py
163 164 165 166 167 168 | |
get_transfer_transactions
¶
get_transfer_transactions(
transaction: str,
) -> GetTransferTransactionsResponse
Call the SolanaFM's API endpoint GET Transfer Transactions for synchronous logic.
All the API endopint details are available on SolanaFM._get_transfer_transactions.
Source code in src/cyhole/solana_fm/client.py
170 171 172 173 174 175 | |
post_multiple_transfer_transactions
¶
post_multiple_transfer_transactions(
transactions: list[str],
) -> PostMultipleTransferTransactionsResponse
Call the SolanaFM's API endpoint POST Multiple Transfer Transactions for synchronous logic.
All the API endopint details are available on SolanaFM._post_multiple_transfer_transactions.
Source code in src/cyhole/solana_fm/client.py
177 178 179 180 181 182 | |
get_all_transfer_actions
¶
get_all_transfer_actions() -> GetAllTransferActionsResponse
Call the SolanaFM's API endpoint GET All Transfer Actions for synchronous logic.
All the API endopint details are available on SolanaFM._get_all_transfer_actions.
Source code in src/cyhole/solana_fm/client.py
184 185 186 187 188 189 | |
SolanaFMAsyncClient
¶
SolanaFMAsyncClient(
interaction: SolanaFM, headers: Any | None = None
)
Bases: AsyncAPIClient
Client used for asynchronous API calls for SolanaFM interaction.
Source code in src/cyhole/solana_fm/client.py
196 197 198 | |
get_account_transactions
async
¶
get_account_transactions(
account: str,
params: GetAccountTransactionsParam = GetAccountTransactionsParam(),
) -> GetAccountTransactionsResponse
Call the SolanaFM's API endpoint GET Account Transactions for asynchronous logic.
All the API endopint details are available on SolanaFM._get_account_transactions.
Source code in src/cyhole/solana_fm/client.py
200 201 202 203 204 205 | |
get_account_transactions_fees
async
¶
get_account_transactions_fees(
account: str,
dt_from: datetime | None = None,
dt_to: datetime | None = None,
) -> GetAccountTransactionsFeesResponse
Call the SolanaFM's API endpoint GET Account Transactions Fees for asynchronous logic.
All the API endopint details are available on SolanaFM._get_account_transactions_fees.
Source code in src/cyhole/solana_fm/client.py
207 208 209 210 211 212 | |
get_account_transfers
async
¶
get_account_transfers(
account: str,
params: GetAccountTransfersParam = GetAccountTransfersParam(),
) -> GetAccountTransfersResponse
Call the SolanaFM's API endpoint GET Account Transfers for asynchronous logic.
All the API endopint details are available on SolanaFM._get_account_transfers.
Source code in src/cyhole/solana_fm/client.py
214 215 216 217 218 219 | |
get_account_transfers_csv_export
async
¶
get_account_transfers_csv_export(
account: str,
params: GetAccountTransfersCsvExportParam = GetAccountTransfersCsvExportParam(),
) -> GetAccountTransfersCsvExportResponse
Call the SolanaFM's API endpoint GET Account Transfers CSV Export for asynchronous logic.
All the API endopint details are available on SolanaFM._get_account_transfers_csv_export.
Source code in src/cyhole/solana_fm/client.py
221 222 223 224 225 226 | |
get_blocks
async
¶
get_blocks(
from_block: int | None = None,
page_size: int = 50,
page_type: str = SolanaFMBlocksPaginationType.BLOCK_NUMBER.value,
ascending: bool | None = None,
) -> GetBlocksResponse
Call the SolanaFM's API endpoint GET Blocks for synchronous logic.
All the API endopint details are available on SolanaFM._get_blocks.
Source code in src/cyhole/solana_fm/client.py
228 229 230 231 232 233 234 235 236 237 238 239 | |
get_block
async
¶
get_block(block_number: int) -> GetBlockResponse
Call the SolanaFM's API endpoint GET Block for asynchronous logic.
All the API endopint details are available on SolanaFM._get_block.
Source code in src/cyhole/solana_fm/client.py
241 242 243 244 245 246 | |
post_multiple_blocks
async
¶
post_multiple_blocks(
block_numbers: list[int], producer_details: bool = True
) -> PostMultipleBlocksResponse
Call the SolanaFM's API endpoint POST Multiple Blocks for asynchronous logic.
All the API endopint details are available on SolanaFM._post_multiple_blocks.
Source code in src/cyhole/solana_fm/client.py
248 249 250 251 252 253 | |
get_solana_daily_transaction_fees
async
¶
get_solana_daily_transaction_fees(
dt: datetime = datetime.now(),
) -> GetSolanaDailyTransactionFeesResponse
Call the SolanaFM's API endpoint GET Solana Daily Transaction Fees for asynchronous logic.
All the API endopint details are available on SolanaFM._get_solana_daily_transaction_fees.
Source code in src/cyhole/solana_fm/client.py
255 256 257 258 259 260 | |
get_tagged_tokens_list
async
¶
get_tagged_tokens_list() -> GetTaggedTokensListResponse
Call the SolanaFM's API endpoint GET Tagged Tokens List for asynchronous logic.
All the API endopint details are available on SolanaFM._get_tagged_tokens_list.
Source code in src/cyhole/solana_fm/client.py
262 263 264 265 266 267 | |
get_token_info_v0
async
¶
get_token_info_v0(address: str) -> GetTokenInfoV0Response
Call the SolanaFM's API endpoint GET Token Info V0 for asynchronous logic.
All the API endopint details are available on SolanaFM._get_token_info_v0.
Source code in src/cyhole/solana_fm/client.py
269 270 271 272 273 274 | |
post_token_multiple_info_v0
async
¶
post_token_multiple_info_v0(
addresses: list[str],
) -> PostTokenMultipleInfoV0Response
Call the SolanaFM's API endpoint POST Token Multiple Info V0 for asynchronous logic.
All the API endopint details are available on SolanaFM._post_token_multiple_info_v0.
Source code in src/cyhole/solana_fm/client.py
276 277 278 279 280 281 | |
get_token_info_v1
async
¶
get_token_info_v1(address: str) -> GetTokenInfoV1Response
Call the SolanaFM's API endpoint GET Token Info V1 for asynchronous logic.
All the API endopint details are available on SolanaFM._get_token_info_v1.
Source code in src/cyhole/solana_fm/client.py
283 284 285 286 287 288 | |
post_token_multiple_info_v1
async
¶
post_token_multiple_info_v1(
addresses: list[str],
) -> PostTokenMultipleInfoV1Response
Call the SolanaFM's API endpoint POST Token Multiple Info V1 for asynchronous logic.
All the API endopint details are available on SolanaFM._post_token_multiple_info_v1.
Source code in src/cyhole/solana_fm/client.py
290 291 292 293 294 295 | |
post_user_token_accounts
async
¶
post_user_token_accounts(
address: str,
include_sol_balance: bool = False,
tokens: list[str] | None = None,
) -> PostUserTokenAccountsResponse
Call the SolanaFM's API endpoint POST User Token Accounts for asynchronous logic.
All the API endopint details are available on SolanaFM._post_user_token_accounts.
Source code in src/cyhole/solana_fm/client.py
297 298 299 300 301 302 | |
get_mint_token_accounts
async
¶
get_mint_token_accounts(
address: str,
page: int | None = None,
page_size: int | None = None,
) -> GetMintTokenAccountsResponse
Call the SolanaFM's API endpoint GET Mint Token Accounts for asynchronous logic.
All the API endopint details are available on SolanaFM._get_mint_token_accounts.
Source code in src/cyhole/solana_fm/client.py
304 305 306 307 308 309 | |
get_on_chain_token_data
async
¶
get_on_chain_token_data(
address: str,
) -> GetOnChainTokenDataResponse
Call the SolanaFM's API endpoint GET On Chain Token Data for asynchronous logic.
All the API endopint details are available on SolanaFM._get_on_chain_token_data.
Source code in src/cyhole/solana_fm/client.py
311 312 313 314 315 316 | |
get_token_supply
async
¶
get_token_supply(address: str) -> GetTokenSupplyResponse
Call the SolanaFM's API endpoint GET Token Supply for asynchronous logic.
All the API endopint details are available on SolanaFM._get_token_supply.
Source code in src/cyhole/solana_fm/client.py
318 319 320 321 322 323 | |
get_transfer_transactions
async
¶
get_transfer_transactions(
transaction: str,
) -> GetTransferTransactionsResponse
Call the SolanaFM's API endpoint GET Transfer Transactions for asynchronous logic.
All the API endopint details are available on SolanaFM._get_transfer_transactions.
Source code in src/cyhole/solana_fm/client.py
325 326 327 328 329 330 | |
post_multiple_transfer_transactions
async
¶
post_multiple_transfer_transactions(
transactions: list[str],
) -> PostMultipleTransferTransactionsResponse
Call the SolanaFM's API endpoint POST Multiple Transfer Transactions for asynchronous logic.
All the API endopint details are available on SolanaFM._post_multiple_transfer_transactions.
Source code in src/cyhole/solana_fm/client.py
332 333 334 335 336 337 | |
get_all_transfer_actions
async
¶
get_all_transfer_actions() -> GetAllTransferActionsResponse
Call the SolanaFM's API endpoint GET All Transfer Actions for asynchronous logic.
All the API endopint details are available on SolanaFM._get_all_transfer_actions.
Source code in src/cyhole/solana_fm/client.py
339 340 341 342 343 344 | |