pub struct TransactionScanningResponseBody {
pub simulation: TransactionScanningResponseBodySimulation,
pub validation: TransactionScanningResponseBodyValidation,
}Expand description
The response from scanning a transaction.
JSON schema
{
"title": "TransactionScanningResponseBody",
"description": "The response from scanning a transaction.",
"type": "object",
"required": [
"simulation",
"validation"
],
"properties": {
"simulation": {
"oneOf": [
{
"type": "object",
"required": [
"error",
"status"
],
"properties": {
"error": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"Error"
]
}
}
},
{
"type": "object",
"required": [
"assets_diffs",
"exposures",
"status"
],
"properties": {
"assets_diffs": {
"type": "array",
"items": {
"type": "object",
"required": [
"asset",
"in",
"out"
],
"properties": {
"asset": {
"type": "object",
"properties": {
"decimals": {
"type": "number"
},
"logo_url": {
"type": "string"
},
"name": {
"type": "string"
},
"symbol": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"in": {
"type": "array",
"items": {
"type": "object",
"properties": {
"usd_price": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
},
"out": {
"type": "array",
"items": {
"type": "object",
"properties": {
"usd_price": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
}
}
},
"exposures": {
"type": "array",
"items": {
"type": "object",
"required": [
"asset",
"spenders"
],
"properties": {
"asset": {
"type": "object",
"properties": {
"decimals": {
"type": "number"
},
"logo_url": {
"type": "string"
},
"name": {
"type": "string"
},
"symbol": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"spenders": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"usd_price": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
}
}
},
"params": {
"type": "object",
"properties": {
"block_tag": {
"type": "string"
},
"calldata": {
"type": "object",
"required": [
"function_selector"
],
"properties": {
"function_declaration": {
"type": "string"
},
"function_selector": {
"type": "string"
},
"function_signature": {
"type": "string"
}
}
},
"chain": {
"type": "string"
},
"data": {
"type": "string"
},
"from": {
"type": "string"
},
"gas": {
"type": "string"
},
"gas_price": {
"type": "string"
},
"to": {
"type": "string"
},
"value": {
"type": "string"
}
}
},
"status": {
"type": "string",
"enum": [
"Success"
]
}
}
}
]
},
"validation": {
"oneOf": [
{
"type": "object",
"required": [
"error",
"status"
],
"properties": {
"error": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"Error"
]
}
}
},
{
"type": "object",
"required": [
"result_type",
"status"
],
"properties": {
"result_type": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"Success"
]
}
}
}
]
}
}
}Fields§
§simulation: TransactionScanningResponseBodySimulation§validation: TransactionScanningResponseBodyValidationTrait Implementations§
Source§impl Clone for TransactionScanningResponseBody
impl Clone for TransactionScanningResponseBody
Source§fn clone(&self) -> TransactionScanningResponseBody
fn clone(&self) -> TransactionScanningResponseBody
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<'de> Deserialize<'de> for TransactionScanningResponseBody
impl<'de> Deserialize<'de> for TransactionScanningResponseBody
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<&TransactionScanningResponseBody> for TransactionScanningResponseBody
impl From<&TransactionScanningResponseBody> for TransactionScanningResponseBody
Source§fn from(value: &TransactionScanningResponseBody) -> Self
fn from(value: &TransactionScanningResponseBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TransactionScanningResponseBody
impl RefUnwindSafe for TransactionScanningResponseBody
impl Send for TransactionScanningResponseBody
impl Sync for TransactionScanningResponseBody
impl Unpin for TransactionScanningResponseBody
impl UnsafeUnpin for TransactionScanningResponseBody
impl UnwindSafe for TransactionScanningResponseBody
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