Function: parseBrowserTxResult()
A callback reports submission or signing; it is not independent confirmation of execution.
parseBrowserTxResult(
input,request): {address:string;chain:"cosmos"|"evm";chainId:string;hash:string;network:"mainnet"|"testnet"|"local";outcome:"submitted";requestId:string; } | {address:string;chain:"cosmos"|"evm";chainId:string;network:"mainnet"|"testnet"|"local";outcome:"signed";requestId:string;signedTx:string; } | {error?:string;outcome:"cancelled";requestId:string; } | {error:string;outcome:"unknown";requestId:string; } | {error:string;outcome:"error";requestId:string; }
Defined in: packages/bitbadgesjs-sdk/src/core/browser-signing.ts:92
A callback reports submission or signing; it is not independent confirmation of execution.
Parameters
input
unknown
request
{ chain: "cosmos"; chainId: string; evmChainId: string; expectedAddress: string; expiresAt: number; network: "mainnet" | "testnet" | "local"; requestId: string; signOnly: boolean; txsInfo: object[]; version: 2; } | { chain: "evm"; chainId: string; evmChainId: string; expectedAddress: string; expiresAt: number; network: "mainnet" | "testnet" | "local"; requestId: string; signOnly: boolean; tx: { data?: string; to: string; value?: string; }; version: 2; }
Returns
{ address: string; chain: "cosmos" | "evm"; chainId: string; hash: string; network: "mainnet" | "testnet" | "local"; outcome: "submitted"; requestId: string; } | { address: string; chain: "cosmos" | "evm"; chainId: string; network: "mainnet" | "testnet" | "local"; outcome: "signed"; requestId: string; signedTx: string; } | { error?: string; outcome: "cancelled"; requestId: string; } | { error: string; outcome: "unknown"; requestId: string; } | { error: string; outcome: "error"; requestId: string; }