Use the dryRun call to simulate the submission of a transaction without executing it so that you can check for potential errors and validate the expected outcome.
dryRun
References:
PostDispatchInfo
DispatchError
Error Type
POST /transaction/dry-run HTTP/1.1 Host: dot-playbook.nownodes.io Content-Type: application/json Accept: */* Content-Length: 48 { "at": "text", "tx": "text", "senderAddress": "text" }
successful operation
{ "resultType": "DispatchOutcome", "result": { "actualWeight": "text", "paysFee": "text" } }