Link your token to a Lens Post & Account
Make your token presentable on the Bonsai app.
Last updated
Make your token presentable on the Bonsai app.
Last updated
Once you've programmatically created your token on the BonsaiLaunchpad
contract , you can link it to a Lens Post & Account via our API so it's presentable on the Bonsai app.
Mainnet API: https://app.onbons.ai/api/clubs/set-lens-data
Testnet API: https://testnet.onbons.ai/api/clubs/set-lens-data
METHOD: POST
BODY:
txHash
0x${string}
the transaction hash where you created your token
postId
string
the post id or slug to link your token with
RESPONSE: 200 | 403 | 401 | 400 | 500
HEADERS AUTHORIZATION: Bearer {lensIdToken}
()
To get the Lens ID Token of an authenticated lens account, you can do so via the SessionClient
All of these are required. The typical flow is a) create the token b) create the lens post c) call this /set-lens-data
endpoint to link them
If successful, the response is 200 with json { success: true, url: "{bonsai token page}" }
with url
looking something like this: