Response Schema¶
cyhole.solscan.v1.schema
¶
SolscanHTTPError
¶
GetAccountTokensTokenAmount
¶
Bases: BaseModel
This class refers to the model of a token amount inside the response of GET Account Tokens of V1 API endpoint.
GetAccountTokensToken
¶
Bases: BaseModel
This class refers to the model of a token inside the response of GET Account Tokens of V1 API endpoint.
token_symbol
class-attribute
instance-attribute
¶
token_symbol: str | None = Field(
default=None, alias="tokenSymbol"
)
token_name
class-attribute
instance-attribute
¶
token_name: str | None = Field(
default=None, alias="tokenName"
)
token_icon
class-attribute
instance-attribute
¶
token_icon: str | None = Field(
default=None, alias="tokenIcon"
)
token_amount
class-attribute
instance-attribute
¶
token_amount: GetAccountTokensTokenAmount = Field(
alias="tokenAmount"
)
GetAccountTokensResponse
¶
GetAccountTransactionsTransactionInstruction
¶
Bases: BaseModel
This class refers to the model of an instruction inside the response of GET Account Transactions of V1 API endpoint.
GetAccountTransactionsTransaction
¶
Bases: BaseModel
This class refers to the model of a transaction inside the response of GET Account Transactions of V1 API endpoint.
block_time_unix_utc
class-attribute
instance-attribute
¶
block_time_unix_utc: int = Field(alias='blockTime')
include_spl_transfer
class-attribute
instance-attribute
¶
include_spl_transfer: bool | None = Field(
default=None, alias="includeSPLTransfer"
)
parsed_instruction
class-attribute
instance-attribute
¶
parsed_instruction: list[
GetAccountTransactionsTransactionInstruction
] = Field(alias="parsedInstruction")
GetAccountTransactionsResponse
¶
Bases: BaseModel
This class refers to the response model of GET Account Transactions of V1 API endpoint.
GetAccountStakeAccountsStakeAccount
¶
Bases: BaseModel
This class refers to the model of a stake account inside the response of GET Account StakeAccounts of V1 API endpoint.
active_stake_amount
class-attribute
instance-attribute
¶
active_stake_amount: int = Field(alias='activeStakeAmount')
delegated_stake_amount
class-attribute
instance-attribute
¶
delegated_stake_amount: int = Field(
alias="delegatedStakeAmount"
)
activation_epoch
class-attribute
instance-attribute
¶
activation_epoch: int = Field(alias='activationEpoch')
GetAccountStakeAccountsResponse
¶
Bases: BaseModel
This class refers to the response model of GET Account StakeAccounts of V1 API endpoint.
stake_accounts
instance-attribute
¶
stake_accounts: dict[
str, GetAccountStakeAccountsStakeAccount
]
GetAccountSplTransfersTransfer
¶
Bases: BaseModel
This class refers to the model of a transfer inside the response of GET Account SplTransfers of V1 API endpoint.
block_time_unix_utc
class-attribute
instance-attribute
¶
block_time_unix_utc: int = Field(alias='blockTime')
GetAccountSplTransfersResponse
¶
Bases: BaseModel
This class refers to the response model of GET Account SplTransfers of V1 API endpoint.
GetAccountSolTransfersTransfer
¶
Bases: BaseModel
This class refers to the model of a transfer inside the response of GET Account SolTransfers of V1 API endpoint.
GetAccountSolTransfersResponse
¶
Bases: BaseModel
This class refers to the response model of GET Account SolTransfers of V1 API endpoint.
GetAccountExportTransactionsResponse
¶
Bases: BaseModel
This class refers to the response model of GET Account ExportTransactions of V1 API endpoint.
GetAccountExportRewardsResponse
¶
Bases: BaseModel
This class refers to the response model of GET Account ExportRewards of V1 API endpoint.
GetAccountDetailResponse
¶
GetTokenHoldersHolder
¶
Bases: BaseModel
This class refers to the model of a holder inside the response of GET Token Holders of V1 API endpoint.
GetTokenHoldersResponse
¶
Bases: BaseModel
This class refers to the response model of GET Token Holders of V1 API endpoint.
GetTokenMetaResponse
¶
Bases: BaseModel
This class refers to the response model of GET Token Meta of V1 API endpoint.
token_authority
class-attribute
instance-attribute
¶
token_authority: str | None = Field(
default=None, alias="tokenAuthority"
)
GetTokenTransferTransferTokenInfo
¶
Bases: BaseModel
This class refers to the model of a token info inside the response of GET Token Transfer of V1 API endpoint.
GetTokenTransferTransfer
¶
Bases: BaseModel
This class refers to the model of a transfer inside the response of GET Token Transfer of V1 API endpoint.
block_time_unix_utc
class-attribute
instance-attribute
¶
block_time_unix_utc: int = Field(alias='blockTime')
source_owner_account
class-attribute
instance-attribute
¶
source_owner_account: str = Field(
alias="sourceOwnerAccount"
)
source_token_account
class-attribute
instance-attribute
¶
source_token_account: str = Field(
alias="sourceTokenAccount"
)
destination_owner_account
class-attribute
instance-attribute
¶
destination_owner_account: str = Field(
alias="destOwnerAccount"
)
destination_token_account
class-attribute
instance-attribute
¶
destination_token_account: str = Field(
alias="destTokenAccount"
)
token_info
class-attribute
instance-attribute
¶
token_info: GetTokenTransferTransferTokenInfo = Field(
alias="tokenInfo"
)
GetTokenTransferResponse
¶
Bases: BaseModel
This class refers to the response model of GET Token Transfer of V1 API endpoint.
GetTokenListTokenSupply
¶
Bases: BaseModel
This class refers to the model of a token supply inside the response of GET Token List of V1 API endpoint.
GetTokenListTokenExtensions
¶
Bases: BaseModel
This class refers to the model of token extensions inside the response of GET Token List of V1 API endpoint.
coingecko_id
class-attribute
instance-attribute
¶
coingecko_id: str | None = Field(
default=None, alias="coingeckoId"
)
coin_marketcap_id
class-attribute
instance-attribute
¶
coin_marketcap_id: str | None = Field(
default=None, alias="coinMarketCapId"
)
serum_v3_usdc
class-attribute
instance-attribute
¶
serum_v3_usdc: str | None = Field(
default=None, alias="serumV3Usdc"
)
serum_v3_usdt
class-attribute
instance-attribute
¶
serum_v3_usdt: str | None = Field(
default=None, alias="serumV3Usdt"
)
GetTokenListTokenCoingeckoInfoMarketData
¶
Bases: BaseModel
This class refers to the model of token coingecko info market data inside the response of GET Token List of V1 API endpoint.
current_price
class-attribute
instance-attribute
¶
current_price: float = Field(alias='currentPrice')
all_time_high_change_percentage
class-attribute
instance-attribute
¶
all_time_high_change_percentage: float = Field(
alias="athChangePercentage"
)
all_time_high_date
class-attribute
instance-attribute
¶
all_time_high_date: datetime = Field(alias='athDate')
all_time_low_change_percentage
class-attribute
instance-attribute
¶
all_time_low_change_percentage: float = Field(
alias="atlChangePercentage"
)
all_time_low_date
class-attribute
instance-attribute
¶
all_time_low_date: datetime = Field(alias='atlDate')
market_cap_rank
class-attribute
instance-attribute
¶
market_cap_rank: int = Field(alias='marketCapRank')
fully_diluted_valuation
class-attribute
instance-attribute
¶
fully_diluted_valuation: int = Field(
alias="fullyDilutedValuation"
)
price_high_24h
class-attribute
instance-attribute
¶
price_high_24h: float = Field(alias='priceHigh24h')
price_low_24h
class-attribute
instance-attribute
¶
price_low_24h: float = Field(alias='priceLow24h')
price_change_24h
class-attribute
instance-attribute
¶
price_change_24h: float = Field(alias='priceChange24h')
price_change_percentage_24h
class-attribute
instance-attribute
¶
price_change_percentage_24h: float = Field(
alias="priceChangePercentage24h"
)
price_change_percentage_7d
class-attribute
instance-attribute
¶
price_change_percentage_7d: float | None = Field(
default=None, alias="priceChangePercentage7d"
)
price_change_percentage_14d
class-attribute
instance-attribute
¶
price_change_percentage_14d: float | None = Field(
default=None, alias="priceChangePercentage14d"
)
price_change_percentage_30d
class-attribute
instance-attribute
¶
price_change_percentage_30d: float | None = Field(
default=None, alias="priceChangePercentage30d"
)
price_change_percentage_60d
class-attribute
instance-attribute
¶
price_change_percentage_60d: float | None = Field(
default=None, alias="priceChangePercentage60d"
)
price_change_percentage_200d
class-attribute
instance-attribute
¶
price_change_percentage_200d: float | None = Field(
default=None, alias="priceChangePercentage200d"
)
price_change_percentage_1y
class-attribute
instance-attribute
¶
price_change_percentage_1y: float | None = Field(
default=None, alias="priceChangePercentage1y"
)
market_cap_change_24h
class-attribute
instance-attribute
¶
market_cap_change_24h: float = Field(
alias="marketCapChange24h"
)
market_cap_change_percentage_24h
class-attribute
instance-attribute
¶
market_cap_change_percentage_24h: float = Field(
alias="marketCapChangePercentage24h"
)
max_supply
class-attribute
instance-attribute
¶
max_supply: float | None = Field(
default=None, alias="maxSupply"
)
circulating_supply
class-attribute
instance-attribute
¶
circulating_supply: float = Field(alias="circulatingSupply")
last_updated
class-attribute
instance-attribute
¶
last_updated: datetime = Field(alias='lastUpdated')
parse_datetime
¶
parse_datetime(datetime_raw: str | datetime) -> datetime
Source code in src/cyhole/solscan/v1/schema.py
298 299 300 301 302 | |
GetTokenListTokenCoingeckoInfo
¶
Bases: BaseModel
This class refers to the model of token coingecko info inside the response of GET Token List of V1 API endpoint.
coingecko_rank
class-attribute
instance-attribute
¶
coingecko_rank: int = Field(alias='coingeckoRank')
market_cap_rank
class-attribute
instance-attribute
¶
market_cap_rank: int = Field(alias='marketCapRank')
market_data
class-attribute
instance-attribute
¶
market_data: GetTokenListTokenCoingeckoInfoMarketData = (
Field(alias="marketData")
)
GetTokenListToken
¶
Bases: BaseModel
This class refers to the model of a token inside the response of GET Token List of V1 API endpoint.
coingecko_info
class-attribute
instance-attribute
¶
coingecko_info: GetTokenListTokenCoingeckoInfo | None = (
Field(default=None, alias="coingeckoInfo")
)
is_violate
class-attribute
instance-attribute
¶
is_violate: bool | None = Field(
default=None, alias="isViolate"
)
market_cap_fd
class-attribute
instance-attribute
¶
market_cap_fd: float | None = Field(
default=None, alias="marketCapFD"
)
market_cap_rank
class-attribute
instance-attribute
¶
market_cap_rank: int | None = Field(
default=None, alias="marketCapRank"
)
price_ust
class-attribute
instance-attribute
¶
price_ust: float | None = Field(
default=None, alias="priceUst"
)
sol_alpha_volume
class-attribute
instance-attribute
¶
sol_alpha_volume: float | None = Field(
default=None, alias="solAlphaVolume"
)
symbol
class-attribute
instance-attribute
¶
symbol: str | None = Field(
default=None, alias="tokenSymbol"
)
chain_id
class-attribute
instance-attribute
¶
chain_id: int | None = Field(default=None, alias='chainId')
GetTokenListResponse
¶
Bases: BaseModel
This class refers to the response model of GET Token List of V1 API endpoint.
GetMarketTokenDetailMarketBaseQuote
¶
Bases: BaseModel
This class refers to the model of a base or quote inside the response of GET Market Token Detail of V1 API endpoint.
GetMarketTokenDetailMarket
¶
Bases: BaseModel
This class refers to the model of a market inside the response of GET Market Token Detail of V1 API endpoint.
GetMarketTokenDetailResponse
¶
Bases: BaseModel
This class refers to the response model of GET Market Token Detail of V1 API endpoint.
GetTransactionLastInstructionSplTokenAmount
¶
Bases: GetAccountTokensTokenAmount
GetTransactionLastInstructionSplTokenParsedInfo
¶
GetTransactionLastInstructionSplTokenParsed
¶
GetTransactionLastInstructionSplToken
¶
Bases: BaseModel
This class refers to the model of instruction spl-token inside the response of GET Transaction Last of V1 API endpoint.
stack_height
class-attribute
instance-attribute
¶
stack_height: int | None = Field(
default=None, alias="stackHeight"
)
GetTransactionLastInstructionSystemParsedInfo
¶
Bases: BaseModel
GetTransactionLastInstructionSystemParsed
¶
GetTransactionLastInstructionSystem
¶
Bases: BaseModel
This class refers to the model of instruction system inside the response of GET Transaction Last of V1 API endpoint.
stack_height
class-attribute
instance-attribute
¶
stack_height: int | None = Field(
default=None, alias="stackHeight"
)
GetTransactionLastInstructionVoteLockout
¶
GetTransactionLastInstructionVoteStateUpdate
¶
GetTransactionLastInstructionVoteParsedInfo
¶
GetTransactionLastInstructionVoteParsed
¶
GetTransactionLastInstructionVote
¶
Bases: BaseModel
This class refers to the model of instruction vote inside the response of GET Transaction Last of V1 API endpoint.
stack_height
class-attribute
instance-attribute
¶
stack_height: int | None = Field(
default=None, alias="stackHeight"
)
GetTransactionLastInstructionGeneral
¶
Bases: BaseModel
This class refers to the model of instruction general inside the response of GET Transaction Last of V1 API endpoint.
GetTransactionLastAddressTableLookup
¶
GetTransactionLastAccountKeys
¶
GetTransactionLastMessage
¶
Bases: BaseModel
account_keys
class-attribute
instance-attribute
¶
account_keys: list[GetTransactionLastAccountKeys] = Field(
alias="accountKeys"
)
address_table_lookups
class-attribute
instance-attribute
¶
address_table_lookups: (
list[GetTransactionLastAddressTableLookup] | None
) = Field(default=None, alias="addressTableLookups")
instructions
instance-attribute
¶
instructions: list[
GetTransactionLastInstructionGeneral
| GetTransactionLastInstructionVote
| GetTransactionLastInstructionSystem
| GetTransactionLastInstructionSplToken
]
recent_blockhash
class-attribute
instance-attribute
¶
recent_blockhash: str = Field(alias='recentBlockhash')
GetTransactionLastTransaction
¶
Bases: BaseModel
This class refers to the model of transaction inside the response of GET Transaction Last of V1 API endpoint.
GetTransactionLastMetaError
¶
Bases: BaseModel
instruction_error
class-attribute
instance-attribute
¶
instruction_error: list[int | dict] = Field(
alias="InstructionError"
)
GetTransactionLastMetaStatus
¶
GetTransactionLastMetaInstructions
¶
GetTransactionLastMetaTokenAmount
¶
Bases: GetAccountTokensTokenAmount
GetTransactionLastMetaTokenBalance
¶
Bases: BaseModel
ui_token_amount
class-attribute
instance-attribute
¶
ui_token_amount: GetTransactionLastMetaTokenAmount = Field(
alias="uiTokenAmount"
)
GetTransactionLastMeta
¶
Bases: BaseModel
This class refers to the model of meta inside the response of GET Transaction Last of V1 API endpoint.
compute_units_consumed
class-attribute
instance-attribute
¶
compute_units_consumed: int = Field(
alias="computeUnitsConsumed"
)
error
class-attribute
instance-attribute
¶
error: GetTransactionLastMetaError | None = Field(
default=None, alias="err"
)
inner_instructions
class-attribute
instance-attribute
¶
inner_instructions: list[
GetTransactionLastMetaInstructions
] = Field(alias="innerInstructions")
log_messages
class-attribute
instance-attribute
¶
log_messages: list[str] = Field(alias='logMessages')
post_balances
class-attribute
instance-attribute
¶
post_balances: list[int] = Field(alias='postBalances')
post_token_balances
class-attribute
instance-attribute
¶
post_token_balances: (
list[GetTransactionLastMetaTokenBalance] | None
) = Field(default=None, alias="postTokenBalances")
pre_balances
class-attribute
instance-attribute
¶
pre_balances: list[int] = Field(alias='preBalances')
pre_token_balances
class-attribute
instance-attribute
¶
pre_token_balances: (
list[GetTransactionLastMetaTokenBalance] | None
) = Field(default=None, alias="preTokenBalances")
GetTransactionLastData
¶
Bases: BaseModel
This class refers to the model of data inside the response of GET Transaction Last of V1 API endpoint.
GetTransactionLastResponse
¶
Bases: BaseModel
This class refers to the response model of GET Transaction Last of V1 API endpoint.
GetTransactionDetailInputAccount
¶
Bases: BaseModel
This class refers to the model of input account inside the response of GET Transaction Detail of V1 API endpoint.
GetTransactionDetailInnerInstructionVoteParams
¶
Bases: BaseModel
vote_authority
class-attribute
instance-attribute
¶
vote_authority: str = Field(alias='voteAuthority')
GetTransactionDetailInnerInstructionSplTransferParams
¶
GetTransactionDetailInnerInstructionSplTokenParams
¶
Bases: BaseModel
mint_authority
class-attribute
instance-attribute
¶
mint_authority: str | None = Field(
default=None, alias="mintAuthority"
)
GetTransactionDetailInnerInstructionSolTransferParams
¶
GetTransactionDetailInnerInstructionClosedAccountParams
¶
Bases: BaseModel
closed_account
class-attribute
instance-attribute
¶
closed_account: str = Field(alias='closedAccount')
GetTransactionDetailInnerInstructionExtra
¶
GetTransactionDetailInnerInstructionParsed
¶
Bases: BaseModel
data_encode
class-attribute
instance-attribute
¶
data_encode: str | None = Field(
default=None, alias="dataEncode"
)
params
instance-attribute
¶
params: (
GetTransactionDetailInnerInstructionVoteParams
| GetTransactionDetailInnerInstructionSplTransferParams
| GetTransactionDetailInnerInstructionSplTokenParams
| GetTransactionDetailInnerInstructionClosedAccountParams
| GetTransactionDetailInnerInstructionSolTransferParams
| dict[str, str]
)
extra
class-attribute
instance-attribute
¶
extra: GetTransactionDetailInnerInstructionExtra | None = (
None
)
GetTransactionDetailInnerInstruction
¶
Bases: BaseModel
This class refers to the model of inner instruction inside the response of GET Transaction Detail of V1 API endpoint.
GetTransactionDetailToken
¶
Bases: BaseModel
GetTransactionDetailTokenAmount
¶
GetTransactionDetailTokenBalance
¶
Bases: BaseModel
This class refers to the model of parsed token balance inside the response of GET Transaction Detail of V1 API endpoint.
GetTransactionDetailParsedInstruction
¶
Bases: GetTransactionDetailInnerInstructionParsed
This class refers to the model of parsed instruction inside the response of GET Transaction Detail of V1 API endpoint.
GetTransactionDetailTokenTransferToken
¶
GetTransactionDetailTokenTransfer
¶
Bases: BaseModel
This class refers to the model of token transfer inside the response of GET Transaction Detail of V1 API endpoint.
GetTransactionDetailSolTransfer
¶
Bases: BaseModel
This class refers to the model of sol transfer inside the response of GET Transaction Detail of V1 API endpoint.
GetTransactionDetailUnknownTransferEvent
¶
GetTransactionDetailUnknownTransfer
¶
Bases: BaseModel
This class refers to the model of unknown transfer inside the response of GET Transaction Detail of V1 API endpoint.
GetTransactionDetailResponse
¶
Bases: BaseModel
This class refers to the response model of GET Transaction Detail of V1 API endpoint.
input_account
class-attribute
instance-attribute
¶
input_account: list[GetTransactionDetailInputAccount] = (
Field(alias="inputAccount")
)
recent_blockhash
class-attribute
instance-attribute
¶
recent_blockhash: str = Field(alias='recentBlockhash')
inner_instructions
class-attribute
instance-attribute
¶
inner_instructions: list[
GetTransactionDetailInnerInstruction
] = Field(alias="innerInstructions")
token_balances
class-attribute
instance-attribute
¶
token_balances: list[GetTransactionDetailTokenBalance] = (
Field(alias="tokenBalances")
)
parsed_instruction
class-attribute
instance-attribute
¶
parsed_instruction: list[
GetTransactionDetailParsedInstruction
] = Field(alias="parsedInstruction")
token_transfers
class-attribute
instance-attribute
¶
token_transfers: list[GetTransactionDetailTokenTransfer] = (
Field(alias="tokenTransfers")
)
sol_transfers
class-attribute
instance-attribute
¶
sol_transfers: list[GetTransactionDetailSolTransfer] = (
Field(alias="solTransfers")
)
serum_transactions
class-attribute
instance-attribute
¶
serum_transactions: list[dict] = Field(
alias="serumTransactions"
)
raydium_transactions
class-attribute
instance-attribute
¶
raydium_transactions: list[dict] = Field(
alias="raydiumTransactions"
)
unknown_transfers
class-attribute
instance-attribute
¶
unknown_transfers: list[
GetTransactionDetailUnknownTransfer
] = Field(alias="unknownTransfers")
GetBlockLastResult
¶
Bases: BaseModel
This class refers to the model of result inside the response of GET Block Last of V1 API endpoint.
block_time_unix_utc
class-attribute
instance-attribute
¶
block_time_unix_utc: int = Field(alias='blockTime')
previous_blockhash
class-attribute
instance-attribute
¶
previous_blockhash: str = Field(alias='previousBlockhash')
transaction_count
class-attribute
instance-attribute
¶
transaction_count: int = Field(alias='transactionCount')
GetBlockLastData
¶
Bases: BaseModel
This class refers to the model of data inside the response of GET Block Last of V1 API endpoint.
GetBlockLastResponse
¶
GetBlockDetailResponse
¶
Bases: GetBlockLastData
This class refers to the response model of GET Block Detail of V1 API endpoint.
GetBlockTransactionsTransaction
¶
Bases: GetTransactionLastData
This class refers to the model of transaction inside the response of GET Block Transactions of V1 API endpoint.
GetBlockTransactionsResponse
¶
Bases: BaseModel
This class refers to the response model of GET Block Transactions of V1 API endpoint.