Use case: Fetch a transaction using an indexer, then decode the custom logs.
What’s the best way to do that in fuels-ts?
Basically getting a txn with data and need to decode it.
Use case: Fetch a transaction using an indexer, then decode the custom logs.
What’s the best way to do that in fuels-ts?
Basically getting a txn with data and need to decode it.
Check out the encode and decode documentation. This forum post is related also.
You need the ABI and then you can decode the bytes based on the logged type.