@cryptoscan/solana-send-transaction
v0.5.4
Published
The fastest way to send transaction in solana.
Downloads
174
Readme
@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 VersionedTransactionoptions
- options params for functioncommitment
- Status of transaction to resolve promiseprocessed
- Query the most recent block which has reached 1 confirmation by the connected nodeconfirmed
- Query the most recent block which has reached 1 confirmation by the clusterfinalized
- Query the most recent block which has been finalized by the cluster
connection
- Connection instance from solana/web3.jsrepeatTimeout
- Timeout to repeat while transaction does not reach commitmentblockHeightLimit
- Block height limit to repeat while transaction is not expiredsendOptions
- Options for sendTransaction functionskipPreflight
- disable transaction verification steppreflightCommitment
- preflight commitment levelmaxRetries
- Maximum number of times for the RPC node to retry sending the transaction to the leaderminContextSlot
- The minimum slot that the request can be evaluated at