# Pull Request Description
## Related Issue
Fixes # (issue number)
## Changes Made
This PR adds the following changes:
<!-- List the key changes made in this PR -->
- Added jupReferralAccount to allow devs to set Fee Accounts on trade
API (optional parameter)
- Added jupFeeBps to allow devs to set fee in bps (optional parameter)
## Implementation Details
<!-- Provide technical details about the implementation -->
- Added optional Parameter to trade API
## Transaction executed by agent
<!-- If applicable, provide example usage, transactions, or screenshots
-->
Example transaction:
https://solscan.io/tx/35b1wz1LjU5pEALq6m5Q6Gyc3QB3ejvsjNAYoy9PdHu9WP8SzGLjHi59sRPj8hvtntVMDMEguWuu273FZ3EbUSoZ
## Prompt Used
<!-- If relevant, include the prompt or configuration used -->
```
```
## Additional Notes
<!-- Any additional information that reviewers should know -->
## Checklist
- [x] I have tested these changes locally
- [x] I have updated the documentation
- [x] I have added a transaction link
- [ ] I have added the prompt used to test it
# Pull Request Description
Not sure if you are interested in PRs fixing typo and grammar, but I
thought it a good way to start with the repo (so here we are 🤗)
## Changes Made
This PR adds the following changes:
<!-- List the key changes made in this PR -->
- Fixed some obvious typos and grammar
- Renamed persistance-agent to more natural persistent-agent
## Additional Notes
<!-- Any additional information that reviewers should know -->
## Checklist
- [x] I have tested these changes locally
- [ ] I have updated the documentation
* I did not update the documentation yet, as there were many changes
when I ran `npm run docs`
# Pull Request Description
Add Tensor Trade SDK support for NFT trading operations
## Related Issue
Fixes#20
## Changes Made
This PR adds the following changes:
- Added `tensor_trade.ts` file in `src/tools` with NFT trading
functions:
- `listNFTForSale`
- `buyNFT`
- `cancelListing`
- Integrated Tensor Trade functions into Langchain tools
- Added proper error handling and validation for NFT operations
## Implementation Details
- Integrated `@tensor-oss/tensorswap-sdk` for Tensor Trade Swap
- Added support for listing, buying, and canceling NFT listings
- Implemented proper transaction building and signing
- Added validation checks for NFT ownership and wallet balance
- Supports both compressed and non-compressed NFTs
## Transaction executed by agent
Test transaction on mainnet:
## Prompt Used
I want to list my NFT for sale on Tensor Trade
NFT Mint Address: [NFT_MINT_ADDRESS]
Price: 1 SOL
Expiry Time: 3600
## Additional Notes
- Will add more comprehensive error handling based on testing results
## Checklist
- [x] I have tested these changes locally
- [ ] I have updated the documentation
- [ ] I have added transaction links
- [x] I have added the prompt used to test it
# Pull Request Description
## Changes Made
Upgraded NPM dependencies to keep up to date.
The upgrades do not affect any specific SDKs, they upgrade the langchain
and openai SDK as well as other devDependencies
# Pull Request Description
Added a Telegram bot starter example, with steps on how to run and host
it successfully.
## Related Issue
Fixes#83
## Changes Made
This PR adds the following changes:
- Adds an example on how we can use agent kit in a telegram bot using
nextjs
-
## Implementation Details
- Used next js and ngrok or vercel to host the bot and telegram bot api
to have it.
## Transaction executed by agent
Yes it is able to do everything.
## Prompt Used
NA
## Additional Notes
NA
## Checklist
- [ x ] I have tested these changes locally
# Pull Request Description
## Related Issue
Implements #60
## Changes Made
This PR adds the following changes:
- Added `getBalanceOther` method in `SolanaAgentKit` class
- Implemented `get_balance_other` tool
## Implementation Details
- This tool enables the agent to query SOL and SPL token balances of
other wallets
## Prompt Used
```
Prompt: What is the SOL balance of HHELE9Q7LsARJACq7cMCkoPStjZUomn4JphdHUMyK3op?
-------------------
{"status":"success","balance":49.893951194,"wallet":"HHELE9Q7LsARJACq7cMCkoPStjZUomn4JphdHUMyK3op","token":"SOL"}
-------------------
The wallet balance of HHELE9Q7LsARJACq7cMCkoPStjZUomn4JphdHUMyK3op is approximately 49.89 SOL.
-------------------
Prompt: Now get the balance of sSo14endRuUbvQaJS3dq36Q829a3A6BEfoeeRGJywEh token for that same wallet
-------------------
{"status":"success","balance":60.338328396,"wallet":"HHELE9Q7LsARJACq7cMCkoPStjZUomn4JphdHUMyK3op","token":"sSo14endRuUbvQaJS3dq36Q829a3A6BEfoeeRGJywEh"}
-------------------
The balance of the token sSo14endRuUbvQaJS3dq36Q829a3A6BEfoeeRGJywEh in the wallet HHELE9Q7LsARJACq7cMCkoPStjZUomn4JphdHUMyK3op is approximately 60.34 tokens.
-------------------
```
## Checklist
- [x] I have tested these changes locally
- [x] I have updated the documentation
~~- [ ] I have added a transaction link~~
- [x] I have added the prompt used to test it
# Pull Request Description
## Related Issue
Fixes#92
## Changes Made
This PR adds the following changes:
- Fixed token decimal handling in trade function to support tokens with
different decimal places
- Added proper scaling of input amounts based on token's decimal places
- Added getMint import from @solana/spl-token
## Implementation Details
- Fetches mint info using `getMint` to determine token decimals
- Calculates correct scaled amount using `Math.pow(10, inputDecimals)`
- Supports tokens with any number of decimal places (e.g., USDC-6,
SOL-9)
## Transaction executed by agent
Example transaction: [Insert your test transaction hash here]
## Prompt Used
Trade 0.0001 SOL for BONK
## Additional Notes
This fix ensures proper handling of token decimals, which is crucial
for:
- USDC (6 decimals)
- SOL (9 decimals)
- Other SPL tokens with varying decimal places
## Checklist
- [x] I have tested these changes locally
- [x] I have updated the documentation
- [x] I have added a transaction link
- [x] I have added the prompt used to test it