Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/devhub/sdks-and-tools/aleph-cli/commands/account.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ aleph account address
aleph account balance
```

## Checking Voucher
````
aleph account vouchers
````

## Managing Multiple Keys

The CLI supports multiple keys for different chains:
Expand Down
14 changes: 14 additions & 0 deletions docs/devhub/sdks-and-tools/python-sdk/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,20 @@ Remove all the ports for a VM
item_hash=ItemHash("item_hash")
)
```
### Voucher
Fetch Voucher by address
````python
evm_voucher: list[Voucher] = await client.voucher.get_evm_vouchers("0x...")
sol_voucher: list[Voucher] = await client.voucher.get_solana_vouchers("address")

voucher: list[Voucher] = await client.voucher.get_vouchers(addres) # Will get voucher based on address if it evm or sol

voucher: list[Voucher] = awaot client.voucher.fetch_vouchers_by_chain("address", Chain.ETH)

for voucher in evem_voucher:
metadata = await client.voucher.fetch_voucher_metadata(voucher.metadata_id)

````
# Resources

- [GitHub Repository](https://github.com/aleph-im/aleph-sdk-python)
Expand Down