Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Other Frontend Frameworks
Fetches a single transaction by its hash or internal ID. Works with Vue, Angular, Svelte, and vanilla JavaScript.
const bearerToken = await getBearerToken(); const tx = await browserClient.getTransaction("0x...", bearerToken);
hashOrId
0x...
bearerToken
Promise<Transaction>
import { ChipiBrowserSDK } from "@chipi-stack/backend"; const browserClient = new ChipiBrowserSDK({ apiPublicKey: process.env.CHIPI_PUBLIC_KEY, }); async function showTransaction(txHash: string) { const bearerToken = await getBearerToken(); const tx = await browserClient.getTransaction(txHash, bearerToken); console.log(`Status: ${tx.status}`); console.log(`Amount: ${tx.amount} ${tx.token}`); console.log(`From: ${tx.senderAddress}`); console.log(`To: ${tx.destinationAddress}`); }
Was this page helpful?