Forked from @dialectlabs/actions.
This code is experimeantal purpose.
Replace wallet in examples/donate/route.ts
const DONATION_DESTINATION_WALLET =
'HXtBm8XZbxaTt41uqaKhwUAa6Z1aPyvJdsZVENiWsetg';
Please use Devnet network in your wallet settings.
npm i
npm run dev
- See Minimal Action example
- See Donate Action example
- Build your own action
- Use specified openapi
responses
from openapi.ts for your POST, GET methods - Use specified openapi
body
from openapi.ts for your POST methods
- Use specified openapi
- Add your router to index.ts
Open http://localhost:3000/swagger-ui with your browser to explore actions.
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
To learn more about Hono, take a look at the following resources:
- Hono Documentation - learn about Hono features and API.