pub struct FundsDepositedWebhookPayload {
pub amount: String,
pub asset: WalletFundsAsset,
pub block: FundsDepositedWebhookPayloadBlock,
pub bridge_metadata: Option<BridgeMetadata>,
pub caip2: String,
pub idempotency_key: String,
pub recipient: String,
pub sender: String,
pub transaction_fee: Option<String>,
pub transaction_hash: String,
pub type_: FundsDepositedWebhookPayloadType,
pub wallet_id: String,
}Expand description
Payload for the wallet.funds_deposited webhook event.
JSON schema
{
"title": "FundsDepositedWebhookPayload",
"description": "Payload for the wallet.funds_deposited webhook event.",
"type": "object",
"required": [
"amount",
"asset",
"block",
"caip2",
"idempotency_key",
"recipient",
"sender",
"transaction_hash",
"type",
"wallet_id"
],
"properties": {
"amount": {
"description": "The amount transferred, as a stringified bigint.",
"type": "string"
},
"asset": {
"allOf": [
{
"$ref": "#/components/schemas/WalletFundsAsset"
},
{
"description": "The asset type being transferred."
}
]
},
"block": {
"type": "object",
"required": [
"number",
"timestamp"
],
"properties": {
"number": {
"description": "The block number.",
"type": "number"
},
"timestamp": {
"description": "The block timestamp.",
"type": "number"
}
}
},
"bridge_metadata": {
"allOf": [
{
"$ref": "#/components/schemas/BridgeMetadata"
},
{
"description": "Optional Bridge metadata for custodial wallet
deposits."
}
]
},
"caip2": {
"description": "The CAIP-2 chain identifier.",
"type": "string"
},
"idempotency_key": {
"description": "A unique key for this event.",
"type": "string"
},
"recipient": {
"description": "The recipient address.",
"type": "string"
},
"sender": {
"description": "The sender address.",
"type": "string"
},
"transaction_fee": {
"description": "The transaction fee paid, as a stringified bigint
in the chain's native token.",
"type": "string"
},
"transaction_hash": {
"description": "The blockchain transaction hash.",
"type": "string"
},
"type": {
"description": "The type of webhook event.",
"type": "string",
"enum": [
"wallet.funds_deposited"
]
},
"wallet_id": {
"description": "The ID of the wallet.",
"type": "string"
}
},
"x-stainless-model": "webhooks.funds_deposited_webhook_payload"
}Fields§
§amount: StringThe amount transferred, as a stringified bigint.
asset: WalletFundsAsset§block: FundsDepositedWebhookPayloadBlock§bridge_metadata: Option<BridgeMetadata>§caip2: StringThe CAIP-2 chain identifier.
idempotency_key: StringA unique key for this event.
recipient: StringThe recipient address.
sender: StringThe sender address.
transaction_fee: Option<String>The transaction fee paid, as a stringified bigint in the chain’s native token.
transaction_hash: StringThe blockchain transaction hash.
type_: FundsDepositedWebhookPayloadTypeThe type of webhook event.
wallet_id: StringThe ID of the wallet.
Trait Implementations§
Source§impl Clone for FundsDepositedWebhookPayload
impl Clone for FundsDepositedWebhookPayload
Source§fn clone(&self) -> FundsDepositedWebhookPayload
fn clone(&self) -> FundsDepositedWebhookPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FundsDepositedWebhookPayload
impl Debug for FundsDepositedWebhookPayload
Source§impl<'de> Deserialize<'de> for FundsDepositedWebhookPayload
impl<'de> Deserialize<'de> for FundsDepositedWebhookPayload
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<&FundsDepositedWebhookPayload> for FundsDepositedWebhookPayload
impl From<&FundsDepositedWebhookPayload> for FundsDepositedWebhookPayload
Source§fn from(value: &FundsDepositedWebhookPayload) -> Self
fn from(value: &FundsDepositedWebhookPayload) -> Self
Converts to this type from the input type.
Source§impl From<FundsDepositedWebhookPayload> for WebhookPayload
impl From<FundsDepositedWebhookPayload> for WebhookPayload
Source§fn from(value: FundsDepositedWebhookPayload) -> Self
fn from(value: FundsDepositedWebhookPayload) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FundsDepositedWebhookPayload
impl RefUnwindSafe for FundsDepositedWebhookPayload
impl Send for FundsDepositedWebhookPayload
impl Sync for FundsDepositedWebhookPayload
impl Unpin for FundsDepositedWebhookPayload
impl UnsafeUnpin for FundsDepositedWebhookPayload
impl UnwindSafe for FundsDepositedWebhookPayload
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