Search found 5 matches
- Sat Feb 08, 2025 3:41 am
- Forum: Stellar (XLM) Development
- Topic: Get your latest incoming/outgoing transactions with bash
- Replies: 0
- Views: 8431
Get your latest incoming/outgoing transactions with bash
You need curl, this one loops through your last 200 incoming transactions and gives you the ones that you received last hour. #!/bin/bash # Replace with your Stellar wallet address STELLAR_WALLET="YOUR_WALLET_ADDRESS" # Get the current time in UTC and subtract one hour ONE_HOUR_AGO=$(date ...
- Sat Feb 08, 2025 3:10 am
- Forum: Stellar (XLM) Development
- Topic: Check Stellar Wallet Balance With Bash
- Replies: 0
- Views: 5885
Check Stellar Wallet Balance With Bash
Make sure you have curl ;) #!/bin/bash # Set your Stellar wallet address (public key) STELLAR_ADDRESS="Your Wallet" # API endpoint for Stellar public network STELLAR_API="https://horizon.stellar.org/accounts/$STELLAR_ADDRESS" # Function to fetch balance get_balance() { curl -s &q...
- Sat Feb 08, 2025 2:39 am
- Forum: Stellar (XLM) Development
- Topic: Monitor a XLM wallet for transactions with bash
- Replies: 0
- Views: 6019
Monitor a XLM wallet for transactions with bash
Just give it +x and run it :) #!/bin/bash # Set your Stellar wallet address (public key) STELLAR_ADDRESS="YOUR_STELLAR_WALLET_ADDRESS" # API endpoint for Stellar public network STELLAR_API="https://horizon.stellar.org/accounts/$STELLAR_ADDRESS" # Log file to track changes LOG_FIL...
- Mon Feb 03, 2025 12:58 am
- Forum: Evernode Javascript Smart Contracts
- Topic: Evernode Starter Contract (with package.json)
- Replies: 0
- Views: 8615
Evernode Starter Contract (with package.json)
Make sure you got npm installed. Create these two files in a folder: contract.js const HotPocket = require("hotpocket-nodejs-contract"); const mycontract = async (ctx) => { // Your DApp logic. console.log("Blank contract"); }; const hpc = new HotPocket.Contract(); hpc.init(mycont...
- Sun Feb 02, 2025 2:01 am
- Forum: Evernode Bash Smart Contracts
- Topic: Hybrid Contract Bash + NodeJS
- Replies: 0
- Views: 8894
Hybrid Contract Bash + NodeJS
The nodejs contract I use here is a starter contract, I've built it so it it with npm run build, so you won't need to do that. When I deploy I deploy with /usr/bin/bash -a contract.sh Which mean I am running the bash contract. The bash contract is sending the standard input to the nodejs contract, a...