Badge and widget snippet
get_embed_snippetRead-onlyIdempotent
A live SVG badge and an iframe widget for a stake pool, DRep or token: the URLs, Markdown and HTML to paste into a README, a website or a forum post. Checks that the subject exists.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Pool id (pool1… or 56 hex), DRep id (drep1… or 56 hex) or token unit (policy id + asset name in hex). | |
| color | No | Badge colour: green, yellow, red, blue, orange, grey, brand, or 3 or 6 hex digits. Default: the colour the figure earns. | |
| label | No | Replaces the left-hand text of the badge (printable ASCII, at most 30 characters). | |
| style | No | Badge style: flat, flat-square or for-the-badge. | flat |
| theme | No | Theme of the iframe widget: dark, light or auto. | dark |
| metric | No | What the badge shows. Pool: return, luck, blocks, saturation, stake, delegators, pool. DRep: votes, participation, power, delegators, drep. Token: price, price-ada, change, token. Default: the identity badge (pool, drep or token). | |
| subject | Yes | What the badge is about: pool, drep or token. |