Skip to content

Toolkit to easy send transaction to solana blockchain with zero delay. Better than native solution

Notifications You must be signed in to change notification settings

cryptoscan-pro/solana-send-transaction

Repository files navigation

@cryptoscan/solana-send-transaction

The fastest way to send transaction in solana.

[GitHub] [Our website] [Docs] [Discord]

To install package:

npm install solana-send-transaction

Usage

import { VersionedTransaction } from '@solana/web3.js';
import sendTransaction from 'solana-send-transaction';

const transaction = new VersionedTransaction();

sendTransaction(transaction).then((tx) => {
  console.log(tx)
})

Docs

  • transaction - Uint8 or VersionedTransaction
  • options - options params for function
    • commitment - Status of transaction to resolve promise
      • processed - Query the most recent block which has reached 1 confirmation by the connected node
      • confirmed - Query the most recent block which has reached 1 confirmation by the cluster
      • finalized - Query the most recent block which has been finalized by the cluster
    • connection - Connection instance from solana/web3.js
    • repeatTimeout - Timeout to repeat while transaction does not reach commitment
    • blockHeightLimit - Block height limit to repeat while transaction is not expired
    • sendOptions - Options for sendTransaction function
      • skipPreflight - disable transaction verification step
      • preflightCommitment - preflight commitment level
      • maxRetries - Maximum number of times for the RPC node to retry sending the transaction to the leader
      • minContextSlot - The minimum slot that the request can be evaluated at

About

Toolkit to easy send transaction to solana blockchain with zero delay. Better than native solution

Resources

Stars

Watchers

Forks

Packages

No packages published