@hyperlane-xyz/sdk
Version:
The official SDK for the Hyperlane Network
25 lines • 886 B
TypeScript
import type { Address, Hex } from 'viem';
import type { FeeQuotingCommand, FeeQuotingQuoteResponse } from './types.js';
export interface FeeQuotingClientOptions {
baseUrl: string;
apiKey: string;
}
export interface QuoteParams {
origin: string;
command: FeeQuotingCommand;
router: Address;
destination: number;
/** Pre-computed salt (e.g. keccak256(sender, clientSalt) for QuotedCalls) */
salt: Hex;
/** Required for warp commands (transferRemote, transferRemoteTo) */
recipient?: Hex;
/** Target router for transferRemoteTo with CrossCollateralRoutingFee */
targetRouter?: Hex;
}
export declare class FeeQuotingClient {
private readonly baseUrl;
private readonly apiKey;
constructor(options: FeeQuotingClientOptions);
getQuote(params: QuoteParams): Promise<FeeQuotingQuoteResponse>;
}
//# sourceMappingURL=client.d.ts.map