https://github.com/bunsdev/based-functions
https://github.com/bunsdev/based-functions
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/bunsdev/based-functions
- Owner: BunsDev
- License: mit
- Created: 2025-01-31T08:26:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-29T14:24:30.000Z (about 1 year ago)
- Last Synced: 2025-03-29T15:27:52.055Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://based-functions.vercel.app
- Size: 499 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Onchain App Template
An Onchain App Template build with [OnchainKit](https://onchainkit.xyz), and ready to be deployed to Vercel.
Play with it live on https://onchain-app-template.vercel.app
Have fun! ⛵️
## Setup
To ensure all components work seamlessly, set the following environment variables in your `.env` file using `.env.local.example` as a reference.
You can find the API key on the [Coinbase Developer Portal's OnchainKit page](https://portal.cdp.coinbase.com/products/onchainkit). If you don't have an account, you will need to create one.
You can find your Wallet Connector project ID at [Wallet Connect](https://cloud.walletconnect.com).
```sh
# See https://portal.cdp.coinbase.com/products/onchainkit
NEXT_PUBLIC_CDP_API_KEY="GET_FROM_COINBASE_DEVELOPER_PLATFORM"
# See https://cloud.walletconnect.com
NEXT_PUBLIC_WC_PROJECT_ID="GET_FROM_WALLET_CONNECT"
```
## Locally run
```sh
# Install bun in case you don't have it
curl -fsSL https://bun.sh/install | bash
# Install packages
bun i
# Run Next app
bun run dev
```
## Resources
- [OnchainKit documentation](https://onchainkit.xyz)
- We use the [OnchainKit Early Adopter](https://github.com/neodaoist/onchainkit-early-adopter) contract written by neodaoist [[X]](https://x.com/neodaoist)
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Need more help?
If you have any questions or need help, feel free to reach out to us on [Discord](https://discord.gg/8gW3h6w5)
or open a [Github issue](https://github.com/coinbase/onchainkit/issues) or DMs us
on X at [@onchainkit](https://x.com/onchainkit), [@zizzamia](https://x.com/zizzamia), [@fkpxls](https://x.com/fkpxls).
# Deployment Notes
- https://docs.chain.link/chainlink-functions/supported-networks
- Router: 0xf9B8fc078197181C841c296C876945aaa425B278
- DON: 0x66756e2d626173652d7365706f6c69612d310000000000000000000000000000
- Subscription ID: 270
1000000000000000000000000000000000000000000000000000000000000000
-
# Links
- [0xA1A6603c94746754279f11B809fC4E14aaBBbAf4](https://base-sepolia.blockscout.com/address/0xA1A6603c94746754279f11B809fC4E14aaBBbAf4)