getBuyWithCryptoStatus
Gets the status of a buy with crypto transaction
import { getBuyWithCryptoStatus, getBuyWithCryptoQuote } @thirdweb-dev/sdk"; // get a quote between two tokensconst quote = await getBuyWithCryptoQuote(quoteParams);// if approval is required, send the approval transactionif (quote.approval) { const response = await signer.sendTransaction(quote.approval);}// send the quoted transactionconst transactionResult = await signer.sendTransaction( quote.transactionRequest,);// keep polling the status of the quoted transaction until it * returns a success or failure statusconst status = await getBuyWithCryptoStatus({ clientId: "YOUR_CLIENT_ID", transactionHash: transactionResult.hash,});
function getBuyWithCryptoStatus(
Object of type BuyWithCryptoStatus