GitHub - DevZenPro/actions
@dialectlabs/actions
This repository contains reference implementations of Solana Actions using Hono.
Getting Started
First, run the development server:
Presets
Tensor Buy Floor
- Place your api key to
TENSOR_API_KEYconstant in tensor-api.ts
How To
Actions Development
- See Jupiter Swap Action example
- Build your own action
- Use specified openapi
responsesfrom openapi.ts for your POST, GET methods - Use specified openapi
bodyfrom openapi.ts for your POST methods
- Use specified openapi
- Add your router to index.ts
Swagger UI
Open http://localhost:3000/swagger-ui with your browser to explore actions.
Unfurl action into a Blink
To check and unfurl your or existing action open
https://actions.dialect.to/
e.g action for swap on Jupiter: localhost:3000/api/jupiter/swap/SOL-Bonk
Learn More
To learn more about Hono, take a look at the following resources:
- Hono Documentation - learn about Hono features and API.