Python wrappers for ao
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aodotpy-0.2.0.tar.gz
(3.2 kB
view details)
File details
Details for the file aodotpy-0.2.0.tar.gz
.
File metadata
- Download URL: aodotpy-0.2.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 644792ea58e3d6789a25a719f1d687b721d4c0a287248abc0c026ebaa87da301 |
|
MD5 | 71ea000073493a0b4d768e85c829d97b |
|
BLAKE2b-256 | f4a55b76dae86c9dbe832b9867e5bab23b9386d12151bf479464c78f5b2fc92f |