mirror of
https://github.com/d0zingcat/solana-agent-kit.git
synced 2026-06-05 15:11:44 +00:00
wip
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user