amp-rust 0.0.2

A Rust client for the Blockstream AMP API, providing interfaces for asset management, user operations, and token handling on the Liquid Network.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env python3
import green_gdk as gdk

# Initialize GDK
gdk.init({
    'datadir': '.',
    'log_level': 'warn'
})

# Generate a new mnemonic
mnemonic = gdk.generate_mnemonic()
print(f"Generated mnemonic: {mnemonic}")

# Validate it
if gdk.validate_mnemonic(mnemonic):
    print("Mnemonic is valid!")
else:
    print("Mnemonic is invalid!")