Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xiaojay/ao.py
python sdk for ao
https://github.com/xiaojay/ao.py
Last synced: 12 days ago
JSON representation
python sdk for ao
- Host: GitHub
- URL: https://github.com/xiaojay/ao.py
- Owner: xiaojay
- Created: 2024-04-20T15:50:36.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-31T08:03:18.000Z (4 months ago)
- Last Synced: 2024-08-01T09:04:45.782Z (4 months ago)
- Language: Python
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ao.py
python sdk for ao https://ao.arweave.dev/## install
```
```## Example
```
import ao# ao cred process id
CRED = 'Sa0iBLPNyJQrwpTTG-tWLQU-1QeUAJA73DdxGGiKoJc'
signer = ao.ARSigner('your ar wallet json file')# use dry run to get your cred balance
result = ao.dry_run(signer, CRED, '', {'Action':'Balance'})
print(result)# transfer
recipient = 'your recipient ar address'
message_id, result =ao.send_and_get(signer, CRED, '', {'Action':'Transfer', 'Recipient':recipient, 'Quantity':'1000'})
print(message_id)
print(result)
```