Response Schema¶
cyhole.solscan.v2.schema
¶
GetTransactionActionsActivityData
module-attribute
¶
GetTransactionActionsActivityData: TypeAlias = (
GetTransactionActionsActivityDataSplMintBurn
| GetTransactionActionsActivityDataUnitLimit
| GetTransactionActionsActivityDataUnitPrice
| GetTransactionActionsActivityDataSplCommon
| GetTransactionActionsActivityDataTokenSwap
| GetTransactionActionsActivityDataCreateAccount
)
SolscanBaseResponse
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Model used to identify the base response of the Solscan API.
SolscanError
¶
SolscanHTTPError
¶
Bases: SolscanBaseResponse
flowchart TD
cyhole.solscan.v2.schema.SolscanHTTPError[SolscanHTTPError]
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse --> cyhole.solscan.v2.schema.SolscanHTTPError
click cyhole.solscan.v2.schema.SolscanHTTPError href "" "cyhole.solscan.v2.schema.SolscanHTTPError"
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Solscan API returns an error schema on failed request that can be used to investigated the error. This schema is used to strandardise the HTTPErrors.
SolscanTransferParam
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.SolscanTransferParam[SolscanTransferParam]
click cyhole.solscan.v2.schema.SolscanTransferParam href "" "cyhole.solscan.v2.schema.SolscanTransferParam"
Model used to identify the parameters of the Solscan transfer (Account/Token).
activity_type
class-attribute
instance-attribute
¶
activity_type: str | list[str] | None = Field(
default=None, serialization_alias="activity_type[]"
)
Activity type of the account transfer.
The supported types are available on SolscanActivityTransferType.
from_address
class-attribute
instance-attribute
¶
from_address: str | None = Field(
default=None, serialization_alias="from"
)
From address to filter.
to_address
class-attribute
instance-attribute
¶
to_address: str | None = Field(
default=None, serialization_alias="to"
)
To address to filter.
amount_range
class-attribute
instance-attribute
¶
amount_range: tuple[int, int] | None = Field(
default=None, serialization_alias="amount[]"
)
Amount range to filter for the account transfers (from, to).
time_range
class-attribute
instance-attribute
¶
time_range: tuple[datetime, datetime] | None = Field(
default=None, serialization_alias="block_time[]"
)
Block times to filter by (from, to).
exclude_amount_zero
class-attribute
instance-attribute
¶
exclude_amount_zero: bool | None = None
Exclude transfers with zero amount.
page
class-attribute
instance-attribute
¶
page: int = Field(default=1, ge=1)
Page number to get the account transfers.
page_size
class-attribute
instance-attribute
¶
page_size: int = Field(
default=SolscanPageSizeType.SIZE_10.value
)
Number of account transfers per page.
The supported types are available on SolscanPageSizeType.
validate_activity_type
classmethod
¶
validate_activity_type(
value: list[str] | str | None,
) -> str | list[str] | None
Source code in src/cyhole/solscan/v2/schema.py
76 77 78 79 80 81 82 83 84 | |
validate_page_size
classmethod
¶
validate_page_size(value: int) -> int
Source code in src/cyhole/solscan/v2/schema.py
86 87 88 89 90 | |
validate_amount_range
classmethod
¶
validate_amount_range(
value: tuple[int, int] | None,
) -> tuple[int, int] | None
Source code in src/cyhole/solscan/v2/schema.py
92 93 94 95 96 97 | |
validate_time_range
classmethod
¶
validate_time_range(
value: tuple[datetime, datetime] | None,
) -> tuple[datetime, datetime] | None
Source code in src/cyhole/solscan/v2/schema.py
99 100 101 102 103 104 | |
serialize_time_range
classmethod
¶
serialize_time_range(
value: tuple[datetime, datetime] | None,
) -> tuple[int, int] | None
Source code in src/cyhole/solscan/v2/schema.py
107 108 109 110 111 112 | |
serialize_exclude_amount_zero
classmethod
¶
serialize_exclude_amount_zero(
value: bool | None,
) -> str | None
Source code in src/cyhole/solscan/v2/schema.py
114 115 116 117 118 119 | |
SolscanTransferData
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.SolscanTransferData[SolscanTransferData]
click cyhole.solscan.v2.schema.SolscanTransferData href "" "cyhole.solscan.v2.schema.SolscanTransferData"
Model used to parse the data of the Solscan transfer (Account/Token).
block_time_unix_utc
class-attribute
instance-attribute
¶
block_time_unix_utc: int = Field(alias='block_time')
SolscanDefiActivitiesParam
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.SolscanDefiActivitiesParam[SolscanDefiActivitiesParam]
click cyhole.solscan.v2.schema.SolscanDefiActivitiesParam href "" "cyhole.solscan.v2.schema.SolscanDefiActivitiesParam"
Model used to identify the parameters of the Solscan defi activities (Account/Token).
activity_type
class-attribute
instance-attribute
¶
activity_type: str | list[str] | None = Field(
default=None, serialization_alias="activity_type[]"
)
Activity type of the account defi activities.
The supported types are available on SolscanActivityDefiType.
from_address
class-attribute
instance-attribute
¶
from_address: str | None = Field(
default=None, serialization_alias="from"
)
From address to filter.
platform_address
class-attribute
instance-attribute
¶
platform_address: str | list[str] | None = Field(
default=None, serialization_alias="platform[]"
)
Platform addresses to filter.
source_address
class-attribute
instance-attribute
¶
source_address: str | list[str] | None = Field(
default=None, serialization_alias="source[]"
)
Source addresses to filter.
time_range
class-attribute
instance-attribute
¶
time_range: tuple[datetime, datetime] | None = Field(
default=None, serialization_alias="block_time[]"
)
Block times to filter by (from, to).
page
class-attribute
instance-attribute
¶
page: int = Field(default=1, ge=1)
Page number to get the account transfers.
page_size
class-attribute
instance-attribute
¶
page_size: int = Field(
default=SolscanPageSizeType.SIZE_10.value
)
Number of account defi activities per page.
The supported types are available on SolscanPageSizeType.
validate_activity_type
classmethod
¶
validate_activity_type(
value: list[str] | str | None,
) -> str | list[str] | None
Source code in src/cyhole/solscan/v2/schema.py
168 169 170 171 172 173 174 175 176 | |
validate_page_size
classmethod
¶
validate_page_size(value: int) -> int
Source code in src/cyhole/solscan/v2/schema.py
178 179 180 181 182 | |
validate_time_range
classmethod
¶
validate_time_range(
value: tuple[datetime, datetime] | None,
) -> tuple[datetime, datetime] | None
Source code in src/cyhole/solscan/v2/schema.py
184 185 186 187 188 189 | |
serialize_time_range
classmethod
¶
serialize_time_range(
value: tuple[datetime, datetime] | None,
) -> tuple[int, int] | None
Source code in src/cyhole/solscan/v2/schema.py
191 192 193 194 195 196 | |
SolscanDefiActivitiesChildRoute
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.SolscanDefiActivitiesChildRoute[SolscanDefiActivitiesChildRoute]
click cyhole.solscan.v2.schema.SolscanDefiActivitiesChildRoute href "" "cyhole.solscan.v2.schema.SolscanDefiActivitiesChildRoute"
token_1_decimals
class-attribute
instance-attribute
¶
token_1_decimals: int = Field(alias='token1_decimals')
token_2
class-attribute
instance-attribute
¶
token_2: str | None = Field(default=None, alias='token2')
token_2_decimals
class-attribute
instance-attribute
¶
token_2_decimals: int | None = Field(
default=None, alias="token2_decimals"
)
amount_2
class-attribute
instance-attribute
¶
amount_2: int | None = Field(default=None, alias='amount2')
SolscanDefiActivitiesRoute
¶
Bases: SolscanDefiActivitiesChildRoute
flowchart TD
cyhole.solscan.v2.schema.SolscanDefiActivitiesRoute[SolscanDefiActivitiesRoute]
cyhole.solscan.v2.schema.SolscanDefiActivitiesChildRoute[SolscanDefiActivitiesChildRoute]
cyhole.solscan.v2.schema.SolscanDefiActivitiesChildRoute --> cyhole.solscan.v2.schema.SolscanDefiActivitiesRoute
click cyhole.solscan.v2.schema.SolscanDefiActivitiesRoute href "" "cyhole.solscan.v2.schema.SolscanDefiActivitiesRoute"
click cyhole.solscan.v2.schema.SolscanDefiActivitiesChildRoute href "" "cyhole.solscan.v2.schema.SolscanDefiActivitiesChildRoute"
child_routes
class-attribute
instance-attribute
¶
child_routes: (
list[SolscanDefiActivitiesChildRoute] | None
) = None
SolscanDefiActivitiesData
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.SolscanDefiActivitiesData[SolscanDefiActivitiesData]
click cyhole.solscan.v2.schema.SolscanDefiActivitiesData href "" "cyhole.solscan.v2.schema.SolscanDefiActivitiesData"
Model used to parse the data of the Solscan defi activities (Account/Token).
block_time_unix_utc
class-attribute
instance-attribute
¶
block_time_unix_utc: int = Field(alias='block_time')
source_addresses
class-attribute
instance-attribute
¶
source_addresses: list[str] = Field(alias='sources')
platform_address
class-attribute
instance-attribute
¶
platform_address: str = Field(alias='platform')
GetAccountTransferParam
¶
Bases: SolscanTransferParam
flowchart TD
cyhole.solscan.v2.schema.GetAccountTransferParam[GetAccountTransferParam]
cyhole.solscan.v2.schema.SolscanTransferParam[SolscanTransferParam]
cyhole.solscan.v2.schema.SolscanTransferParam --> cyhole.solscan.v2.schema.GetAccountTransferParam
click cyhole.solscan.v2.schema.GetAccountTransferParam href "" "cyhole.solscan.v2.schema.GetAccountTransferParam"
click cyhole.solscan.v2.schema.SolscanTransferParam href "" "cyhole.solscan.v2.schema.SolscanTransferParam"
Model used to identify the parameters of the GET Account Transfer of V2 API endpoint.
token_account
class-attribute
instance-attribute
¶
token_account: str | None = None
Token account address to filter.
token_address
class-attribute
instance-attribute
¶
token_address: str | None = Field(
default=None, serialization_alias="token"
)
Token address to filter.
flow_direction
class-attribute
instance-attribute
¶
flow_direction: str | None = Field(
default=None, serialization_alias="flow"
)
Flow direction to filter.
The supported types are available on SolscanFlowType.
validate_flow_direction
classmethod
¶
validate_flow_direction(value: str | None) -> str | None
Source code in src/cyhole/solscan/v2/schema.py
244 245 246 247 248 249 | |
GetAccountTransferData
¶
Bases: SolscanTransferData
flowchart TD
cyhole.solscan.v2.schema.GetAccountTransferData[GetAccountTransferData]
cyhole.solscan.v2.schema.SolscanTransferData[SolscanTransferData]
cyhole.solscan.v2.schema.SolscanTransferData --> cyhole.solscan.v2.schema.GetAccountTransferData
click cyhole.solscan.v2.schema.GetAccountTransferData href "" "cyhole.solscan.v2.schema.GetAccountTransferData"
click cyhole.solscan.v2.schema.SolscanTransferData href "" "cyhole.solscan.v2.schema.SolscanTransferData"
Model used to parse the data of the GET Account Transfer of V2 API endpoint.
GetAccountTransferResponse
¶
Bases: SolscanBaseResponse
flowchart TD
cyhole.solscan.v2.schema.GetAccountTransferResponse[GetAccountTransferResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse --> cyhole.solscan.v2.schema.GetAccountTransferResponse
click cyhole.solscan.v2.schema.GetAccountTransferResponse href "" "cyhole.solscan.v2.schema.GetAccountTransferResponse"
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Model used to parse the response of the GET Account Transfer of V2 API endpoint.
GetAccountTokenNFTAccountData
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetAccountTokenNFTAccountData[GetAccountTokenNFTAccountData]
click cyhole.solscan.v2.schema.GetAccountTokenNFTAccountData href "" "cyhole.solscan.v2.schema.GetAccountTokenNFTAccountData"
Model used to parse the data of the GET Account Token/NFT Account of V2 API endpoint.
GetAccountTokenNFTAccountResponse
¶
Bases: SolscanBaseResponse
flowchart TD
cyhole.solscan.v2.schema.GetAccountTokenNFTAccountResponse[GetAccountTokenNFTAccountResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse --> cyhole.solscan.v2.schema.GetAccountTokenNFTAccountResponse
click cyhole.solscan.v2.schema.GetAccountTokenNFTAccountResponse href "" "cyhole.solscan.v2.schema.GetAccountTokenNFTAccountResponse"
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Model used to parse the response of the GET Account Token/NFT Account of V2 API endpoint.
GetAccountDefiActivitiesParam
¶
Bases: SolscanDefiActivitiesParam
flowchart TD
cyhole.solscan.v2.schema.GetAccountDefiActivitiesParam[GetAccountDefiActivitiesParam]
cyhole.solscan.v2.schema.SolscanDefiActivitiesParam[SolscanDefiActivitiesParam]
cyhole.solscan.v2.schema.SolscanDefiActivitiesParam --> cyhole.solscan.v2.schema.GetAccountDefiActivitiesParam
click cyhole.solscan.v2.schema.GetAccountDefiActivitiesParam href "" "cyhole.solscan.v2.schema.GetAccountDefiActivitiesParam"
click cyhole.solscan.v2.schema.SolscanDefiActivitiesParam href "" "cyhole.solscan.v2.schema.SolscanDefiActivitiesParam"
Model used to identify the parameters of the GET Account Defi Activities of V2 API endpoint.
GetAccountDefiActivitiesData
¶
Bases: SolscanDefiActivitiesData
flowchart TD
cyhole.solscan.v2.schema.GetAccountDefiActivitiesData[GetAccountDefiActivitiesData]
cyhole.solscan.v2.schema.SolscanDefiActivitiesData[SolscanDefiActivitiesData]
cyhole.solscan.v2.schema.SolscanDefiActivitiesData --> cyhole.solscan.v2.schema.GetAccountDefiActivitiesData
click cyhole.solscan.v2.schema.GetAccountDefiActivitiesData href "" "cyhole.solscan.v2.schema.GetAccountDefiActivitiesData"
click cyhole.solscan.v2.schema.SolscanDefiActivitiesData href "" "cyhole.solscan.v2.schema.SolscanDefiActivitiesData"
Model used to parse the data of the GET Account Defi Activities of V2 API endpoint.
GetAccountDefiActivitiesResponse
¶
Bases: SolscanBaseResponse
flowchart TD
cyhole.solscan.v2.schema.GetAccountDefiActivitiesResponse[GetAccountDefiActivitiesResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse --> cyhole.solscan.v2.schema.GetAccountDefiActivitiesResponse
click cyhole.solscan.v2.schema.GetAccountDefiActivitiesResponse href "" "cyhole.solscan.v2.schema.GetAccountDefiActivitiesResponse"
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Model used to parse the response of the GET Account Defi Activities of V2 API endpoint.
GetAccountBalanceChangeActivitiesParam
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetAccountBalanceChangeActivitiesParam[GetAccountBalanceChangeActivitiesParam]
click cyhole.solscan.v2.schema.GetAccountBalanceChangeActivitiesParam href "" "cyhole.solscan.v2.schema.GetAccountBalanceChangeActivitiesParam"
Model used to identify the parameters of the GET Account Balance Change Activities of V2 API endpoint.
token_address
class-attribute
instance-attribute
¶
token_address: str | None = Field(
default=None, serialization_alias="token"
)
Token address to filter.
time_range
class-attribute
instance-attribute
¶
time_range: tuple[datetime, datetime] | None = Field(
default=None, serialization_alias="block_time[]"
)
Block times to filter by (from, to).
remove_spam
class-attribute
instance-attribute
¶
remove_spam: bool | None = None
The query parameter to determine if spam activities have been removed or not.
amount_range
class-attribute
instance-attribute
¶
amount_range: tuple[int, int] | None = Field(
default=None, serialization_alias="amount[]"
)
Amount range to filter for the account transfers (from, to).
flow_direction
class-attribute
instance-attribute
¶
flow_direction: str | None = Field(
default=None, serialization_alias="flow"
)
Flow direction to filter.
The supported types are available on SolscanFlowType.
page
class-attribute
instance-attribute
¶
page: int = Field(default=1, ge=1)
Page number to get the account transfers.
page_size
class-attribute
instance-attribute
¶
page_size: int = Field(
default=SolscanPageSizeType.SIZE_10.value
)
Number of account balance change activities per page.
The supported types are available on SolscanPageSizeType.
validate_flow_direction
classmethod
¶
validate_flow_direction(value: str | None) -> str | None
Source code in src/cyhole/solscan/v2/schema.py
337 338 339 340 341 342 | |
validate_amount_range
classmethod
¶
validate_amount_range(
value: tuple[int, int] | None,
) -> tuple[int, int] | None
Source code in src/cyhole/solscan/v2/schema.py
344 345 346 347 348 349 | |
validate_page_size
classmethod
¶
validate_page_size(value: int) -> int
Source code in src/cyhole/solscan/v2/schema.py
351 352 353 354 355 | |
validate_time_range
classmethod
¶
validate_time_range(
value: tuple[datetime, datetime] | None,
) -> tuple[datetime, datetime] | None
Source code in src/cyhole/solscan/v2/schema.py
357 358 359 360 361 362 | |
serialize_time_range
classmethod
¶
serialize_time_range(
value: tuple[datetime, datetime] | None,
) -> tuple[int, int] | None
Source code in src/cyhole/solscan/v2/schema.py
365 366 367 368 369 370 | |
serialize_remove_spam
classmethod
¶
serialize_remove_spam(value: bool | None) -> str | None
Source code in src/cyhole/solscan/v2/schema.py
372 373 374 375 376 377 | |
GetAccountBalanceChangeActivitiesData
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetAccountBalanceChangeActivitiesData[GetAccountBalanceChangeActivitiesData]
click cyhole.solscan.v2.schema.GetAccountBalanceChangeActivitiesData href "" "cyhole.solscan.v2.schema.GetAccountBalanceChangeActivitiesData"
Model used to parse the data of the GET Account Balance Change Activities of V2 API endpoint.
block_time_unix_utc
class-attribute
instance-attribute
¶
block_time_unix_utc: int = Field(alias='block_time')
GetAccountBalanceChangeActivitiesResponse
¶
Bases: SolscanBaseResponse
flowchart TD
cyhole.solscan.v2.schema.GetAccountBalanceChangeActivitiesResponse[GetAccountBalanceChangeActivitiesResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse --> cyhole.solscan.v2.schema.GetAccountBalanceChangeActivitiesResponse
click cyhole.solscan.v2.schema.GetAccountBalanceChangeActivitiesResponse href "" "cyhole.solscan.v2.schema.GetAccountBalanceChangeActivitiesResponse"
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Model used to parse the response of the GET Account Balance Change Activities of V2 API endpoint.
GetAccountTransactionsInstruction
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetAccountTransactionsInstruction[GetAccountTransactionsInstruction]
click cyhole.solscan.v2.schema.GetAccountTransactionsInstruction href "" "cyhole.solscan.v2.schema.GetAccountTransactionsInstruction"
Model used to parse the instructions of the GET Account Transactions of V2 API endpoint.
GetAccountTransactionsData
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetAccountTransactionsData[GetAccountTransactionsData]
click cyhole.solscan.v2.schema.GetAccountTransactionsData href "" "cyhole.solscan.v2.schema.GetAccountTransactionsData"
Model used to parse the data of the GET Account Transactions of V2 API endpoint.
GetAccountTransactionsResponse
¶
Bases: SolscanBaseResponse
flowchart TD
cyhole.solscan.v2.schema.GetAccountTransactionsResponse[GetAccountTransactionsResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse --> cyhole.solscan.v2.schema.GetAccountTransactionsResponse
click cyhole.solscan.v2.schema.GetAccountTransactionsResponse href "" "cyhole.solscan.v2.schema.GetAccountTransactionsResponse"
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Model used to parse the response of the GET Account Transactions of V2 API endpoint.
GetAccountStakeData
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetAccountStakeData[GetAccountStakeData]
click cyhole.solscan.v2.schema.GetAccountStakeData href "" "cyhole.solscan.v2.schema.GetAccountStakeData"
Model used to parse the data of the GET Account Stake of V2 API endpoint.
GetAccountStakeResponse
¶
Bases: SolscanBaseResponse
flowchart TD
cyhole.solscan.v2.schema.GetAccountStakeResponse[GetAccountStakeResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse --> cyhole.solscan.v2.schema.GetAccountStakeResponse
click cyhole.solscan.v2.schema.GetAccountStakeResponse href "" "cyhole.solscan.v2.schema.GetAccountStakeResponse"
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Model used to parse the response of the GET Account Stake of V2 API endpoint.
GetAccountDetailData
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetAccountDetailData[GetAccountDetailData]
click cyhole.solscan.v2.schema.GetAccountDetailData href "" "cyhole.solscan.v2.schema.GetAccountDetailData"
Model used to parse the data of the GET Account Detail of V2 API endpoint.
GetAccountDetailResponse
¶
Bases: SolscanBaseResponse
flowchart TD
cyhole.solscan.v2.schema.GetAccountDetailResponse[GetAccountDetailResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse --> cyhole.solscan.v2.schema.GetAccountDetailResponse
click cyhole.solscan.v2.schema.GetAccountDetailResponse href "" "cyhole.solscan.v2.schema.GetAccountDetailResponse"
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Model used to parse the response of the GET Account Detail of V2 API endpoint.
GetAccountRewardsExportResponse
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetAccountRewardsExportResponse[GetAccountRewardsExportResponse]
click cyhole.solscan.v2.schema.GetAccountRewardsExportResponse href "" "cyhole.solscan.v2.schema.GetAccountRewardsExportResponse"
This class refers to the response model of GET Account ExportRewards of V2 API endpoint.
GetTokenTransferParam
¶
Bases: SolscanTransferParam
flowchart TD
cyhole.solscan.v2.schema.GetTokenTransferParam[GetTokenTransferParam]
cyhole.solscan.v2.schema.SolscanTransferParam[SolscanTransferParam]
cyhole.solscan.v2.schema.SolscanTransferParam --> cyhole.solscan.v2.schema.GetTokenTransferParam
click cyhole.solscan.v2.schema.GetTokenTransferParam href "" "cyhole.solscan.v2.schema.GetTokenTransferParam"
click cyhole.solscan.v2.schema.SolscanTransferParam href "" "cyhole.solscan.v2.schema.SolscanTransferParam"
Model used to identify the parameters of the GET Token Transfer of V2 API endpoint.
GetTokenTransferData
¶
Bases: SolscanTransferData
flowchart TD
cyhole.solscan.v2.schema.GetTokenTransferData[GetTokenTransferData]
cyhole.solscan.v2.schema.SolscanTransferData[SolscanTransferData]
cyhole.solscan.v2.schema.SolscanTransferData --> cyhole.solscan.v2.schema.GetTokenTransferData
click cyhole.solscan.v2.schema.GetTokenTransferData href "" "cyhole.solscan.v2.schema.GetTokenTransferData"
click cyhole.solscan.v2.schema.SolscanTransferData href "" "cyhole.solscan.v2.schema.SolscanTransferData"
Model used to parse the data of the GET Token Transfer of V2 API endpoint.
GetTokenTransferResponse
¶
Bases: SolscanBaseResponse
flowchart TD
cyhole.solscan.v2.schema.GetTokenTransferResponse[GetTokenTransferResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse --> cyhole.solscan.v2.schema.GetTokenTransferResponse
click cyhole.solscan.v2.schema.GetTokenTransferResponse href "" "cyhole.solscan.v2.schema.GetTokenTransferResponse"
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Model used to parse the response of the GET Token Transfer of V2 API endpoint.
GetTokenDefiActivitiesParam
¶
Bases: SolscanDefiActivitiesParam
flowchart TD
cyhole.solscan.v2.schema.GetTokenDefiActivitiesParam[GetTokenDefiActivitiesParam]
cyhole.solscan.v2.schema.SolscanDefiActivitiesParam[SolscanDefiActivitiesParam]
cyhole.solscan.v2.schema.SolscanDefiActivitiesParam --> cyhole.solscan.v2.schema.GetTokenDefiActivitiesParam
click cyhole.solscan.v2.schema.GetTokenDefiActivitiesParam href "" "cyhole.solscan.v2.schema.GetTokenDefiActivitiesParam"
click cyhole.solscan.v2.schema.SolscanDefiActivitiesParam href "" "cyhole.solscan.v2.schema.SolscanDefiActivitiesParam"
Model used to identify the parameters of the GET Token Defi Activities of V2 API endpoint.
token_address
class-attribute
instance-attribute
¶
token_address: str | None = Field(
default=None, serialization_alias="token"
)
Token address to filter.
GetTokenDefiActivitiesData
¶
Bases: SolscanDefiActivitiesData
flowchart TD
cyhole.solscan.v2.schema.GetTokenDefiActivitiesData[GetTokenDefiActivitiesData]
cyhole.solscan.v2.schema.SolscanDefiActivitiesData[SolscanDefiActivitiesData]
cyhole.solscan.v2.schema.SolscanDefiActivitiesData --> cyhole.solscan.v2.schema.GetTokenDefiActivitiesData
click cyhole.solscan.v2.schema.GetTokenDefiActivitiesData href "" "cyhole.solscan.v2.schema.GetTokenDefiActivitiesData"
click cyhole.solscan.v2.schema.SolscanDefiActivitiesData href "" "cyhole.solscan.v2.schema.SolscanDefiActivitiesData"
Model used to parse the data of the GET Token Defi Activities of V2 API endpoint.
GetTokenDefiActivitiesResponse
¶
Bases: SolscanBaseResponse
flowchart TD
cyhole.solscan.v2.schema.GetTokenDefiActivitiesResponse[GetTokenDefiActivitiesResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse --> cyhole.solscan.v2.schema.GetTokenDefiActivitiesResponse
click cyhole.solscan.v2.schema.GetTokenDefiActivitiesResponse href "" "cyhole.solscan.v2.schema.GetTokenDefiActivitiesResponse"
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Model used to parse the response of the GET Token Defi Activities of V2 API endpoint.
GetTokenMarketsData
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetTokenMarketsData[GetTokenMarketsData]
click cyhole.solscan.v2.schema.GetTokenMarketsData href "" "cyhole.solscan.v2.schema.GetTokenMarketsData"
Model used to parse the data of the GET Token Markets of V2 API endpoint.
GetTokenMarketsResponse
¶
Bases: SolscanBaseResponse
flowchart TD
cyhole.solscan.v2.schema.GetTokenMarketsResponse[GetTokenMarketsResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse --> cyhole.solscan.v2.schema.GetTokenMarketsResponse
click cyhole.solscan.v2.schema.GetTokenMarketsResponse href "" "cyhole.solscan.v2.schema.GetTokenMarketsResponse"
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Model used to parse the response of the GET Token Markets of V2 API endpoint.
GetTokenListData
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetTokenListData[GetTokenListData]
click cyhole.solscan.v2.schema.GetTokenListData href "" "cyhole.solscan.v2.schema.GetTokenListData"
Model used to parse the data of the GET Token List of V2 API endpoint.
created_time_unix_utc
class-attribute
instance-attribute
¶
created_time_unix_utc: int | None = Field(
default=None, alias="created_time"
)
GetTokenListResponse
¶
Bases: SolscanBaseResponse
flowchart TD
cyhole.solscan.v2.schema.GetTokenListResponse[GetTokenListResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse --> cyhole.solscan.v2.schema.GetTokenListResponse
click cyhole.solscan.v2.schema.GetTokenListResponse href "" "cyhole.solscan.v2.schema.GetTokenListResponse"
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Model used to parse the response of the GET Token List of V2 API endpoint.
GetTokenTrendingData
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetTokenTrendingData[GetTokenTrendingData]
click cyhole.solscan.v2.schema.GetTokenTrendingData href "" "cyhole.solscan.v2.schema.GetTokenTrendingData"
Model used to parse the data of the GET Token Trending of V2 API endpoint.
GetTokenTrendingResponse
¶
Bases: SolscanBaseResponse
flowchart TD
cyhole.solscan.v2.schema.GetTokenTrendingResponse[GetTokenTrendingResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse --> cyhole.solscan.v2.schema.GetTokenTrendingResponse
click cyhole.solscan.v2.schema.GetTokenTrendingResponse href "" "cyhole.solscan.v2.schema.GetTokenTrendingResponse"
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Model used to parse the response of the GET Token Trending of V2 API endpoint.
GetTokenPriceData
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetTokenPriceData[GetTokenPriceData]
click cyhole.solscan.v2.schema.GetTokenPriceData href "" "cyhole.solscan.v2.schema.GetTokenPriceData"
Model used to parse the data of the GET Token Price of V2 API endpoint.
validate_date
classmethod
¶
validate_date(value: int) -> datetime
Source code in src/cyhole/solscan/v2/schema.py
602 603 604 605 | |
serialize_date
classmethod
¶
serialize_date(value: datetime) -> int
Source code in src/cyhole/solscan/v2/schema.py
608 609 610 611 | |
GetTokenPriceResponse
¶
Bases: SolscanBaseResponse
flowchart TD
cyhole.solscan.v2.schema.GetTokenPriceResponse[GetTokenPriceResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse --> cyhole.solscan.v2.schema.GetTokenPriceResponse
click cyhole.solscan.v2.schema.GetTokenPriceResponse href "" "cyhole.solscan.v2.schema.GetTokenPriceResponse"
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Model used to parse the response of the GET Token Price of V2 API endpoint.
GetTokenHoldersHolder
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetTokenHoldersHolder[GetTokenHoldersHolder]
click cyhole.solscan.v2.schema.GetTokenHoldersHolder href "" "cyhole.solscan.v2.schema.GetTokenHoldersHolder"
Model used to parse the holder data of the GET Token Holders of V2 API endpoint.
GetTokenHoldersData
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetTokenHoldersData[GetTokenHoldersData]
click cyhole.solscan.v2.schema.GetTokenHoldersData href "" "cyhole.solscan.v2.schema.GetTokenHoldersData"
Model used to parse the data of the GET Token Holders of V2 API endpoint.
GetTokenHoldersResponse
¶
Bases: SolscanBaseResponse
flowchart TD
cyhole.solscan.v2.schema.GetTokenHoldersResponse[GetTokenHoldersResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse --> cyhole.solscan.v2.schema.GetTokenHoldersResponse
click cyhole.solscan.v2.schema.GetTokenHoldersResponse href "" "cyhole.solscan.v2.schema.GetTokenHoldersResponse"
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Model used to parse the response of the GET Token Holders of V2 API endpoint.
GetTokenMetaData
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetTokenMetaData[GetTokenMetaData]
click cyhole.solscan.v2.schema.GetTokenMetaData href "" "cyhole.solscan.v2.schema.GetTokenMetaData"
Model used to parse the meta data of the GET Token Meta of V2 API endpoint.
GetTokenMetaResponse
¶
Bases: SolscanBaseResponse
flowchart TD
cyhole.solscan.v2.schema.GetTokenMetaResponse[GetTokenMetaResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse --> cyhole.solscan.v2.schema.GetTokenMetaResponse
click cyhole.solscan.v2.schema.GetTokenMetaResponse href "" "cyhole.solscan.v2.schema.GetTokenMetaResponse"
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Model used to parse the response of the GET Token Meta of V2 API endpoint.
GetNFTNewsNftInfoMetaAttribute
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetNFTNewsNftInfoMetaAttribute[GetNFTNewsNftInfoMetaAttribute]
click cyhole.solscan.v2.schema.GetNFTNewsNftInfoMetaAttribute href "" "cyhole.solscan.v2.schema.GetNFTNewsNftInfoMetaAttribute"
GetNFTNewsNftInfoMetaCollection
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetNFTNewsNftInfoMetaCollection[GetNFTNewsNftInfoMetaCollection]
click cyhole.solscan.v2.schema.GetNFTNewsNftInfoMetaCollection href "" "cyhole.solscan.v2.schema.GetNFTNewsNftInfoMetaCollection"
GetNFTNewsNftInfoMetaFile
¶
GetNFTNewsNftInfoMetaCreator
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetNFTNewsNftInfoMetaCreator[GetNFTNewsNftInfoMetaCreator]
click cyhole.solscan.v2.schema.GetNFTNewsNftInfoMetaCreator href "" "cyhole.solscan.v2.schema.GetNFTNewsNftInfoMetaCreator"
GetNFTNewsNftInfoMetaProperty
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetNFTNewsNftInfoMetaProperty[GetNFTNewsNftInfoMetaProperty]
click cyhole.solscan.v2.schema.GetNFTNewsNftInfoMetaProperty href "" "cyhole.solscan.v2.schema.GetNFTNewsNftInfoMetaProperty"
GetNFTNewsNftInfoMeta
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetNFTNewsNftInfoMeta[GetNFTNewsNftInfoMeta]
click cyhole.solscan.v2.schema.GetNFTNewsNftInfoMeta href "" "cyhole.solscan.v2.schema.GetNFTNewsNftInfoMeta"
seller_fee_basis_points
class-attribute
instance-attribute
¶
seller_fee_basis_points: int | None = None
attributes
class-attribute
instance-attribute
¶
attributes: list[GetNFTNewsNftInfoMetaAttribute] | None = (
None
)
collection
class-attribute
instance-attribute
¶
collection: GetNFTNewsNftInfoMetaCollection | None = None
properties
class-attribute
instance-attribute
¶
properties: GetNFTNewsNftInfoMetaProperty | None = None
creators
class-attribute
instance-attribute
¶
creators: list[GetNFTNewsNftInfoMetaCreator] | None = None
process_video
class-attribute
instance-attribute
¶
process_video: str | None = Field(
default=None, alias="processVideo"
)
GetNFTNewsNftInfoDataCreator
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetNFTNewsNftInfoDataCreator[GetNFTNewsNftInfoDataCreator]
click cyhole.solscan.v2.schema.GetNFTNewsNftInfoDataCreator href "" "cyhole.solscan.v2.schema.GetNFTNewsNftInfoDataCreator"
GetNFTNewsNftInfoData
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetNFTNewsNftInfoData[GetNFTNewsNftInfoData]
click cyhole.solscan.v2.schema.GetNFTNewsNftInfoData href "" "cyhole.solscan.v2.schema.GetNFTNewsNftInfoData"
seller_fee_basis_points
class-attribute
instance-attribute
¶
seller_fee_basis_points: int = Field(
alias="sellerFeeBasisPoints"
)
GetNFTNewsNftInfo
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetNFTNewsNftInfo[GetNFTNewsNftInfo]
click cyhole.solscan.v2.schema.GetNFTNewsNftInfo href "" "cyhole.solscan.v2.schema.GetNFTNewsNftInfo"
GetNFTNewsNft
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetNFTNewsNft[GetNFTNewsNft]
click cyhole.solscan.v2.schema.GetNFTNewsNft href "" "cyhole.solscan.v2.schema.GetNFTNewsNft"
GetNFTNewsData
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetNFTNewsData[GetNFTNewsData]
click cyhole.solscan.v2.schema.GetNFTNewsData href "" "cyhole.solscan.v2.schema.GetNFTNewsData"
Model used to parse the data of the GET NFT News of V2 API endpoint.
GetNFTNewsResponse
¶
Bases: SolscanBaseResponse
flowchart TD
cyhole.solscan.v2.schema.GetNFTNewsResponse[GetNFTNewsResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse --> cyhole.solscan.v2.schema.GetNFTNewsResponse
click cyhole.solscan.v2.schema.GetNFTNewsResponse href "" "cyhole.solscan.v2.schema.GetNFTNewsResponse"
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Model used to parse the response of the GET NFT News of V2 API endpoint.
GetNFTActivitiesParam
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetNFTActivitiesParam[GetNFTActivitiesParam]
click cyhole.solscan.v2.schema.GetNFTActivitiesParam href "" "cyhole.solscan.v2.schema.GetNFTActivitiesParam"
Model used to identify the parameters of the GET NFT Activities of V2 API endpoint.
from_address
class-attribute
instance-attribute
¶
from_address: str | None = Field(
default=None, serialization_alias="from"
)
From address to filter.
to_address
class-attribute
instance-attribute
¶
to_address: str | None = Field(
default=None, serialization_alias="to"
)
To address to filter.
source_address
class-attribute
instance-attribute
¶
source_address: str | list[str] | None = Field(
default=None, serialization_alias="source[]"
)
Source addresses to filter.
activity_type
class-attribute
instance-attribute
¶
activity_type: str | list[str] | None = Field(
default=None, serialization_alias="activity_type[]"
)
Activity type of the NFT activities.
The supported types are available on SolscanActivityNFTType.
token_address
class-attribute
instance-attribute
¶
token_address: str | None = Field(
default=None, serialization_alias="token"
)
Token address to filter.
collection_address
class-attribute
instance-attribute
¶
collection_address: str | None = Field(
default=None, serialization_alias="collection"
)
Collection address to filter.
currency_token_address
class-attribute
instance-attribute
¶
currency_token_address: str | None = Field(
default=None, serialization_alias="currency_token"
)
Currency token address to filter.
amount_range
class-attribute
instance-attribute
¶
amount_range: tuple[int, int] | None = Field(
default=None, serialization_alias="price[]"
)
Amount range to filter for the NFT activities (from, to).
time_range
class-attribute
instance-attribute
¶
time_range: tuple[datetime, datetime] | None = Field(
default=None, serialization_alias="block_time[]"
)
Block times to filter by (from, to).
page
class-attribute
instance-attribute
¶
page: int = Field(default=1, ge=1)
Page number to get the NFT activities.
page_size
class-attribute
instance-attribute
¶
page_size: int = Field(
default=SolscanPageSizeType.SIZE_10.value
)
Number of NFT activities per page.
The supported types are available on SolscanPageSizeType.
validate_activity_type
classmethod
¶
validate_activity_type(
value: list[str] | str | None,
) -> str | list[str] | None
Source code in src/cyhole/solscan/v2/schema.py
797 798 799 800 801 802 803 804 805 | |
validate_amount_range
classmethod
¶
validate_amount_range(
value: tuple[int, int] | None,
) -> tuple[int, int] | None
Source code in src/cyhole/solscan/v2/schema.py
807 808 809 810 811 812 | |
validate_page_size
classmethod
¶
validate_page_size(value: int) -> int
Source code in src/cyhole/solscan/v2/schema.py
814 815 816 817 818 | |
validate_time_range
classmethod
¶
validate_time_range(
value: tuple[datetime, datetime] | None,
) -> tuple[datetime, datetime] | None
Source code in src/cyhole/solscan/v2/schema.py
820 821 822 823 824 825 | |
serialize_time_range
classmethod
¶
serialize_time_range(
value: tuple[datetime, datetime] | None,
) -> tuple[int, int] | None
Source code in src/cyhole/solscan/v2/schema.py
828 829 830 831 832 833 | |
GetNFTActivitiesData
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetNFTActivitiesData[GetNFTActivitiesData]
click cyhole.solscan.v2.schema.GetNFTActivitiesData href "" "cyhole.solscan.v2.schema.GetNFTActivitiesData"
Model used to parse the data of the GET NFT Activities of V2 API endpoint.
block_time_unix_utc
class-attribute
instance-attribute
¶
block_time_unix_utc: int = Field(alias='block_time')
GetNFTActivitiesResponse
¶
Bases: SolscanBaseResponse
flowchart TD
cyhole.solscan.v2.schema.GetNFTActivitiesResponse[GetNFTActivitiesResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse --> cyhole.solscan.v2.schema.GetNFTActivitiesResponse
click cyhole.solscan.v2.schema.GetNFTActivitiesResponse href "" "cyhole.solscan.v2.schema.GetNFTActivitiesResponse"
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Model used to parse the response of the GET NFT Activities of V2 API endpoint.
GetNFTCollectionListsParam
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetNFTCollectionListsParam[GetNFTCollectionListsParam]
click cyhole.solscan.v2.schema.GetNFTCollectionListsParam href "" "cyhole.solscan.v2.schema.GetNFTCollectionListsParam"
Model used to identify the parameters of the GET NFT Collection Lists of V2 API endpoint.
days_range
class-attribute
instance-attribute
¶
days_range: int | None = Field(
default=None, serialization_alias="range"
)
Number of days to filter the NFT collection lists.
The supported types are available on SolscanNFTDaysRangeType.
order_by
class-attribute
instance-attribute
¶
order_by: str | None = Field(
default=None, serialization_alias="sort_order"
)
Order by to filter the NFT collection lists.
The supported types are available on SolscanOrderType.
sort_by
class-attribute
instance-attribute
¶
sort_by: str | None = Field(
default=None, serialization_alias="sort_by"
)
Sort by to filter the NFT collection lists.
The supported types are available on SolscanNFTSortType.
page
class-attribute
instance-attribute
¶
page: int = Field(default=1, ge=1)
Page number to get the NFT collection lists.
page_size
class-attribute
instance-attribute
¶
page_size: int = Field(
default=SolscanPageSizeType.SIZE_10.value
)
Number of NFT activities per page.
The supported types are available on SolscanNFTCollectionPageSizeType.
collection_address
class-attribute
instance-attribute
¶
collection_address: str | None = Field(
default=None, serialization_alias="collection"
)
Collection address to filter.
validate_days_range
classmethod
¶
validate_days_range(value: int | None) -> int | None
Source code in src/cyhole/solscan/v2/schema.py
899 900 901 902 903 904 | |
validate_order_by
classmethod
¶
validate_order_by(value: str | None) -> str | None
Source code in src/cyhole/solscan/v2/schema.py
906 907 908 909 910 911 | |
validate_sort_by
classmethod
¶
validate_sort_by(value: str | None) -> str | None
Source code in src/cyhole/solscan/v2/schema.py
913 914 915 916 917 918 | |
validate_page_size
classmethod
¶
validate_page_size(value: int) -> int
Source code in src/cyhole/solscan/v2/schema.py
920 921 922 923 924 | |
GetNFTCollectionListsData
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetNFTCollectionListsData[GetNFTCollectionListsData]
click cyhole.solscan.v2.schema.GetNFTCollectionListsData href "" "cyhole.solscan.v2.schema.GetNFTCollectionListsData"
Model used to parse the data of the GET NFT Collection Lists of V2 API endpoint.
collection_address
class-attribute
instance-attribute
¶
collection_address: str = Field(alias='collection_id')
GetNFTCollectionListsResponse
¶
Bases: SolscanBaseResponse
flowchart TD
cyhole.solscan.v2.schema.GetNFTCollectionListsResponse[GetNFTCollectionListsResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse --> cyhole.solscan.v2.schema.GetNFTCollectionListsResponse
click cyhole.solscan.v2.schema.GetNFTCollectionListsResponse href "" "cyhole.solscan.v2.schema.GetNFTCollectionListsResponse"
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Model used to parse the response of the GET NFT Collection Lists of V2 API endpoint.
GetNFTCollectionItemData
¶
Bases: GetNFTNewsNftInfoData
flowchart TD
cyhole.solscan.v2.schema.GetNFTCollectionItemData[GetNFTCollectionItemData]
cyhole.solscan.v2.schema.GetNFTNewsNftInfoData[GetNFTNewsNftInfoData]
cyhole.solscan.v2.schema.GetNFTNewsNftInfoData --> cyhole.solscan.v2.schema.GetNFTCollectionItemData
click cyhole.solscan.v2.schema.GetNFTCollectionItemData href "" "cyhole.solscan.v2.schema.GetNFTCollectionItemData"
click cyhole.solscan.v2.schema.GetNFTNewsNftInfoData href "" "cyhole.solscan.v2.schema.GetNFTNewsNftInfoData"
GetNFTCollectionItemMeta
¶
Bases: GetNFTNewsNftInfoMeta
flowchart TD
cyhole.solscan.v2.schema.GetNFTCollectionItemMeta[GetNFTCollectionItemMeta]
cyhole.solscan.v2.schema.GetNFTNewsNftInfoMeta[GetNFTNewsNftInfoMeta]
cyhole.solscan.v2.schema.GetNFTNewsNftInfoMeta --> cyhole.solscan.v2.schema.GetNFTCollectionItemMeta
click cyhole.solscan.v2.schema.GetNFTCollectionItemMeta href "" "cyhole.solscan.v2.schema.GetNFTCollectionItemMeta"
click cyhole.solscan.v2.schema.GetNFTNewsNftInfoMeta href "" "cyhole.solscan.v2.schema.GetNFTNewsNftInfoMeta"
GetNFTCollectionItemInfo
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetNFTCollectionItemInfo[GetNFTCollectionItemInfo]
click cyhole.solscan.v2.schema.GetNFTCollectionItemInfo href "" "cyhole.solscan.v2.schema.GetNFTCollectionItemInfo"
GetNFTCollectionItemStats
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetNFTCollectionItemStats[GetNFTCollectionItemStats]
click cyhole.solscan.v2.schema.GetNFTCollectionItemStats href "" "cyhole.solscan.v2.schema.GetNFTCollectionItemStats"
trade_time_unix_utc
class-attribute
instance-attribute
¶
trade_time_unix_utc: int = Field(alias='trade_time')
GetNFTCollectionItemsData
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetNFTCollectionItemsData[GetNFTCollectionItemsData]
click cyhole.solscan.v2.schema.GetNFTCollectionItemsData href "" "cyhole.solscan.v2.schema.GetNFTCollectionItemsData"
Model used to parse the data of the GET NFT Collection Items of V2 API endpoint.
GetNFTCollectionItemsResponse
¶
Bases: SolscanBaseResponse
flowchart TD
cyhole.solscan.v2.schema.GetNFTCollectionItemsResponse[GetNFTCollectionItemsResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse --> cyhole.solscan.v2.schema.GetNFTCollectionItemsResponse
click cyhole.solscan.v2.schema.GetNFTCollectionItemsResponse href "" "cyhole.solscan.v2.schema.GetNFTCollectionItemsResponse"
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Model used to parse the response of the GET NFT Collection Items of V2 API endpoint.
GetTransactionLastInstruction
¶
Bases: GetAccountTransactionsInstruction
flowchart TD
cyhole.solscan.v2.schema.GetTransactionLastInstruction[GetTransactionLastInstruction]
cyhole.solscan.v2.schema.GetAccountTransactionsInstruction[GetAccountTransactionsInstruction]
cyhole.solscan.v2.schema.GetAccountTransactionsInstruction --> cyhole.solscan.v2.schema.GetTransactionLastInstruction
click cyhole.solscan.v2.schema.GetTransactionLastInstruction href "" "cyhole.solscan.v2.schema.GetTransactionLastInstruction"
click cyhole.solscan.v2.schema.GetAccountTransactionsInstruction href "" "cyhole.solscan.v2.schema.GetAccountTransactionsInstruction"
GetTransactionLastData
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetTransactionLastData[GetTransactionLastData]
click cyhole.solscan.v2.schema.GetTransactionLastData href "" "cyhole.solscan.v2.schema.GetTransactionLastData"
Model used to parse the data of the GET Transaction Last of V2 API endpoint.
block_time_unix_utc
class-attribute
instance-attribute
¶
block_time_unix_utc: int = Field(alias='block_time')
GetTransactionLastResponse
¶
Bases: SolscanBaseResponse
flowchart TD
cyhole.solscan.v2.schema.GetTransactionLastResponse[GetTransactionLastResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse --> cyhole.solscan.v2.schema.GetTransactionLastResponse
click cyhole.solscan.v2.schema.GetTransactionLastResponse href "" "cyhole.solscan.v2.schema.GetTransactionLastResponse"
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Model used to parse the response of the GET Transaction Last of V2 API endpoint.
GetTransactionActionsTransfer
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetTransactionActionsTransfer[GetTransactionActionsTransfer]
click cyhole.solscan.v2.schema.GetTransactionActionsTransfer href "" "cyhole.solscan.v2.schema.GetTransactionActionsTransfer"
GetTransactionActionsActivityDataRouter
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetTransactionActionsActivityDataRouter[GetTransactionActionsActivityDataRouter]
click cyhole.solscan.v2.schema.GetTransactionActionsActivityDataRouter href "" "cyhole.solscan.v2.schema.GetTransactionActionsActivityDataRouter"
GetTransactionActionsActivityDataUnitLimit
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetTransactionActionsActivityDataUnitLimit[GetTransactionActionsActivityDataUnitLimit]
click cyhole.solscan.v2.schema.GetTransactionActionsActivityDataUnitLimit href "" "cyhole.solscan.v2.schema.GetTransactionActionsActivityDataUnitLimit"
GetTransactionActionsActivityDataUnitPrice
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetTransactionActionsActivityDataUnitPrice[GetTransactionActionsActivityDataUnitPrice]
click cyhole.solscan.v2.schema.GetTransactionActionsActivityDataUnitPrice href "" "cyhole.solscan.v2.schema.GetTransactionActionsActivityDataUnitPrice"
GetTransactionActionsActivityDataSplCommon
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetTransactionActionsActivityDataSplCommon[GetTransactionActionsActivityDataSplCommon]
click cyhole.solscan.v2.schema.GetTransactionActionsActivityDataSplCommon href "" "cyhole.solscan.v2.schema.GetTransactionActionsActivityDataSplCommon"
GetTransactionActionsActivityDataSplMintBurn
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetTransactionActionsActivityDataSplMintBurn[GetTransactionActionsActivityDataSplMintBurn]
click cyhole.solscan.v2.schema.GetTransactionActionsActivityDataSplMintBurn href "" "cyhole.solscan.v2.schema.GetTransactionActionsActivityDataSplMintBurn"
GetTransactionActionsActivityDataTokenSwap
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetTransactionActionsActivityDataTokenSwap[GetTransactionActionsActivityDataTokenSwap]
click cyhole.solscan.v2.schema.GetTransactionActionsActivityDataTokenSwap href "" "cyhole.solscan.v2.schema.GetTransactionActionsActivityDataTokenSwap"
rounters
class-attribute
instance-attribute
¶
rounters: (
list[GetTransactionActionsActivityDataRouter] | None
) = None
GetTransactionActionsActivityDataCreateAccount
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetTransactionActionsActivityDataCreateAccount[GetTransactionActionsActivityDataCreateAccount]
click cyhole.solscan.v2.schema.GetTransactionActionsActivityDataCreateAccount href "" "cyhole.solscan.v2.schema.GetTransactionActionsActivityDataCreateAccount"
GetTransactionActionsActivity
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetTransactionActionsActivity[GetTransactionActionsActivity]
click cyhole.solscan.v2.schema.GetTransactionActionsActivity href "" "cyhole.solscan.v2.schema.GetTransactionActionsActivity"
GetTransactionActionsData
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetTransactionActionsData[GetTransactionActionsData]
click cyhole.solscan.v2.schema.GetTransactionActionsData href "" "cyhole.solscan.v2.schema.GetTransactionActionsData"
Model used to parse the data of the GET Transaction Actions of V2 API endpoint.
block_time_unix_utc
class-attribute
instance-attribute
¶
block_time_unix_utc: int = Field(alias='block_time')
transfers
class-attribute
instance-attribute
¶
transfers: list[GetTransactionActionsTransfer] | None = None
activities
class-attribute
instance-attribute
¶
activities: list[GetTransactionActionsActivity] | None = (
None
)
GetTransactionActionsResponse
¶
Bases: SolscanBaseResponse
flowchart TD
cyhole.solscan.v2.schema.GetTransactionActionsResponse[GetTransactionActionsResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse --> cyhole.solscan.v2.schema.GetTransactionActionsResponse
click cyhole.solscan.v2.schema.GetTransactionActionsResponse href "" "cyhole.solscan.v2.schema.GetTransactionActionsResponse"
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Model used to parse the response of the GET Transaction Actions of V2 API endpoint.
GetBlockLastData
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetBlockLastData[GetBlockLastData]
click cyhole.solscan.v2.schema.GetBlockLastData href "" "cyhole.solscan.v2.schema.GetBlockLastData"
Model used to parse the data of the GET Block Last of V2 API endpoint.
GetBlockLastResponse
¶
Bases: SolscanBaseResponse
flowchart TD
cyhole.solscan.v2.schema.GetBlockLastResponse[GetBlockLastResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse --> cyhole.solscan.v2.schema.GetBlockLastResponse
click cyhole.solscan.v2.schema.GetBlockLastResponse href "" "cyhole.solscan.v2.schema.GetBlockLastResponse"
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Model used to parse the response of the GET Block Last of V2 API endpoint.
GetBlockTransactionsInstruction
¶
Bases: GetAccountTransactionsInstruction
flowchart TD
cyhole.solscan.v2.schema.GetBlockTransactionsInstruction[GetBlockTransactionsInstruction]
cyhole.solscan.v2.schema.GetAccountTransactionsInstruction[GetAccountTransactionsInstruction]
cyhole.solscan.v2.schema.GetAccountTransactionsInstruction --> cyhole.solscan.v2.schema.GetBlockTransactionsInstruction
click cyhole.solscan.v2.schema.GetBlockTransactionsInstruction href "" "cyhole.solscan.v2.schema.GetBlockTransactionsInstruction"
click cyhole.solscan.v2.schema.GetAccountTransactionsInstruction href "" "cyhole.solscan.v2.schema.GetAccountTransactionsInstruction"
GetBlockTransactionsDataTransaction
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetBlockTransactionsDataTransaction[GetBlockTransactionsDataTransaction]
click cyhole.solscan.v2.schema.GetBlockTransactionsDataTransaction href "" "cyhole.solscan.v2.schema.GetBlockTransactionsDataTransaction"
block_time_unix_utc
class-attribute
instance-attribute
¶
block_time_unix_utc: int = Field(alias='block_time')
GetBlockTransactionsData
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetBlockTransactionsData[GetBlockTransactionsData]
click cyhole.solscan.v2.schema.GetBlockTransactionsData href "" "cyhole.solscan.v2.schema.GetBlockTransactionsData"
Model used to parse the data of the GET Block Transactions of V2 API endpoint.
GetBlockTransactionsResponse
¶
Bases: SolscanBaseResponse
flowchart TD
cyhole.solscan.v2.schema.GetBlockTransactionsResponse[GetBlockTransactionsResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse --> cyhole.solscan.v2.schema.GetBlockTransactionsResponse
click cyhole.solscan.v2.schema.GetBlockTransactionsResponse href "" "cyhole.solscan.v2.schema.GetBlockTransactionsResponse"
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Model used to parse the response of the GET Block Transactions of V2 API endpoint.
GetBlockDetailData
¶
Bases: BaseModel
flowchart TD
cyhole.solscan.v2.schema.GetBlockDetailData[GetBlockDetailData]
click cyhole.solscan.v2.schema.GetBlockDetailData href "" "cyhole.solscan.v2.schema.GetBlockDetailData"
Model used to parse the data of the GET Block Detail of V2 API endpoint.
GetBlockDetailResponse
¶
Bases: SolscanBaseResponse
flowchart TD
cyhole.solscan.v2.schema.GetBlockDetailResponse[GetBlockDetailResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse[SolscanBaseResponse]
cyhole.solscan.v2.schema.SolscanBaseResponse --> cyhole.solscan.v2.schema.GetBlockDetailResponse
click cyhole.solscan.v2.schema.GetBlockDetailResponse href "" "cyhole.solscan.v2.schema.GetBlockDetailResponse"
click cyhole.solscan.v2.schema.SolscanBaseResponse href "" "cyhole.solscan.v2.schema.SolscanBaseResponse"
Model used to parse the response of the GET Block Detail of V2 API endpoint.