Getting Started
To begin creating custom Ethereum Actions:
npm install @ethlink/actions
- Install the Ethereum Actions SDK in your project.
- Develop an API endpoint for the GET request that returns metadata about your Action.
- Create an API endpoint to handle POST requests and return the transaction parameters for constructing a transaction.
When deploying your custom Ethereum Actions to production:
- Ensure your application has a valid
actions.jsonfile at the root of your domain. - Configure your application to respond with the necessary Cross-Origin headers on all Action API endpoints, including the
actions.jsonfile. - Test and debug your Action Links and Ethereum Actions using the Action Inspector.
The Action Inspector helps you verify that your Action APIs are functioning correctly and that Action Links are properly formatted.
For inspiration on building Ethereum Actions and Action Links, explore the Awesome Actions repository, which showcases community creations and provides ideas for new projects.
Key Concepts Recap
- Ethereum Actions: Standardized API specifications for creating and executing Ethereum blockchain transactions.
- Action Links: URLs that encapsulate Ethereum Actions, allowing for easy sharing and initiation of blockchain interactions.
- Action API: The server-side implementation that responds to requests made to Action URLs.
- Action Client: Applications (like wallets or browser extensions) that can interpret Action Links and interact with Action APIs.
By following this guide, you'll be able to create, deploy, and test your own Ethereum Actions, making blockchain interactions more accessible and user-friendly across various platforms.