UNPKG

@coinbase/cdp-sdk

Version:

SDK for interacting with the Coinbase Developer Platform Wallet API

7 lines (5 loc) 299 B
import { toQueryString } from "../url/qs.js"; export function createRequestUrl(baseUrl: string, queryParameters?: Record<string, unknown>): string { const queryString = toQueryString(queryParameters, { arrayFormat: "repeat" }); return queryString ? `${baseUrl}?${queryString}` : baseUrl; }