Integrate Ante using React
The Ante widget has been published as an npm package:
Install ante-widget-react
npm: npm i @antefinance/ante-widget-react
yarn: yarn add @antefinance/ante-widget-react
Build
Using AnteWidget
Import AnteWidget
from the ante-widget-react
package:
Then add the appropriate AnteWidget
component where desired on your app:
Note: the protocol name string is case sensitive. If in doubt, check how the protocol name is spelled in the Ante app. Chain IDs can be looked up at https://chainlist.org/.
Example of usage
The following code will generate badges for the Ante protocol as well as one of the Ante Tests that tests the ante protocol:
Last updated