pub struct BalanceUpdateDto {Show 21 fields
pub account_owner_address: String,
pub balance_change: String,
pub balance_change_in_native: String,
pub balance_change_in_usd: String,
pub block_hash: String,
pub block_height: i64,
pub block_slot: i64,
pub block_timestamp: i64,
pub change_type: BalanceChangeType,
pub id: i64,
pub index: i64,
pub post_balance: String,
pub post_balance_in_native: String,
pub post_balance_in_usd: String,
pub pre_balance: String,
pub pre_balance_in_native: String,
pub pre_balance_in_usd: String,
pub token_account_address: String,
pub token_address: String,
pub transaction_signature: String,
pub type_: BalanceTokenType,
}Expand description
BalanceUpdateDto
JSON schema
{
"type": "object",
"required": [
"accountOwnerAddress",
"balanceChange",
"balanceChangeInNative",
"balanceChangeInUsd",
"blockHash",
"blockHeight",
"blockSlot",
"blockTimestamp",
"changeType",
"id",
"index",
"postBalance",
"postBalanceInNative",
"postBalanceInUsd",
"preBalance",
"preBalanceInNative",
"preBalanceInUsd",
"tokenAccountAddress",
"tokenAddress",
"transactionSignature",
"type"
],
"properties": {
"accountOwnerAddress": {
"description": "DTO.WALLET.BALANCE_UPDATE.ACCOUNT_OWNER_ADDRESS",
"examples": [
"MJKqp326RZCHnAAbew9MDdui3iCKWco7fsK9sVuZTX2"
],
"type": "string"
},
"balanceChange": {
"description": "DTO.WALLET.BALANCE_UPDATE.BALANCE_CHANGE",
"examples": [
"100.000000"
],
"type": "string"
},
"balanceChangeInNative": {
"description": "DTO.WALLET.BALANCE_UPDATE.BALANCE_CHANGE_IN_NATIVE",
"examples": [
"0.500000000"
],
"type": "string"
},
"balanceChangeInUsd": {
"description": "DTO.WALLET.BALANCE_UPDATE.BALANCE_CHANGE_IN_USD",
"examples": [
"123.34"
],
"type": "string"
},
"blockHash": {
"description": "DTO.WALLET.BALANCE_UPDATE.BLOCK_HASH",
"examples": [
"5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW"
],
"type": "string"
},
"blockHeight": {
"description": "DTO.WALLET.BALANCE_UPDATE.BLOCK_HEIGHT",
"examples": [
123456789
],
"type": "integer",
"format": "int64"
},
"blockSlot": {
"description": "DTO.WALLET.BALANCE_UPDATE.BLOCK_SLOT",
"examples": [
123456789
],
"type": "integer",
"format": "int64"
},
"blockTimestamp": {
"description": "DTO.WALLET.BALANCE_UPDATE.BLOCK_TIMESTAMP",
"examples": [
1705312800
],
"type": "integer",
"format": "int64"
},
"changeType": {
"description": "DTO.WALLET.BALANCE_UPDATE.CHANGE_TYPE",
"examples": [
"INCREASE"
],
"allOf": [
{
"$ref": "#/components/schemas/BalanceChangeType"
}
]
},
"id": {
"description": "DTO.WALLET.BALANCE_UPDATE.ID",
"examples": [
"1"
],
"type": "integer",
"format": "int64"
},
"index": {
"description": "DTO.WALLET.BALANCE_UPDATE.INDEX",
"examples": [
0
],
"type": "integer",
"format": "int64"
},
"postBalance": {
"description": "DTO.WALLET.BALANCE_UPDATE.POST_BALANCE",
"examples": [
"1100.123456"
],
"type": "string"
},
"postBalanceInNative": {
"description": "DTO.WALLET.BALANCE_UPDATE.POST_BALANCE_IN_NATIVE",
"examples": [
"5.623456789"
],
"type": "string"
},
"postBalanceInUsd": {
"description": "DTO.WALLET.BALANCE_UPDATE.POST_BALANCE_IN_USD",
"examples": [
"1357.90"
],
"type": "string"
},
"preBalance": {
"description": "DTO.WALLET.BALANCE_UPDATE.PRE_BALANCE",
"examples": [
"1000.123456"
],
"type": "string"
},
"preBalanceInNative": {
"description": "DTO.WALLET.BALANCE_UPDATE.PRE_BALANCE_IN_NATIVE",
"examples": [
"5.123456789"
],
"type": "string"
},
"preBalanceInUsd": {
"description": "DTO.WALLET.BALANCE_UPDATE.PRE_BALANCE_IN_USD",
"examples": [
"1234.56"
],
"type": "string"
},
"tokenAccountAddress": {
"description": "DTO.WALLET.BALANCE_UPDATE.TOKEN_ACCOUNT_ADDRESS",
"examples": [
"MJKqp326RZCHnAAbew9MDdui3iCKWco7fsK9sVuZTX2"
],
"type": "string"
},
"tokenAddress": {
"description": "DTO.WALLET.BALANCE_UPDATE.TOKEN_ADDRESS",
"examples": [
"6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"
],
"type": "string"
},
"transactionSignature": {
"description": "DTO.WALLET.BALANCE_UPDATE.TRANSACTION_SIGNATURE",
"examples": [
"5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW"
],
"type": "string"
},
"type": {
"description": "DTO.WALLET.BALANCE_UPDATE.TYPE",
"examples": [
"SPL"
],
"allOf": [
{
"$ref": "#/components/schemas/BalanceTokenType"
}
]
}
}
}Fields§
§account_owner_address: StringDTO.WALLET.BALANCE_UPDATE.ACCOUNT_OWNER_ADDRESS
balance_change: StringDTO.WALLET.BALANCE_UPDATE.BALANCE_CHANGE
balance_change_in_native: StringDTO.WALLET.BALANCE_UPDATE.BALANCE_CHANGE_IN_NATIVE
balance_change_in_usd: StringDTO.WALLET.BALANCE_UPDATE.BALANCE_CHANGE_IN_USD
block_hash: StringDTO.WALLET.BALANCE_UPDATE.BLOCK_HASH
block_height: i64DTO.WALLET.BALANCE_UPDATE.BLOCK_HEIGHT
block_slot: i64DTO.WALLET.BALANCE_UPDATE.BLOCK_SLOT
block_timestamp: i64DTO.WALLET.BALANCE_UPDATE.BLOCK_TIMESTAMP
change_type: BalanceChangeTypeDTO.WALLET.BALANCE_UPDATE.CHANGE_TYPE
id: i64DTO.WALLET.BALANCE_UPDATE.ID
index: i64DTO.WALLET.BALANCE_UPDATE.INDEX
post_balance: StringDTO.WALLET.BALANCE_UPDATE.POST_BALANCE
post_balance_in_native: StringDTO.WALLET.BALANCE_UPDATE.POST_BALANCE_IN_NATIVE
post_balance_in_usd: StringDTO.WALLET.BALANCE_UPDATE.POST_BALANCE_IN_USD
pre_balance: StringDTO.WALLET.BALANCE_UPDATE.PRE_BALANCE
pre_balance_in_native: StringDTO.WALLET.BALANCE_UPDATE.PRE_BALANCE_IN_NATIVE
pre_balance_in_usd: StringDTO.WALLET.BALANCE_UPDATE.PRE_BALANCE_IN_USD
token_account_address: StringDTO.WALLET.BALANCE_UPDATE.TOKEN_ACCOUNT_ADDRESS
token_address: StringDTO.WALLET.BALANCE_UPDATE.TOKEN_ADDRESS
transaction_signature: StringDTO.WALLET.BALANCE_UPDATE.TRANSACTION_SIGNATURE
type_: BalanceTokenTypeDTO.WALLET.BALANCE_UPDATE.TYPE
Implementations§
Source§impl BalanceUpdateDto
impl BalanceUpdateDto
pub fn builder() -> BalanceUpdateDto
Trait Implementations§
Source§impl Clone for BalanceUpdateDto
impl Clone for BalanceUpdateDto
Source§fn clone(&self) -> BalanceUpdateDto
fn clone(&self) -> BalanceUpdateDto
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more