Send XCH to Twitter users by resolving their Go4Me addresses.
| Command | Description |
|---|---|
| --------- | ------------- |
/go4me lookup | Get user's XCH address and profile |
/go4me send | Send XCH to user (amount in XCH or mojos) |
/go4me tip | Send 1 mojo tip |
source scripts/go4me-lookup.sh
go4me_lookup "DracattusDev" # Returns JSON or exits 1
@ from username if presentgo4me_lookup "" xchAddress, fullName, username```
Send
Address:
[Yes] [No]
```
send_xch:```bash
curl -s --cert $CERT --key $KEY -X POST https://127.0.0.1:9257/send_xch \
-H "Content-Type: application/json" \
-d '{"address":"
```
Same as send with amount = 1 mojo.
| Input | Mojos |
|---|---|
| ------- | ------- |
1 (no unit) | 1 mojo |
1 mojo | 1 |
0.001 XCH | 1000000000 |
1 XCH | 1000000000000 |
Parse amount: if contains "XCH", multiply by 10^12. Default unit is mojos for small numbers, XCH for decimals.
| Condition | Response |
|---|---|
| ----------- | ---------- |
| User not on Go4Me | "User @{username} not found on Go4Me" |
| Invalid address | "Invalid XCH address returned from Go4Me" |
| Insufficient balance | "Insufficient balance for this transaction" |
| Network error | "Failed to connect to Go4Me" |
| Field | Example |
|---|---|
| ------- | --------- |
username | DracattusDev |
fullName | 🌱Drac 🍊 |
xchAddress | xch1rvgc3naytvzhv4lxhzphrdr2fzj2ka340tdj8fflt4872t2wqveq9lwz7t |
description | Bio text |
avatarUrl | Profile image URL |
totalBadgeScore | 220 |
共 1 个版本