diff --git a/book/src/jsonrpc-api.md b/book/src/jsonrpc-api.md index 582b92820a..c723c98993 100644 --- a/book/src/jsonrpc-api.md +++ b/book/src/jsonrpc-api.md @@ -169,12 +169,10 @@ events. * `string` - Signature of Transaction to confirm, as base-58 encoded string ##### Results: -* `string` - Transaction status: - * `Confirmed` - Transaction was successful - * `SignatureNotFound` - Unknown transaction - * `ProgramRuntimeError` - An error occurred in the program that processed this Transaction - * `AccountInUse` - Another Transaction had a write lock one of the Accounts specified in this Transaction. The Transaction may succeed if retried - * `GenericFailure` - Some other error occurred. **Note**: In the future new Transaction statuses may be added to this list. It's safe to assume that all new statuses will be more specific error conditions that previously presented as `GenericFailure` +* `null` - Unknown transaction +* `object` - Transaction status: + * `"Ok": null` - Transaction was successful + * `"Err": ` - Transaction failed with TransactionError [TransactionError definitions](https://github.com/solana-labs/solana/blob/master/sdk/src/transaction.rs#L14) ##### Example: ```bash diff --git a/book/src/wallet.md b/book/src/wallet.md index 400761a691..448be47232 100644 --- a/book/src/wallet.md +++ b/book/src/wallet.md @@ -41,7 +41,7 @@ $ solana-wallet balance $ solana-wallet confirm // Return -"Confirmed" / "Not found" +"Confirmed" / "Not found" / "Transaction failed with error " ``` #### Deploy program @@ -352,4 +352,3 @@ ARGS: The pubkey of recipient The process id of the transfer to unlock ``` -