Create a TipLink URL using the API.
An example use case would be to automatically generate 100 TipLink URLs.
Then print them out on paper, and distribute them.
- Prepare wallet and fund SOL.
- Create TipLink wallet.
- Send SOL to TipLink wallet.
% npm i
Replace to your wallet private key. DO NOT SHARE PRIVATE KEY.
You can export Private Key on Phantom.
const SECRET_KEY_BASE58 = 'qkT6L2d7CY3TP1idkij8UNhzwcfQJfdjvU8NMu4FKHokkPrTeXfhooeeqUsQr5rL8rhZrcroMr4T2CFxanvezgQ';
Replace to fund SOL(not Lamports) including transaction fee what you need.
const FUND_SOL = 0.000905;
Number of creation TipLink URLs.
const NUMBER_OF_TIPLINK_URL = 1; // e.g. 3: create three TipLink URLs
Replace to your custom RPC URL(e.g. QuickNode).
const RPC_URL = 'https://api.devnet.solana.com';
% ts-node src/main.ts
TipLink URL available for Mainnet-beta.