pub struct WalletTransactionsResponse {
pub next_cursor: Option<String>,
pub transactions: Vec<WalletTransactionsResponseTransactionsItem>,
}Expand description
WalletTransactionsResponse
JSON schema
{
"examples": [
{
"next_cursor": null,
"transactions": [
{
"caip2": "eip155:8453",
"created_at": 1746920539240,
"details": {
"asset": "eth",
"chain": "base",
"display_values": {
"eth": "0.000000000000000001"
},
"raw_value": "1",
"raw_value_decimals": 18,
"recipient": "0x38bc05d7b69f63d05337829fa5dc4896f179b5fa",
"recipient_privy_user_id": "cmakymbpt000te63uaj85d9r6",
"sender": "0xa24c8d74c913e5dba36e45236c478f37c8bba20e",
"sender_privy_user_id": "rkiz0ivz254drv1xw982v3jq",
"type": "transfer_sent"
},
"privy_transaction_id": "au6wxoyhbw4yhwbn1s5v9gs9",
"status": "confirmed",
"transaction_hash":
"0x03fe1b0fd11a74d277a5b7a68b762de906503b82cbce2fc791250fd2b77cf137",
"wallet_id": "xs76o3pi0v5syd62ui1wmijw"
}
]
}
],
"type": "object",
"required": [
"next_cursor",
"transactions"
],
"properties": {
"next_cursor": {
"type": [
"string",
"null"
]
},
"transactions": {
"type": "array",
"items": {
"type": "object",
"required": [
"caip2",
"created_at",
"details",
"privy_transaction_id",
"status",
"transaction_hash",
"wallet_id"
],
"properties": {
"caip2": {
"type": "string"
},
"created_at": {
"type": "number"
},
"details": {
"oneOf": [
{
"type": "object",
"required": [
"asset",
"chain",
"display_values",
"raw_value",
"raw_value_decimals",
"recipient",
"recipient_privy_user_id",
"sender",
"sender_privy_user_id",
"type"
],
"properties": {
"asset": {
"type": "string",
"enum": [
"eth",
"pol",
"sol",
"usdc",
"usdt"
]
},
"chain": {
"type": "string",
"enum": [
"arbitrum",
"arbitrum_sepolia",
"base",
"base_sepolia",
"ethereum",
"linea",
"linea_testnet",
"optimism",
"optimism_sepolia",
"polygon",
"polygon_amoy",
"sepolia",
"solana",
"solana_devnet",
"solana_testnet",
"zksync_era"
]
},
"display_values": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"raw_value": {
"type": "string"
},
"raw_value_decimals": {
"type": "number"
},
"recipient": {
"type": "string"
},
"recipient_privy_user_id": {
"type": [
"string",
"null"
]
},
"sender": {
"type": "string"
},
"sender_privy_user_id": {
"type": [
"string",
"null"
]
},
"type": {
"type": "string",
"enum": [
"transfer_sent"
]
}
}
},
{
"type": "object",
"required": [
"asset",
"chain",
"display_values",
"raw_value",
"raw_value_decimals",
"recipient",
"recipient_privy_user_id",
"sender",
"sender_privy_user_id",
"type"
],
"properties": {
"asset": {
"type": "string",
"enum": [
"eth",
"pol",
"sol",
"usdc",
"usdt"
]
},
"chain": {
"type": "string",
"enum": [
"arbitrum",
"arbitrum_sepolia",
"base",
"base_sepolia",
"ethereum",
"linea",
"linea_testnet",
"optimism",
"optimism_sepolia",
"polygon",
"polygon_amoy",
"sepolia",
"solana",
"solana_devnet",
"solana_testnet",
"zksync_era"
]
},
"display_values": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"raw_value": {
"type": "string"
},
"raw_value_decimals": {
"type": "number"
},
"recipient": {
"type": "string"
},
"recipient_privy_user_id": {
"type": [
"string",
"null"
]
},
"sender": {
"type": "string"
},
"sender_privy_user_id": {
"type": [
"string",
"null"
]
},
"type": {
"type": "string",
"enum": [
"transfer_received"
]
}
}
},
{}
]
},
"privy_transaction_id": {
"type": "string"
},
"sponsored": {
"type": "boolean"
},
"status": {
"type": "string",
"enum": [
"broadcasted",
"confirmed",
"execution_reverted",
"failed",
"finalized",
"pending",
"provider_error",
"replaced"
]
},
"transaction_hash": {
"type": [
"string",
"null"
]
},
"wallet_id": {
"type": "string"
}
}
}
}
}
}Fields§
§next_cursor: Option<String>§transactions: Vec<WalletTransactionsResponseTransactionsItem>Trait Implementations§
Source§impl Clone for WalletTransactionsResponse
impl Clone for WalletTransactionsResponse
Source§fn clone(&self) -> WalletTransactionsResponse
fn clone(&self) -> WalletTransactionsResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WalletTransactionsResponse
impl Debug for WalletTransactionsResponse
Source§impl<'de> Deserialize<'de> for WalletTransactionsResponse
impl<'de> Deserialize<'de> for WalletTransactionsResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&WalletTransactionsResponse> for WalletTransactionsResponse
impl From<&WalletTransactionsResponse> for WalletTransactionsResponse
Source§fn from(value: &WalletTransactionsResponse) -> Self
fn from(value: &WalletTransactionsResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WalletTransactionsResponse
impl RefUnwindSafe for WalletTransactionsResponse
impl Send for WalletTransactionsResponse
impl Sync for WalletTransactionsResponse
impl Unpin for WalletTransactionsResponse
impl UnwindSafe for WalletTransactionsResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more