Roboqo Studio
  • Roboqo Studio
  • OVERVIEW
    • Quickstart
    • Fees and Tokens
  • Basics
    • Roboqo Scripts
    • Transactions
    • UI Elements
    • Helper Functions
  • Global Objects
    • Solana Object
    • Positions Object
    • Jito Object
    • Raydium Object
    • Jupiter Object
    • Pumpfun Object
    • Rugcheck Object
    • Warp Object
    • Memes Object
    • Script / CLI
    • Storage Object
  • Instances
    • Solana Transaction
    • Solana Bundle
    • Jito Bundle
    • Solana Position
    • Solana Aggregate Position
Powered by GitBook
On this page
  1. Basics

Transactions

Roboqo Studio makes it easy to sign and submit transactions to the Solana network.

PreviousRoboqo ScriptsNextUI Elements

Last updated 6 months ago

ui.addTitle('Transfer SOL');

ui.addLabel("An example of how to transfer SOL between wallets.");

const toAddress = new PublicKey(
  ui.addTextInput('To Address')
);

const amount = parseFloat(ui.addTextInput('Amount', '.1'));

const tx = await solana.transferSol(toAddress, solToLamports(amount));

inspectTransaction(tx);

const signedTx = signTransaction(tx);

const submitted = await solana.submitTransaction(signedTransaction);

await submitted.isLanded();

console.log('Transaction successfully landed!');