Our RPC REST APIs currently return a transaction's TransactionStatus to provide additional information about the result of its execution. However, this type is not particularly useful to clients as it lacks the context required for easy interpretation. TransactionStatus is primarily meant for internal representation. To make our API results more intuitive, we should follow Aptos and present a message that fully explains the status code. Translation can be achieved via api/types/src/convert.rs:explain_vm_status, but it is currently private. We should make it public.
Our RPC REST APIs currently return a transaction's
TransactionStatus
to provide additional information about the result of its execution. However, this type is not particularly useful to clients as it lacks the context required for easy interpretation.TransactionStatus
is primarily meant for internal representation. To make our API results more intuitive, we should follow Aptos and present a message that fully explains the status code. Translation can be achieved viaapi/types/src/convert.rs:explain_vm_status
, but it is currently private. We should make it public.Related to https://github.com/Entropy-Foundation/smr-moonshot/issues/781.