Skip to content

Instantly share code, notes, and snippets.

@Enigo
Last active April 29, 2023 13:56
Show Gist options
  • Save Enigo/967a3bc4950a17c536d996e74203a117 to your computer and use it in GitHub Desktop.
Save Enigo/967a3bc4950a17c536d996e74203a117 to your computer and use it in GitHub Desktop.
#[derive(Deserialize, Debug)]
pub struct Transaction {
pub status: String,
pub result: Option<Vec<TheResult>>,
}
#[derive(Deserialize, Debug)]
pub struct TheResult {
pub hash: String,
pub from: String,
pub to: String,
pub value: String,
#[serde(rename = "isError")]
pub is_error: String,
pub input: String,
#[serde(rename = "methodId")]
pub method_id: String,
#[serde(rename = "functionName")]
pub function_name: String,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment