linea-mcp
Version:
A Model Context Protocol server for interacting with the Linea blockchain
42 lines • 1.99 kB
TypeScript
import { Erc20BalanceParams, Erc20TransferParams, ListAvailableTokensParamsType, ListAvailableTokensResultType, GetTokenInfoParamsType, GetTokenInfoResultType, GetTokenPriceHistoryParamsType, GetTokenPriceHistoryResultType } from './schemas.js';
/**
* Get the balance of an ERC20 token for a wallet
* @param params The parameters for getting the token balance
* @returns The token balance and details
*/
export declare function erc20Balance(params: Erc20BalanceParams): Promise<{
success: boolean;
address: `0x${string}`;
token: {
address: `0x${string}`;
name: string;
symbol: string;
decimals: number;
};
balance: string;
}>;
/**
* Transfer ERC20 tokens from one wallet to another, with fee estimation and confirmation
* @param params The parameters for transferring tokens
* @returns The transaction details or an abort message
*/
export declare function erc20Transfer(params: Erc20TransferParams): Promise<any>;
/**
* List available tokens on Linea, with optional search and pagination.
* @param params Parameters including optional query, limit, page, and includePrice.
* @returns A list of tokens matching the criteria.
*/
export declare function listAvailableTokens(params: ListAvailableTokensParamsType): Promise<ListAvailableTokensResultType>;
/**
* Get detailed information about a specific token by its contract address.
* @param params Parameters including the contract address and includePrice flag.
* @returns Detailed information about the specified token.
*/
export declare function getTokenInfo(params: GetTokenInfoParamsType): Promise<GetTokenInfoResultType>;
/**
* Get historical hourly price data for a specific token.
* @param params Parameters including the contract address.
* @returns Historical price data for the token.
*/
export declare function getTokenPriceHistory(params: GetTokenPriceHistoryParamsType): Promise<GetTokenPriceHistoryResultType>;
//# sourceMappingURL=handlers.d.ts.map