[No Code] How to create a Solana Blink
Solana Blink creation tutorial (for Twitter etc) that can achieve these different purposes :
- Requesting one or several payments/donations
- Selling a NFT (presale)
- Selling a Solana SPL-Token
What are Solana Blinks?
First of all, a Blink is in fact a particular link. Blink is the short for “Blockchain Link”. It is a Solana feature that transforms on-chain operations into front-end pages. Blinks enable users to execute blockchain transactions directly from a third party application, into the preview of the Blink that is shared.
For example, in Twitter, if a Blink is sent via private messages, this is what you can get as a result in the message feed :
Directly in Twitter’s message feed, the thumbnail of the link is different from what we are used to, and we can see it is not only a static thumbnail showing. Different actions are shown into the thumbnail of the Blink, the user can use to perform proposed actions.
In the example above, a payment is requested, and the different actions can be used to pay the requested amount using the Solana token of your choice. The user doesn’t have to click on a link and navigate to another page, he can stay in the page he is browsing, and directly use the buttons.
When you send a Blink into a feed, either private message feed, either your own feed, it can turn into this interactive dialog that can be used to take actions.
How to enable Solana Blinks ?
As this article is being published, Solana Blinks are still a new feature and are still supported on very few platforms, like Twitter for example, and needs to be enabled in order to be active, and requires also a compatible wallet (Phantom and Solflare are : https://phantom.app ; https://solflare.com/ ).
Here are the instructions on how to enable Blink support in your Wallet : Enable blinks in twitter with phantom
How to create Blinks ?
The tool we are going to focus on lets you create P-Links.
P-Link is another Solana feature, created specifically for requesting payments, and P-Links are also Blinks.
It means if you create a P-Link, you have also created a Blink.
The toolbox we are going to use is available on the Net-assembly Solana Payment gateway
How to create a payment request Solana Blink ?
Quick P-Links
Creating Quick P-Links is the easiest method, as it takes only a few seconds.
It just requires to respect a particular URL schema :
Just type as an URL p-link.io/ then add your wallet address and the amount in dollars separated by slash ( “/” ).
Try the URL : https://p-link.io/FPnfgC9ppJP9qbDyL2E5ZfDuvHuabec2XFfKufawP6p4/1
You can also request a payment in USDC (on Solana) or in any Solana token, provide the amount in euros, and provide an email for payment notifications: https://p-link.io/Usdc/FPnfgC9ppJP9qbDyL2E5ZfDuvHuabec2XFfKufawP6p4/10/EUR/contact@mymail.qsd
Shortened P-Links
Shortened P-Links needs to be created with the toolbox available at https://crypto.net-assembly.com
On this website, just hit the “Create P-Link” button, and provide the P-Link options.
If you only want to request a payment, then you just have to paste your wallet address in the corresponding field of the form, and provide the corresponding amount in Usd.
By default you will get paid in Solana, but you can also customize the tokens you accept (can be any Solana token tradable on Jupiter https://jup.ag ).
There are also many options you can setup while creating a P-Link, even if only the amount and the wallet are mandatory :
- you can customize the image that will appear in the Blink (square 580x580px)
- you can customize the title and the description shown in the Blink
- you can setup an email or a webhook to get payment notifications
- and some more options we wont talk about here…
Once you have provided your options, you just need to validate the form, in order to get a link that is a P-Link and thus also a Blink !
Very simple too !
How to sell my own Solana NFT with a Blink ?
The is a particular option you can setup while creating a P-Link on https://crypto.net-assembly.com : the possibility to give the payer a NFT, included in the payment transaction.
This means that the payer can buy an NFT you created, through a Blink.
You just need to Drag and drop your jpg or png file into the NFT field, and your done, your P-Link now gives an NFT in exchange of the payment, in a single transaction.
This way, the P-Link you created can be either a Blink in order to sell an NFT, either a Blink to request a payment, with an NFT given to the payer.
How to sell my own token with a Blink ?
One more advanced feature of P-Links is the possibility to sell you own token.
Instead of providing a wallet address into the wallet field, you can paste the mint of your token (if you created your own token i guess you are already familiar with token mint). The resulting Blink will provide a way to buy your token :