diff --git a/src/models.rs b/src/models.rs index 9255906..79c1ffb 100644 --- a/src/models.rs +++ b/src/models.rs @@ -19,6 +19,7 @@ pub struct DispenseInput { pub struct DispenseResponse { pub status: String, pub tokens: u64, + pub tx_id: String, } #[derive(Debug)] diff --git a/src/routes.rs b/src/routes.rs index 51aee11..221f091 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -374,6 +374,7 @@ pub async fn dispense_tokens( Ok(DispenseResponse { status: "Success".to_string(), tokens: config.dispense_amount, + tx_id: tx_id.to_string(), }) } diff --git a/static/index.html b/static/index.html index 01fe4aa..5e7f087 100644 --- a/static/index.html +++ b/static/index.html @@ -247,8 +247,7 @@

Test Ether sent to the wallet

Node url: {{ public_node_url }}