Skip to content
penggrin12 edited this page Sep 10, 2023 · 1 revision

Setup

Before those steps you will need to install/update build:

python -m pip install --upgrade build

On Windows

  1. In the cmd run the build.bat.
  2. Its done! The stupidwalletapi should now be installed in your local Python installation.

On Any kind of Linux distributive

  1. Run python -m build.
  2. Cd into the dist directory.
  3. Run python -m pip install --force-reinstall xxx.whl (replace the xxx with the file name in the dist directory that has a .whl extension)
  4. Its done! The stupidwalletapi should now be installed in your local Python installation.

Example Code

import asyncio
import stupidwalletapi

swapi = stupidwalletapi.StupidWalletAPI("YOUR_TOKEN")  # replace `YOUR_TOKEN` with your actual token from the @stupidwallet_bot

async def main():
    cheque = await swapi.create_cheque(stupidwalletapi.WAV_COIN, 1)  # stupidwalletapi.models.Cheque
    print(cheque.id)  # "d69cf27dfcf5f9acef781bf24c180d8e6dee6c5c"

asyncio.run(main())

Reference

Visit the Official Stupid Wallet API docs.

Clone this wiki locally