For the complete documentation index, see llms.txt. This page is also available as Markdown.

๐ŸŽฌPosition Actions

Improving Transaction Success Rate

To maximize transaction success rates when opening or closing positions, we recommend implementing one of the following approaches:

Send transactions through our optimized RPC endpoint specifically designed for Lavarage transactions. This RPC is optimized for sending transactions only and cannot be used to read blockchain state.

Implementation:

if (useSignAndRpc) {
  // Original method: Sign transaction and send through RPC
  const signedTransaction = await signTransaction!(transaction!)
  const newConnection = new Connection('<https://ng-api.lavarave.wtf/api/sdk/v1.0/proxy/rpc>', "confirmed")
  transactionHash = await newConnection.sendRawTransaction(signedTransaction.serialize())
} else {
  // Direct method: Send transaction directly through wallet
  if (!sendTransaction) {
    throw new Error("Wallet does not support direct transaction sending")
  }
  transactionHash = await sendTransaction(transaction!, connection)
}

RPC Endpoint: https://ng-api.lavarave.wtf/api/sdk/v1.0/proxy/rpc

Note: This RPC is optimized exclusively for sending Lavarage transactions and should not be used for reading blockchain state.

Alternative: Send Jito Bundles with Priority Tips

For improved landing rates, send Jito bundles with tips set to at least 3 times the 99th percentile tip floor. The tip transaction must be added to the bundle manually.

For detailed implementation guidance, refer to the Jito bundle documentation

Last updated