1from litewax import Client, WAXPayer
2
3
4# try to get free cpu from neftyblocks
5client = Client(private_key="5K...", node="https://testnet.waxsweden.org")
6
7neftyblocksd = client.Contract("neftyblocksd")
8
9trx = client.Transaction(
10 neftyblocksd.claimdrop(
11 claimer=client.name,
12 drop_id=2020,
13 amount=1,
14 intended_delphi_median=0,
15 referrer="NeftyBlocks",
16 country="GB",
17 currency="0,NULL"
18 ),
19 neftyblocksd.assertprice(
20 drop_id=2020,
21 listing_price="0 NULL",
22 settlement_symbol="0,NULL"
23 )
24)
25# add neftyblocks as payer
26trx = trx.payer(WAXPayer.NEFTYBLOCKS, network="testnet")
27
28# push transaction
29push_resp = trx.push()
30
31print(push_resp)
32# {'transaction_id': '928802d253bffc29d6178e634052ec5f044b2fcce0c4c8bc5b44d978e22ec5d4', ...}