Skip to content

Create a TipLink URL using the API. An example use case would be to automatically generate 100 TipLink URLs.

License

Notifications You must be signed in to change notification settings

256hax/tiplink-api-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TipLink API Example

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.

Docs

TipLink Docs

How to make TipLink URL

  1. Prepare wallet and fund SOL.
  2. Create TipLink wallet.
  3. Send SOL to TipLink wallet.

Setup

Install

% npm i

Edit src/main.ts

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';

Run

% ts-node src/main.ts

Note

TipLink URL available for Mainnet-beta.

About

Create a TipLink URL using the API. An example use case would be to automatically generate 100 TipLink URLs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published