This commit is contained in:
Arihant Bansal
2024-12-13 16:08:31 +05:30
parent fe53b0cbd9
commit 68933a1dfd
2 changed files with 11 additions and 0 deletions

View File

@@ -12,6 +12,8 @@ import {
launchPumpFunToken, launchPumpFunToken,
lendAsset, lendAsset,
getTPS, getTPS,
fetchTokenDataByMint,
fetchTokenDataByName,
} from "../tools"; } from "../tools";
import { CollectionOptions, PumpFunTokenOptions } from "../types"; import { CollectionOptions, PumpFunTokenOptions } from "../types";
import { DEFAULT_OPTIONS } from "../constants"; import { DEFAULT_OPTIONS } from "../constants";
@@ -95,6 +97,14 @@ export class SolanaAgentKit {
return getTPS(this); return getTPS(this);
} }
async getTokenDataByMint(mint: PublicKey) {
return fetchTokenDataByMint(mint);
}
async getTokenDataByName(name: string) {
return fetchTokenDataByName(name);
}
async launchPumpFunToken( async launchPumpFunToken(
tokenName: string, tokenName: string,
tokenTicker: string, tokenTicker: string,

View File

@@ -9,3 +9,4 @@ export * from "./register_domain";
export * from "./launch_pumpfun_token"; export * from "./launch_pumpfun_token";
export * from "./lend"; export * from "./lend";
export * from "./get_tps"; export * from "./get_tps";
export * from "./get_token_data";