We are an open, permissionless protocol!
If you wish to create a claim link with a custom domain (e.g. walnut.xyz/claim), follow the steps below:
To specify your custom domain: pass in a baseUrl
to the SDK's createLink
function within linkDetails
. The baseUrl
will be the base URL of the claim link. For example, if you want to use the domain walnut.xyz
, pass in https://www.walnut.xyz
as the baseUrl
.
If you pass in walnut.xyz
as your baseUrl
, the generated link will be in the format walnut.xyz?c=1...
instead of walnut.xyz/claim?c=1...
. We recommend adding a subpage (e.g., /claim
) after your baseUrl
to make the link more intuitive, but this step is optional.
For React Native, iOS or Androids, see below:
iOS:
Android:
androidManifest.xml
file.apple-app-site-association (AASA) and assetLinks.json files:
The AASA
and assetLinks.json
files do not require updates since the androidManifest
and the associated domains in Xcode have already been updated. You do, however, need to serve them on your custom domain (e.g walnut.xyz) if you want other mobile apps to resolve your domain. If you decide to use the files we provide, all mobile apps registered with Peanut Protocol will be able to resolve your links.
Follow these steps to fetch the two files dynamically from the peanut api:
assetLinks.json
file from the Peanut API to serve them dynamically to the corresponding URL.