Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/ten-items-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
13 changes: 12 additions & 1 deletion ts-sdk/tx-sender/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# tx-sender
# @orca-so/tx-sender

A lightweight TypeScript package for building and sending Solana transactions with support for priority fees and Jito tips. (based on @solana/web3.js 2.0)

Expand Down Expand Up @@ -45,3 +45,14 @@ const txHash = await buildAndSendTransaction(
keypairSigner
);
```

## Default Fee Settings

By default, tx-sender uses the following configuration:

- Priority Fees: Dynamic pricing with a max cap of 0.004 SOL (4,000,000 lamports), using the 50th percentile fee
- Jito Tips: Dynamic pricing with a max cap of 0.004 SOL (4,000,000 lamports), using the 50th percentile fee
- Compute Unit Margin: 1.1x multiplier for compute unit calculation (10% margin)
- Jito Block Engine URL: https://bundles.jito.wtf

These defaults can be overridden using the configuration functions shown in the example above.
21 changes: 20 additions & 1 deletion ts-sdk/tx-sender/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@orca-so/tx-sender",
"version": "0.1.0",
"description": "Send transactions to the Solana blockchain with auto priority fees.",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand All @@ -23,6 +24,7 @@
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts --sourcemap",
"test": "vitest run tests",
"deploy": "../../scripts/deploy-npm",
"clean": "rimraf dist"
},
"dependencies": {
Expand All @@ -36,5 +38,22 @@
"devDependencies": {
"@solana/web3.js": "^2.0.0",
"tsup": "^8.4.0"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/orca-so/whirlpools.git"
},
"license": "Apache-2.0",
"keywords": [
"solana",
"crypto",
"defi",
"dex",
"amm"
],
"author": "[email protected]",
"bugs": {
"url": "https://github.com/orca-so/whirlpools/issues"
},
"homepage": "https://orca.so"
}
Loading