File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
docs/devhub/sdks-and-tools Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,11 @@ aleph account address
73
73
aleph account balance
74
74
```
75
75
76
+ ## Checking Voucher
77
+ ````
78
+ aleph account vouchers
79
+ ````
80
+
76
81
## Managing Multiple Keys
77
82
78
83
The CLI supports multiple keys for different chains:
Original file line number Diff line number Diff line change @@ -818,6 +818,20 @@ Remove all the ports for a VM
818
818
item_hash = ItemHash(" item_hash" )
819
819
)
820
820
```
821
+ ### Voucher
822
+ Fetch Voucher by address
823
+ ```` python
824
+ evm_voucher: list[Voucher] = await client.voucher.get_evm_vouchers(" 0x..." )
825
+ sol_voucher: list[Voucher] = await client.voucher.get_solana_vouchers(" address" )
826
+
827
+ voucher: list[Voucher] = await client.voucher.get_vouchers(addres) # Will get voucher based on address if it evm or sol
828
+
829
+ voucher: list[Voucher] = awaot client.voucher.fetch_vouchers_by_chain(" address" , Chain.ETH )
830
+
831
+ for voucher in evem_voucher:
832
+ metadata = await client.voucher.fetch_voucher_metadata(voucher.metadata_id)
833
+
834
+ ````
821
835
# Resources
822
836
823
837
- [ GitHub Repository] ( https://github.com/aleph-im/aleph-sdk-python )
You can’t perform that action at this time.
0 commit comments