ssyijiu / RebelsReveal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rebels Reveal

This repository calls the reveal function in rebels contract. Of course, you can reveal the rebels' cards on rebels.art/reveal/connect, but it does not give the option to reveal multiple cards in a single transaction. Here, this Repo calls the reveal function, which can reveal multiple cards in a single transaction. For those of you who have multiple cards in your wallet and want to save money on gas and, this repo is for you.

Qucik Start

Install required packages

pip install -r requirements.txt 

Copy .env.sample and rename it to .env, then modify the contents.

cp .env.sample .env

Modify the inputs in reveal.py

  • address and private_key are you wallet info
  • my_token_id is your rebels card id,
    • you can find them here
    • it returns the id in Hexadecimal format,
    • to convert hexadecimal into decimals, check here
    • in the end, you should have a list of id, e.g., [1, 2, 3]
  • maxFeePerGas and maxPriorityFeePerGas are the eth gas parameters. To get the market gas price, check here

After filling out the inputs, you're ready to reveal. LFG REBELS!

python reveal.py

关于我

我会在 Mirror 上写一些数字货币科学家相关的话题,欢迎关注我:

About


Languages

Language:Python 100.0%