Skip to content

javascript code for sending solana from existing wallet to target address

Notifications You must be signed in to change notification settings

1000101cz/solana-transaction-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

solana-transaction-js

simple javascript code for sending solana from existing wallet to target address

function arguments

  • path to sender-keypair file

  • target public address (base 58 string)

  • amount of lamports to send (1 SOL = 1,000,000,000 lamps)

example

  • send 1,000,000 lamports (0.001 SOL) to account ATKcvtbtgXExHd3xZqb97M3Ab1jg2NZ8ztL8fCRJU2N1

sendLamports("/home/user/keypair.json", "ATKcvtbtgXExHd3xZqb97M3Ab1jg2NZ8ztL8fCRJU2N1", 1000000);

About

javascript code for sending solana from existing wallet to target address

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published