1from litewax import Client
2
3# Create a client with a private key
4client = Client(private_key="5K...")
5
6# to - the account to send the tokens to
7to = "abuztradewax"
8
9# Create a atomicassets contract object
10contract = client.Contract("atomicassets")
11
12# Create a transaction object
13trx = client.Transaction(
14 contract.transfer(
15 _from=client.name,
16 to=to,
17 asset_ids=["1099608856151"], # https://wax.atomichub.io/explorer/asset/1099608856151
18 memo="Test send"
19 )
20)
21
22# Push the transaction
23r = trx.push()
24
25print(r)
26# {'transaction_id': '928802d253bffc29d6178e634052ec5f044b2fcce0c4c8bc5b44d978e22ec5d4', ...}