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 -u ...
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: 26484
- Sat Feb 08, 2025 3:10 am
- Forum: Stellar (XLM) Development
- Topic: Check Stellar Wallet Balance With Bash
- Replies: 0
- Views: 23521
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 "$STELLAR_API ...
#!/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 "$STELLAR_API ...
- Sat Feb 08, 2025 2:39 am
- Forum: Stellar (XLM) Development
- Topic: Monitor a XLM wallet for transactions with bash
- Replies: 0
- Views: 24341
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_FILE="stellar ...
#!/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_FILE="stellar ...
- Mon Feb 03, 2025 12:58 am
- Forum: Evernode Javascript Smart Contracts
- Topic: Evernode Starter Contract (with package.json)
- Replies: 0
- Views: 28968
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(mycontract ...
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(mycontract ...
- Sun Feb 02, 2025 2:01 am
- Forum: Evernode Bash Smart Contracts
- Topic: Hybrid Contract Bash + NodeJS
- Replies: 0
- Views: 30143
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 ...
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 ...