Skip to content

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
def __init__(self, interaction: Solscan, headers: Any | None = None) -> None:
    super().__init__(interaction, headers)
    self._interaction = cast('Solscan', self._interaction)

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
def get_account_transfers(self, account: str, params: GetAccountTransferParam = GetAccountTransferParam()) -> GetAccountTransferResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Account Transfer](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-account-transfer)** for synchronous logic. 
        All the API endopint details are available on [`Solscan._get_account_transfers`][cyhole.solscan.v2.interaction.Solscan._get_account_transfers].
    """
    return self._interaction._get_account_transfers(True, account, params)

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
def get_account_token_nft_account(
    self, 
    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](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-account-token-accounts)** for synchronous logic. 
        All the API endopint details are available on [`Solscan._get_account_token_nft_account`][cyhole.solscan.v2.interaction.Solscan._get_account_token_nft_account].
    """
    return self._interaction._get_account_token_nft_account(True, account, account_type, page, page_size, hide_zero)

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
def get_account_defi_activities(self, account: str, params: GetAccountDefiActivitiesParam = GetAccountDefiActivitiesParam()) -> GetAccountDefiActivitiesResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Account DeFi Activities](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-account-defi-activities)** for synchronous logic. 
        All the API endopint details are available on [`Solscan._get_account_defi_activities`][cyhole.solscan.v2.interaction.Solscan._get_account_defi_activities].
    """
    return self._interaction._get_account_defi_activities(True, account, params)

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
def get_account_balance_change_activities(self, account: str, params: GetAccountBalanceChangeActivitiesParam = GetAccountBalanceChangeActivitiesParam()) -> GetAccountBalanceChangeActivitiesResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Account Balance Change Activities](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-account-balance_change)** for synchronous logic. 
        All the API endopint details are available on [`Solscan._get_account_balance_change_activities`][cyhole.solscan.v2.interaction.Solscan._get_account_balance_change_activities].
    """
    return self._interaction._get_account_balance_change_activities(True, account, params)

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
def get_account_transactions(self, account: str, before_transaction: str | None = None, limit: int = SolscanReturnLimitType.LIMIT_10.value) -> GetAccountTransactionsResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Account Transactions](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-account-transactions)** for synchronous logic. 
        All the API endopint details are available on [`Solscan._get_account_transactions`][cyhole.solscan.v2.interaction.Solscan._get_account_transactions].
    """
    return self._interaction._get_account_transactions(True, account, before_transaction, limit)

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
def get_account_stake(self, account: str, page: int = 1, limit: int = SolscanReturnLimitType.LIMIT_10.value) -> GetAccountStakeResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Account Stake](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-account-stake)** for synchronous logic. 
        All the API endopint details are available on [`Solscan._get_account_stake`][cyhole.solscan.v2.interaction.Solscan._get_account_stake].
    """
    return self._interaction._get_account_stake(True, account, page, limit)

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
def get_account_detail(self, account: str) -> GetAccountDetailResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Account Detail](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-account-detail)** for synchronous logic. 
        All the API endopint details are available on [`Solscan._get_account_detail`][cyhole.solscan.v2.interaction.Solscan._get_account_detail].
    """
    return self._interaction._get_account_detail(True, account)

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
def get_account_rewards_export(self, account: str, dt_from: datetime, dt_to: datetime) -> GetAccountRewardsExportResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Account Rewards Export](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-account-reward-export)** for synchronous logic. 
        All the API endopint details are available on [`Solscan._get_account_rewards_export`][cyhole.solscan.v2.interaction.Solscan._get_account_rewards_export].
    """
    return self._interaction._get_account_rewards_export(True, account, dt_from, dt_to)

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
def get_token_transfer(self, token: str, params: GetTokenTransferParam = GetTokenTransferParam()) -> GetTokenTransferResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Token Transfer](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-token-transfer)** for synchronous logic. 
        All the API endopint details are available on [`Solscan._get_token_transfer`][cyhole.solscan.v2.interaction.Solscan._get_token_transfer].
    """
    return self._interaction._get_token_transfer(True, token, params)

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
def get_token_defi_activities(self, token: str, params: GetTokenDefiActivitiesParam = GetTokenDefiActivitiesParam()) -> GetTokenDefiActivitiesResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Token DeFi Activities](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-token-defi-activities)** for synchronous logic. 
        All the API endopint details are available on [`Solscan._get_token_defi_activities`][cyhole.solscan.v2.interaction.Solscan._get_token_defi_activities].
    """
    return self._interaction._get_token_defi_activities(True, token, params)

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
def get_token_markets(
    self,
    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](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-token-markets)** for synchronous logic. 
        All the API endopint details are available on [`Solscan._get_token_markets`][cyhole.solscan.v2.interaction.Solscan._get_token_markets].
    """
    return self._interaction._get_token_markets(True, tokens, program_address, page, page_size)

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
def get_token_list(
    self,
    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](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-token-list)** for synchronous logic. 
        All the API endopint details are available on [`Solscan._get_token_list`][cyhole.solscan.v2.interaction.Solscan._get_token_list].
    """
    return self._interaction._get_token_list(True, sort_by, order_by, page, page_size)
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
def get_token_trending(self, limit: int = 10) -> GetTokenTrendingResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Token Trending](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-token-trending)** for synchronous logic. 
        All the API endopint details are available on [`Solscan._get_token_trending`][cyhole.solscan.v2.interaction.Solscan._get_token_trending].
    """
    return self._interaction._get_token_trending(True, limit)

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
def get_token_price(self, token: str, time_range: datetime | tuple[datetime, datetime] = datetime.now()) -> GetTokenPriceResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Token Price](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-token-price)** for synchronous logic. 
        All the API endopint details are available on [`Solscan._get_token_price`][cyhole.solscan.v2.interaction.Solscan._get_token_price].
    """
    return self._interaction._get_token_price(True, token, time_range)

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
def get_token_holders(self, 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](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-token-holders)** for synchronous logic. 
        All the API endopint details are available on [`Solscan._get_token_holders`][cyhole.solscan.v2.interaction.Solscan._get_token_holders].
    """
    return self._interaction._get_token_holders(True, token, amount_range, page, page_size)

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
def get_token_meta(self, token: str) -> GetTokenMetaResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Token Meta](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-token-meta)** for synchronous logic. 
        All the API endopint details are available on [`Solscan._get_token_meta`][cyhole.solscan.v2.interaction.Solscan._get_token_meta].
    """
    return self._interaction._get_token_meta(True, token)

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
def get_nft_news(self, 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](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-nft-news)** for synchronous logic. 
        All the API endopint details are available on [`Solscan._get_nft_news`][cyhole.solscan.v2.interaction.Solscan._get_nft_news].
    """
    return self._interaction._get_nft_news(True, filter, page, page_size)

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
def get_nft_activities(self, params: GetNFTActivitiesParam = GetNFTActivitiesParam()) -> GetNFTActivitiesResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[NFT Activities](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-nft-activities)** for synchronous logic. 
        All the API endopint details are available on [`Solscan._get_nft_activities`][cyhole.solscan.v2.interaction.Solscan._get_nft_activities].
    """
    return self._interaction._get_nft_activities(True, params)

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
def get_nft_collection_lists(self, params: GetNFTCollectionListsParam = GetNFTCollectionListsParam()) -> GetNFTCollectionListsResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[NFT Collection Lists](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-nft-collection-lists)** for synchronous logic. 
        All the API endopint details are available on [`Solscan._get_nft_collection_lists`][cyhole.solscan.v2.interaction.Solscan._get_nft_collection_lists].
    """
    return self._interaction._get_nft_collection_lists(True, params)

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
def get_nft_collection_items(
    self,
    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](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-nft-collection-items)** for synchronous logic. 
        All the API endopint details are available on [`Solscan._get_nft_collection_items`][cyhole.solscan.v2.interaction.Solscan._get_nft_collection_items].
    """
    return self._interaction._get_nft_collection_items(True, collection, sort_by, page, page_size)

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
def get_transaction_last(self, limit: int = SolscanReturnLimitType.LIMIT_10.value, filter: str = SolscanTransactionFilterType.EXCEPT_VOTE.value) -> GetTransactionLastResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Transaction Last](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-transaction-last)** for synchronous logic. 
        All the API endopint details are available on [`Solscan._get_transaction_last`][cyhole.solscan.v2.interaction.Solscan._get_transaction_last].
    """
    return self._interaction._get_transaction_last(True, limit, filter)

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
def get_transaction_actions(self, transaction: str) -> GetTransactionActionsResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Transaction Actions](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-transaction-actions)** for synchronous logic. 
        All the API endopint details are available on [`Solscan._get_transaction_actions`][cyhole.solscan.v2.interaction.Solscan._get_transaction_actions].
    """
    return self._interaction._get_transaction_actions(True, transaction)

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
def get_block_last(self, page_size: int = SolscanPageSizeType.SIZE_10.value) -> GetBlockLastResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Block Last](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-block-last)** for synchronous logic. 
        All the API endopint details are available on [`Solscan._get_block_last`][cyhole.solscan.v2.interaction.Solscan._get_block_last].
    """
    return self._interaction._get_block_last(True, page_size)

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
def get_block_transactions(self, block: int, page: int = 1, page_size: int = SolscanPageSizeType.SIZE_10.value) -> GetBlockTransactionsResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Block Transactions](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-block-transactions)** for synchronous logic. 
        All the API endopint details are available on [`Solscan._get_block_transactions`][cyhole.solscan.v2.interaction.Solscan._get_block_transactions].
    """
    return self._interaction._get_block_transactions(True, block, page, page_size)

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
def get_block_detail(self, block: int) -> GetBlockDetailResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Block Detail](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-block-detail)** for synchronous logic. 
        All the API endopint details are available on [`Solscan._get_block_detail`][cyhole.solscan.v2.interaction.Solscan._get_block_detail].
    """
    return self._interaction._get_block_detail(True, block)

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
def __init__(self, interaction: Solscan, headers: Any | None = None) -> None:
    super().__init__(interaction, headers)
    self._interaction = cast('Solscan', self._interaction)

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
async def get_account_transfers(self, account: str, params: GetAccountTransferParam = GetAccountTransferParam()) -> GetAccountTransferResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Account Transfer](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-account-transfer)** for asynchronous logic. 
        All the API endopint details are available on [`Solscan._get_account_transfers`][cyhole.solscan.v2.interaction.Solscan._get_account_transfers].
    """
    return await self._interaction._get_account_transfers(False, account, params)

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
async def get_account_token_nft_account(
    self, 
    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](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-account-token-accounts)** for asynchronous logic. 
        All the API endopint details are available on [`Solscan._get_account_token_nft_account`][cyhole.solscan.v2.interaction.Solscan._get_account_token_nft_account].
    """
    return await self._interaction._get_account_token_nft_account(False, account, account_type, page, page_size, hide_zero)

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
async def get_account_defi_activities(self, account: str, params: GetAccountDefiActivitiesParam = GetAccountDefiActivitiesParam()) -> GetAccountDefiActivitiesResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Account DeFi Activities](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-account-defi-activities)** for asynchronous logic. 
        All the API endopint details are available on [`Solscan._get_account_defi_activities`][cyhole.solscan.v2.interaction.Solscan._get_account_defi_activities].
    """
    return await self._interaction._get_account_defi_activities(False, account, params)

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
async def get_account_balance_change_activities(self, account: str, params: GetAccountBalanceChangeActivitiesParam = GetAccountBalanceChangeActivitiesParam()) -> GetAccountBalanceChangeActivitiesResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Account Balance Change Activities](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-account-balance_change)** for asynchronous logic. 
        All the API endopint details are available on [`Solscan._get_account_balance_change_activities`][cyhole.solscan.v2.interaction.Solscan._get_account_balance_change_activities].
    """
    return await self._interaction._get_account_balance_change_activities(False, account, params)

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
async def get_account_transactions(self, account: str, before_transaction: str | None = None, limit: int = SolscanReturnLimitType.LIMIT_10.value) -> GetAccountTransactionsResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Account Transactions](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-account-transactions)** for asynchronous logic. 
        All the API endopint details are available on [`Solscan._get_account_transactions`][cyhole.solscan.v2.interaction.Solscan._get_account_transactions].
    """
    return await self._interaction._get_account_transactions(False, account, before_transaction, limit)

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
async def get_account_stake(self, account: str, page: int = 1, limit: int = SolscanReturnLimitType.LIMIT_10.value) -> GetAccountStakeResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Account Stake](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-account-stake)** for asynchronous logic. 
        All the API endopint details are available on [`Solscan._get_account_stake`][cyhole.solscan.v2.interaction.Solscan._get_account_stake].
    """
    return await self._interaction._get_account_stake(False, account, page, limit)

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
async def get_account_detail(self, account: str) -> GetAccountDetailResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Account Detail](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-account-detail)** for asynchronous logic. 
        All the API endopint details are available on [`Solscan._get_account_detail`][cyhole.solscan.v2.interaction.Solscan._get_account_detail].
    """
    return await self._interaction._get_account_detail(False, account)

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
async def get_account_rewards_export(self, account: str, dt_from: datetime, dt_to: datetime) -> GetAccountRewardsExportResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Account Rewards Export](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-account-reward-export)** for asynchronous logic. 
        All the API endopint details are available on [`Solscan._get_account_rewards_export`][cyhole.solscan.v2.interaction.Solscan._get_account_rewards_export].
    """
    return await self._interaction._get_account_rewards_export(False, account, dt_from, dt_to)

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
async def get_token_transfer(self, token: str, params: GetTokenTransferParam = GetTokenTransferParam()) -> GetTokenTransferResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Token Transfer](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-token-transfer)** for asynchronous logic. 
        All the API endopint details are available on [`Solscan._get_token_transfer`][cyhole.solscan.v2.interaction.Solscan._get_token_transfer].
    """
    return await self._interaction._get_token_transfer(False, token, params)

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
async def get_token_defi_activities(self, token: str, params: GetTokenDefiActivitiesParam = GetTokenDefiActivitiesParam()) -> GetTokenDefiActivitiesResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Token DeFi Activities](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-token-defi-activities)** for asynchronous logic. 
        All the API endopint details are available on [`Solscan._get_token_defi_activities`][cyhole.solscan.v2.interaction.Solscan._get_token_defi_activities].
    """
    return await self._interaction._get_token_defi_activities(False, token, params)

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
async def get_token_markets(
    self,
    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](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-token-markets)** for asynchronous logic. 
        All the API endopint details are available on [`Solscan._get_token_markets`][cyhole.solscan.v2.interaction.Solscan._get_token_markets].
    """
    return await self._interaction._get_token_markets(False, tokens, program_address, page, page_size)

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
async def get_token_list(
    self,
    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](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-token-list)** for asynchronous logic. 
        All the API endopint details are available on [`Solscan._get_token_list`][cyhole.solscan.v2.interaction.Solscan._get_token_list].
    """
    return await self._interaction._get_token_list(False, sort_by, order_by, page, page_size)
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
async def get_token_trending(self, limit: int = 10) -> GetTokenTrendingResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Token Trending](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-token-trending)** for asynchronous logic. 
        All the API endopint details are available on [`Solscan._get_token_trending`][cyhole.solscan.v2.interaction.Solscan._get_token_trending].
    """
    return await self._interaction._get_token_trending(False, limit)

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
async def get_token_price(self, token: str, time_range: datetime | tuple[datetime, datetime] = datetime.now()) -> GetTokenPriceResponse:                
    """
        Call the Solscan's **V2** API endpoint GET **[Token Price](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-token-price)** for asynchronous logic. 
        All the API endopint details are available on [`Solscan._get_token_price`][cyhole.solscan.v2.interaction.Solscan._get_token_price].
    """
    return await self._interaction._get_token_price(False, token, time_range)

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
async def get_token_holders(self, 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](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-token-holders)** for asynchronous logic. 
        All the API endopint details are available on [`Solscan._get_token_holders`][cyhole.solscan.v2.interaction.Solscan._get_token_holders].
    """
    return await self._interaction._get_token_holders(False, token, amount_range, page, page_size)

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
async def get_token_meta(self, token: str) -> GetTokenMetaResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Token Meta](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-token-meta)** for asynchronous logic. 
        All the API endopint details are available on [`Solscan._get_token_meta`][cyhole.solscan.v2.interaction.Solscan._get_token_meta].
    """
    return await self._interaction._get_token_meta(False, token)

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
async def get_nft_news(self, 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](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-nft-news)** for asynchronous logic. 
        All the API endopint details are available on [`Solscan._get_nft_news`][cyhole.solscan.v2.interaction.Solscan._get_nft_news].
    """
    return await self._interaction._get_nft_news(False, filter, page, page_size)

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
async def get_nft_activities(self, params: GetNFTActivitiesParam = GetNFTActivitiesParam()) -> GetNFTActivitiesResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[NFT Activities](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-nft-activities)** for asynchronous logic. 
        All the API endopint details are available on [`Solscan._get_nft_activities`][cyhole.solscan.v2.interaction.Solscan._get_nft_activities].
    """
    return await self._interaction._get_nft_activities(False, params)

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
async def get_nft_collection_lists(self, params: GetNFTCollectionListsParam = GetNFTCollectionListsParam()) -> GetNFTCollectionListsResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[NFT Collection Lists](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-nft-collection-lists)** for asynchronous logic. 
        All the API endopint details are available on [`Solscan._get_nft_collection_lists`][cyhole.solscan.v2.interaction.Solscan._get_nft_collection_lists].
    """
    return await self._interaction._get_nft_collection_lists(False, params)

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
async def get_nft_collection_items(
    self,
    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](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-nft-collection-items)** for asynchronous logic. 
        All the API endopint details are available on [`Solscan._get_nft_collection_items`][cyhole.solscan.v2.interaction.Solscan._get_nft_collection_items].
    """
    return await self._interaction._get_nft_collection_items(False, collection, sort_by, page, page_size)

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
async def get_transaction_last(self, limit: int = SolscanReturnLimitType.LIMIT_10.value, filter: str = SolscanTransactionFilterType.EXCEPT_VOTE.value) -> GetTransactionLastResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Transaction Last](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-transaction-last)** for asynchronous logic. 
        All the API endopint details are available on [`Solscan._get_transaction_last`][cyhole.solscan.v2.interaction.Solscan._get_transaction_last].
    """
    return await self._interaction._get_transaction_last(False, limit, filter)

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
async def get_transaction_actions(self, transaction: str) -> GetTransactionActionsResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Transaction Actions](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-transaction-actions)** for asynchronous logic. 
        All the API endopint details are available on [`Solscan._get_transaction_actions`][cyhole.solscan.v2.interaction.Solscan._get_transaction_actions].
    """
    return await self._interaction._get_transaction_actions(False, transaction)

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
async def get_block_last(self, page_size: int = SolscanPageSizeType.SIZE_10.value) -> GetBlockLastResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Block Last](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-block-last)** for asynchronous logic. 
        All the API endopint details are available on [`Solscan._get_block_last`][cyhole.solscan.v2.interaction.Solscan._get_block_last].
    """
    return await self._interaction._get_block_last(False, page_size)

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
async def get_block_transactions(self, block: int, page: int = 1, page_size: int = SolscanPageSizeType.SIZE_10.value) -> GetBlockTransactionsResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Block Transactions](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-block-transactions)** for asynchronous logic. 
        All the API endopint details are available on [`Solscan._get_block_transactions`][cyhole.solscan.v2.interaction.Solscan._get_block_transactions].
    """
    return await self._interaction._get_block_transactions(False, block, page, page_size)

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
async def get_block_detail(self, block: int) -> GetBlockDetailResponse:
    """
        Call the Solscan's **V2** API endpoint GET **[Block Detail](https://pro-api.solscan.io/pro-api-docs/v2.0/reference/v2-block-detail)** for asynchronous logic. 
        All the API endopint details are available on [`Solscan._get_block_detail`][cyhole.solscan.v2.interaction.Solscan._get_block_detail].
    """
    return await self._interaction._get_block_detail(False, block)