Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

axum example #7

Merged
merged 1 commit into from
Jul 2, 2024
Merged

axum example #7

merged 1 commit into from
Jul 2, 2024

Conversation

ZYJLiu
Copy link
Contributor

@ZYJLiu ZYJLiu commented Jul 2, 2024

This example includes a Solana Action built in Rust using the Axum framework. It
provides an API endpoint for transferring SOL.

Navigate to ./examples/axum and start the application:

cargo run

The server will start running on http://localhost:8080.

The endpoint for the Action is: http://localhost:8080/api/actions/transfer-sol

You can test the Action on devenet as a Blink at https://dial.to/devnet:
https://www.dial.to/devnet?action=solana-action%3Ahttp%3A%2F%2Flocalhost%3A8080%2Fapi%2Factions%2Ftransfer-sol

Copy link
Member

@nickfrosty nickfrosty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing John!

@nickfrosty nickfrosty merged commit d717703 into solana-developers:main Jul 2, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants