Feedbacks & QnA
Transaction Hash added to event data
When we create a webhook for EVENTS, the payload injected does not contain the transaction hash of the operation where the event was emitted. Could it be possible to add it ?
Just for reference the data we are getting is structured as shown below. Maybe you could add the aptos tx hash and some other details to it too ? It is much needed. Thank you!
pub struct WebhookEvent {
#[serde(rename = "subscriptionId")]
pub subscription_id: String,
#[serde(rename = "sequenceNumber")]
pub sequence_number: String,
pub description: String,
pub protocol: String,
pub network: String,
#[serde(rename = "subscriptionType")]
pub subscription_type: String,
pub notification: NotificationData,
#[serde(rename = "eventType")]
pub event_type: String,
pub event: EventData,
#[serde(rename = "createdAt")]
pub created_at: String,
}
pub struct EventData {
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "eventAccountAddress")]
pub event_account_address: String,
pub messages: Vec,
}
pub struct NotificationData {
#[serde(rename = "webhookUrl")]
pub webhook_url: String,
}
pub struct EventMessage {
pub guid: Guid,
pub sequence_number: String,
#[serde(rename = "type")]
pub event_type: String,
pub data: serde_json::Value,
pub event_index: u64,
pub version: String,
}
pub struct Guid {
pub creation_number: String,
pub account_address: String,
}