Categories
Solana

Hey community,
I’m looking for creating blinks for user’s on my application that can share a customisable amount blink onto their twitter. By any chance is this possible?

export const GET = (req: Request) => { const url = new URL(req.url); // Is there a way to to this and then set the HREF const betAmount = url.searchParams.get("betAmount"); const payload: ActionGetResponse = { icon: new URL("/chess2.jpg", new URL(req.url).origin).toString(), title: "Join my chess game", description: "Chess game offered by your friend", label: "Accept my chess game.", links: { actions: [ { href: "/api/actions/memo?betAmount={betAmount}", label: "0.1 SOL", }, ], }, }; return Response.json(payload, { headers: ACTIONS_CORS_HEADERS, }); }; 

I’m trying to do something like this –

submitted by /u/inevitable_85
[link] [comments]

Join The SmashBotAI Telegram Community Now! Get trade alerts, smashable token trade ideas, and more!

https://t.me/smashbotcommunity

Start Trading Now:

SmashBotAI Telegram Bot

Claim Your $SMASH Airdrop Now!

Join The SmashBotAI Telegram Community Now! Get trade alerts, smashable token trade ideas, and more! https://t.me/smashbotcommunity

Start Trading Now:
SmashBotAI Telegram Bot

Claim Your $SMASH Airdrop Now!

Categories