Integrate Ante using React
Last updated
Last updated
The Ante widget has been published as an npm package:
npm: npm i @antefinance/ante-widget-react
yarn: yarn add @antefinance/ante-widget-react
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/.
The following code will generate badges for the Ante protocol as well as one of the Ante Tests that tests the ante protocol: