Skip to content

How to add TokenScript files to iOS app

Hwee-Boon Yar edited this page May 15, 2021 · 1 revision

Add to project

For certain special TokenScripts, especially those that aren’t supported by the repo yet, we can bundle it with app. Look for existing ones in the project, drag the new TokenScript file in and access it in the app. Search for code references to R.file. (look for something with “xDai” or “eth”)

Download from repo at runtime

App automatically fetches TokenScript files for the tokens at runtime

AirDrop to the app at runtime

AirDrop TokenScript files from iOS or macOS app

Share to app at runtime

In iOS, bring up the share menu and share it with AlphaWallet. Files added this way will appear in Settings > Advanced > TokenScript Overrides