Skip to content

Apps on your own site ​

You can put your coin's Chain Daddy apps on your own website. Visitors use them there, and anything that touches a wallet is approved in a Chain Daddy window. For everything a domain of your own can do with your coin, see Use your own domain with your coin.

Add an app to your site ​

  1. In your coin manager, click your coin's logo and ticker at the top, then the gear in the Select Chain window. Find Apps on your site.

  2. Copy the script tag and paste it once, anywhere on your page:

    html
    <script async src="https://js.chaindaddy.io/v1/cd.js"></script>
  3. Copy the snippet for each app you want, and paste it where the app should appear:

    html
    <cd-app crown="123" chain="base" app="slug"><a href="https://chaindaddy.io/yourcoin/base">$YOURCOIN on Chain Daddy</a></cd-app>

    crown is your coin's number on Chain Daddy, chain is its network and app is the app's id. Apps on your site fills in all three, and the link, so copy the snippet from there when you can. Building the site without access to the coin manager? See Without the coin manager.

  4. Load your page: You should see.

Apps on your site lists every app on your coin page that can run on other sites, with its snippet filled in, and your coin's card (<cd-coin>), which works on any site. For a badge and cards that load no script, see Embeds.

Which coin card? Use <cd-coin> if your page already loads the script for an app, or you want the card to match your site's colors and its light or dark look. If your site allows no script, use the coin card in Embeds. On a README or another Markdown page, use the badge there.

  • Keep the link inside the snippet. It shows until the app is ready, and stays if the app can't load.
  • An app is missing from the list? Its developer has not allowed it on other sites, it is not installed on your coin page, or you have switched it off there. An app you switched off on your coin page still runs on your site while it stays installed: write its snippet with its own id (Without the coin manager). Apps for holders only do not run on other sites. An app that sells runs once its developer allows it.
  • Apps that use a wallet work only on your verified sites. Read-only apps and your coin's card work on any https site, and on a page your own computer serves at http://localhost or http://127.0.0.1.
  • A coin the Chain Daddy team runs (house coins) carries a Chain Daddy team label on its card and on <cd-identity>, as it does on chaindaddy.io.
  • Your page sets the width, and the app sets its own height. An app is as tall as its tile on a coin page, and grows if it needs more room. There is no height attribute, and your CSS does not reach inside the element.
  • If your site sends a Content Security Policy, allow script-src https://js.chaindaddy.io, frame-src https://embed.chaindaddy.io and connect-src https://api.chaindaddy.io.

More options (colors, light and dark, events): JavaScript SDK. To try an app before it is on your main site: Test apps on your site.

Without the coin manager ​

A developer who builds the site for the coin's owner can write the snippets with no account:

ValueWhere it comes from
crowncrownId in curl https://api.chaindaddy.io/api/v2/public/coins/base/YOURCOIN
chainThe chain's name as it is written in the coin page's address, in lowercase: base in chaindaddy.io/yourcoin/base. The same read answers it as chain
appid in curl https://api.chaindaddy.io/api/v2/public/coins/base/YOURCOIN/apps. An app whose embed is true has been allowed on other sites by its developer. "embed": null means it has not, and its link stays (not_opted_in)

An app the owner switched off on the coin page is not in that list. Its id is the end of its address in the Apps directory: the 3D Viewer's page is chaindaddy.io/_app?id=3d-viewer, so its id is 3d-viewer. To ask about one app by its id:

bash
curl "https://api.chaindaddy.io/api/v2/embed/status?crown=123&chain=base&app=3d-viewer"
#   → {"embeddable":true,"interactive":false,"embedHosts":["yourcoin.com"]}
FieldMeaning
embeddabletrue when the app can run on other sites for this coin. When it is false, reason says why, with the codes in If the link stays; the ones only an app's developer can fix are in Apps on other sites
interactivetrue for an app that uses a wallet: it runs only on the sites in embedHosts. false for a read-only app, which runs on any https site and on your own computer
embedHostsThe coin's verified sites. Each covers its subdomains, unless it is also in hostOnly
hostOnlyThe verified sites set to This host only: each counts for itself and its www. only

With kind=coin in place of app, the same call answers for the coin's card. The link inside the snippet is pageUrl from the first read. All of these are in Public reads, except the status call, which is in the API Explorer under Crown Apps.

You should see ​

Open your page with the browser's developer tools on the Console tab. Your link shows first. An app or a card that can show takes its place within a second or two.

Where your page isThe card and read-only appsAn app that uses a wallet
An https site you have verifiedShowShows, with a Sign in with Chain Daddy button under it
Any other https siteShowYour link stays
http://localhost or http://127.0.0.1, on your own computerShowYour link stays
A file you opened, or another http:// addressYour link staysYour link stays

