UNPKG
@getclave/lifi-sdk
Version:
latest (4.1.2)
4.1.2
4.1.1
4.1.0
4.0.5
4.0.4
4.0.3
4.0.2
4.0.1
4.0.0
3.6.18
3.6.17
3.6.16
3.6.15
3.6.14
3.6.13
3.6.12
3.6.11
LI.FI Any-to-Any Cross-Chain-Swap SDK
github.com/getclave/lifi-sdk
getclave/lifi-sdk
@getclave/lifi-sdk
/
src
/
utils
/
fetchTxErrorDetails.ts
11 lines
(9 loc)
•
296 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
export
const
fetchTxErrorDetails
=
async
(
txHash
:
string
,
chainId
:
number
) => {
try
{
const
response =
await
fetch
(
`https://api.tenderly.co/api/v1/public-contract/
${chainId}
/tx/
${txHash}
`
)
const
reponseBody =
await
response.
json
()
return
reponseBody }
catch
(_) {} }