Skip to content

Superteam-Japan/dialectlabs-actions-minimal-example

 
 

Repository files navigation

dialectlabs-actions

Forked from @dialectlabs/actions.

This code is experimeantal purpose.

Presets

Replace wallet in examples/donate/route.ts

const DONATION_DESTINATION_WALLET =
  'HXtBm8XZbxaTt41uqaKhwUAa6Z1aPyvJdsZVENiWsetg';

Please use Devnet network in your wallet settings.

Starting Server

npm i
npm run dev

Testing Blinks

minimal example

donate

How To

Actions Development

  1. See Minimal Action example
  2. See Donate Action example
  3. 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
  4. 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

Mainnet

https://actions.dialect.to/
e.g action for swap on Jupiter: localhost:3000/api/jupiter/swap/SOL-Bonk

Devnet

https://dial.to/devnet/

Learn More

To learn more about Hono, take a look at the following resources:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%