The card shows your coin's ticker, chain, price and market cap, and a link that says On Chain Daddy.

An app or card that shows writes one collapsed line to the console: Chain Daddy, PROD and a version number. When the link stays instead, the console says why: If the link stays.

Sell on your site with one tag ​

Install Item Store on your coin page, then put its snippet on your site. Your visitors see your coin's items with their prices, buy one in a Chain Daddy window, and see what they own. You need no server and no key: the sale is in your store like one made on your coin page. Your coin needs a store with items on sale first.

html
<script async src="https://js.chaindaddy.io/v1/cd.js"></script>
<cd-app crown="123" chain="base" app="item-store"><a href="https://chaindaddy.io/SYMBOL/base">$SYMBOL on Chain Daddy</a></cd-app>

It works on your verified sites only, while the site shows your coin's identity at the top of the page (<cd-identity>). Your site has its own checkout and a server? Use checkout sessions instead: your server opens the payment and is told when it is paid.

When an app or card cannot show, your link stays in its place and the script says why in the browser's console, about 8 seconds after the app started to load: [Chain Daddy] cd-app <app> cannot show here: <reason>. The element fires cd:unavailable at the same time.

The console saysWhat it meansWhat to do
A red error that names frame-ancestors and embed.chaindaddy.io, before any line from the scriptChain Daddy told your browser that this page may not show that app. It is not your site's Content Security PolicyWait for the script's line, which names the reason: usually one of the next two rows
not a verified site of the coinThe app uses a wallet, and this page is not on one of your verified sitesAdd and verify the site: Verified sites. A site you just verified takes about two minutes: How soon it works
not https, or the app did not startThe page is a file, or an http:// address that is not your own computer, or the app's own code failed to loadPut the page on an https address, or serve it at http://localhost. If it is, reload; if it stays, tell the app's developer
not_installedThe app is not on this coin's pageAdd it to your coin page, or copy the snippet again: it may name another coin
not_live, not_opted_inThe app does not exist under that id, or its developer has not allowed it on other sitesCheck the app id against Apps on your site
holders_onlyThe app, or your copy of it, is for holders onlyApps for holders only do not run on other sites
unknown_crownNo coin has that crown number on that chainCopy the snippet again from Apps on your site
nsfw_coin, nsfwThe coin or the app is marked 18+These do not run on other sites
No line at all, and the 3D Viewer shows "3D can't be shown on this device."The visitor's device or browser cannot draw 3DNothing to fix on your page
embeds_off, blockedApps on other sites are paused, for everyone or for this coinStatus, or write to support
A red error that names your own page's policy (script-src, frame-src or connect-src), or no line from the script at allYour page's Content Security Policy stopped the script, the frame or the questionAllow the three sources named under Add an app

An app far down a long page loads when your visitor gets near it, so its link shows until then.

What your visitors see ​

An app on your site looks like part of your page. An app that only shows something (Video Player, Audio Player, 3D Viewer) needs nothing from the visitor.

An app that talks to its own server (a forum, a live feed) runs on your verified sites only, and asks the visitor to sign in so its server knows who they are.

A game plays in its box like on your coin page, on your verified sites only. A game uploaded to Chain Daddy counts its downloads against your plan: when that is used up, the game says it is busy for a minute.

An app that uses a wallet shows a Sign in with Chain Daddy button under it:

  1. The visitor taps it. A small Chain Daddy window opens.
  2. The window names your site and your coin, with a Verified site mark, and asks the visitor to allow it.
  3. They allow it, the window closes, and the app knows their wallet address.

After that, each time the app wants a signature or a transaction, a Chain Daddy window opens for that one request.

  • Your page gets no address, no session and no result.
  • EVM wallets. On your own site, an app that uses a wallet works with EVM wallets (Ethereum, Base and the other EVM chains). A visitor with a Solana wallet is told so before any window opens. Your coin's card and read-only apps work for every coin, Solana coins included, and every app works on your coin page.
  • Visitors can sign out under the app, or in Chain Daddy under Settings → Connected sites.
  • It stays signed in on the same browser for 7 days after the last use.

Approving a request ​

When an app on your site asks for a signature or a transaction:

  1. A Chain Daddy window opens. The app shows a short match code while it waits.
  2. The window shows the same code, the app's name, your site with its Verified site mark, your coin, and what will be signed or sent.
  3. The visitor approves with their wallet, or declines. The window closes and the app carries on.

If the browser blocks the window, the app shows a Continue button that opens it.

An app that sells works the same way: the window names your site, your coin, the app and the item, and the visitor pays there.

An app on your site can't send coins or tokens, ask for spending approvals, or pay people. Those stay on your coin's page on Chain Daddy.