You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+66-9
Original file line number
Diff line number
Diff line change
@@ -27,12 +27,72 @@ maturin develop
27
27
28
28
## Usage
29
29
30
-
`hydra.py`contains a module that interacts with the hydra testnet. To use the module, you can import the `HydraWallet` class from api/hydra.py.
30
+
This code snippet contains a python wrapper over several Rust functions that interact with the IOP SDK and perform various operations related to the IOP blockchain. Here is a brief description of some function:
31
31
32
32
```python
33
-
from hydra importHydraWallet, HydraChain
33
+
importiop_python as iop
34
34
```
35
-
A example method that verifies a signed statement can be found in the module
35
+
36
+
-`get_hyd_vault`: Initializes a Hydra vault and returns the admin information as a JSON string.
-`generate_transaction`: Builds a transaction to transfer a certain amount of tokens to a specified recipient using a Hydra vault and returns the transaction data as a JSON string. This transaction data can be sent to a node to validate and perform the transaction.
0 commit comments