v2/vals Example: Creating a val with a script file

This val shows how to create a val and add a script file to it both with the SDK and with the API. You can find both examples in main.tsx.

Getting Started

  1. Remix this project
  2. Create your own API token here with Val: Read and write permissions
  3. Create an environment variable in your remixed project called VAL_RW_TOKEN and paste your new API token into it
  4. Run main.tsx and you'll create 2 new vals in your account: new-val-sdk and new-val-api