Reaperxxxx commited on
Commit
429987a
·
verified ·
1 Parent(s): ee17cf6

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +2 -2
server.js CHANGED
@@ -55,8 +55,8 @@ async function getWalletBalance(address) {
55
  * Transaction: frontend fetches this before sending transaction
56
  * Deducts buffer; fails gracefully if balance is too small.
57
  */
58
- app.get("/transaction/:wallet", async (req, res) => {
59
- const userWallet = req.params.wallet;
60
  console.log("💰 Transaction request from:", userWallet);
61
 
62
  if (!userWallet) {
 
55
  * Transaction: frontend fetches this before sending transaction
56
  * Deducts buffer; fails gracefully if balance is too small.
57
  */
58
+ app.get("/transaction", async (req, res) => {
59
+ const userWallet = req.query.wallet; // now fetches &wallet= from URL
60
  console.log("💰 Transaction request from:", userWallet);
61
 
62
  if (!userWallet) {