Skip to content

aperpen/clash-royale-client

Repository files navigation

clash-royale-client

NodeJS client to connect to Clash Royale servers.

What can it do?

  • Connect and login into Clash Royale servers
  • Basic actions:
    • Fetch player and clan stats
    • Get tops
    • Invite to a clan
    • ...

This is a basic client. Now is your turn. Modify the client and add functions to fit it to your requirements.

Installation

  • Run npm install
  • Rename config.example to config.js and modify your credentials

Getting a token (Android)

You will need a rooted device

  1. Download decrypt.js tool
  2. Pull storage_new.xml file from your device. Usually it's located in /data/data/com.supercell.clashroyale/shared_prefs.
  3. Run node decrypt.js. Look for your account in SCID_PROD_ACCOUNTS key, the value contains your token.
  4. Put your token in scidtoken key in config.js
  • KNOWN ISSUE Client only works with accounts using scid token

Usage

Running the client

node index

Using the replay option

If you want to save the packets dumps to replay later run the client with the option --save (or -s)

node index --save

Client will save the packets in the folder specified in config.js.

Then you can decode again saved messages using the option --replay (or -r):

node index --replay

The client has built-in support for save multiple sessions.

Commands

  • Press Alt + C to type a command
  • Type 'help' to get started

Credits

About

NodeJS client to connect to Clash Royale servers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published