0.5.4 • Published 11 months ago

@cryptoscan/solana-send-transaction v0.5.4

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

@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
0.5.4

11 months ago

0.5.3

11 months ago

0.5.1

11 months ago

0.5.0

11 months ago

0.3.4

12 months ago

0.3.2

12 months ago

0.2.9

1 year ago

0.2.8

1 year ago

0.2.7

1 year ago

0.2.6

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.3

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago