export type CreateApiBapiV1HederaContractsPaymasterUserInfoArgs = {body: {[key: string]: string}}; export type CreateApiBapiV1HederaContractsPaymasterUserInfoOptions = {baseUrl?: string | undefined, Bearer?: string | undefined, fetch?: typeof fetch | undefined}; /** * Paymaster 사용자 정보 * * POST /bapi/v1/hedera/contracts/paymaster/user-info */ export const createApiBapiV1HederaContractsPaymasterUserInfo = async (args: CreateApiBapiV1HederaContractsPaymasterUserInfoArgs, options?: CreateApiBapiV1HederaContractsPaymasterUserInfoOptions) => { const {baseUrl = "https://api.wincl.io:443", fetch: fetchFn = fetch, Bearer} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") headers.set('accept', "*/*") if (Bearer !== undefined) headers.set('authorization', `Bearer ${Bearer}`) const url = `${baseUrl.replace(/\/+$/, '')}/bapi/v1/hedera/contracts/paymaster/user-info${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "POST", headers, body: JSON.stringify(args.body)}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return res.blob() };