I got fed up with Arena site being laggy and always failing to buy or sell tickets. So I'm trading through the contract directly! Here's how:
Trading Arena shares through foundry:
1) get the address of the ticket ur trading.
$ curl 'https://api.stararena.com/user/handle?handle=<USERNAME>' | grep -o '"address":"[^"]*' | grep -o '[^"]*$'
2) click your Arena Wallet and click Export Private Key. Don't give this to anyone.
3) setup foundry and call contract. (reference:
https://getfoundry.sh/)
$ foundryup
$ cast send 0xA481B139a1A654cA19d2074F174f17D7534e8CeC "sellShares(address,uint256)" <TICKET_ADDRESS> <NUM_TICKETS> --rpc-url=https://api.avax.network/ext/bc/C/rpc --private-key=<YOUR_PRIVATE_KEY>
Like the post plz tip