@tiplink/api
v0.3.1
Published
Api for creating and sending TipLinks
Downloads
1,818
Readme
TipLink API
What is TipLink?
TipLink is a lightweight wallet designed to make transferring digital assets as easy as sending a link. Our non-custodial wallet allows you to have complete control of your assets by connecting your Gmail account or Solana wallet.
Someone with crypto can create a TipLink and send that link to anyone over any platform (text, discord, email, etc). The amazing thing is, the link is the wallet!
TipLink offers the benefits of decentralization and self-custody without worrying about seed phrases, arcane key management, apps, and browser extensions.
Basic Installation instructions
npm install @tiplink/api
Import Instructions
import { TipLink } from '@tiplink/api';
Create a TipLink
TipLink.create().then(tiplink => {
console.log("link: ", tiplink.url.toString());
console.log("publicKey: ", tiplink.keypair.publicKey.toBase58());
return tiplink;
});
const tp = 'https://tiplink.io/i#TIPLINK_HASH';
TipLink.fromLink(tp).then(tiplink => {
console.log("converted publicKey: ", tiplink.keypair.publicKey.toBase58());
return tiplink;
});
Note: If adding as a local path or GitHub URL, run npm install
and npm run build
manually in your build processes.