UNPKG

stellar-sdk

Version:

A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.

18 lines (17 loc) 996 B
import { Api } from './api'; export declare function parseRawSendTransaction(r: Api.RawSendTransactionResponse): Api.SendTransactionResponse; export declare function parseRawEvents(r: Api.RawGetEventsResponse): Api.GetEventsResponse; export declare function parseRawLedgerEntries(raw: Api.RawGetLedgerEntriesResponse): Api.GetLedgerEntriesResponse; /** * Converts a raw response schema into one with parsed XDR fields and a * simplified interface. * Warning: This API is only exported for testing purposes and should not be * relied on or considered "stable". * * @param {Api.SimulateTransactionResponse|Api.RawSimulateTransactionResponse} sim the raw response schema (parsed ones are allowed, best-effort * detected, and returned untouched) * * @returns the original parameter (if already parsed), parsed otherwise * */ export declare function parseRawSimulation(sim: Api.SimulateTransactionResponse | Api.RawSimulateTransactionResponse): Api.SimulateTransactionResponse;