@coinbase/agentkit
Version:
Coinbase AgentKit core primitives
17 lines (16 loc) • 789 B
TypeScript
import type { GetOnrampUrlWithProjectIdParams, GetOnrampUrlWithSessionTokenParams } from "./types";
/**
* Builds a Coinbase Onramp buy URL using the provided parameters.
*
* @param props - Configuration options for the Onramp buy URL
* @param props.projectId - A projectId generated in the Coinbase Developer Portal
* @returns The generated Onramp buy URL
*/
export declare function getOnrampBuyUrl({ projectId, ...props }: GetOnrampUrlWithProjectIdParams | GetOnrampUrlWithSessionTokenParams): string;
/**
* Converts a network ID to an Onramp network ID.
*
* @param networkId - The network ID to convert
* @returns The Onramp network ID or null if the network ID is not supported
*/
export declare const convertNetworkIdToOnrampNetworkId: (networkId: string) => string | null;