Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions book/src/zcashd/json_rpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,31 @@ Changes to response:
listed in a new `derived_transparent` field (an array of objects) instead of
the `transparent` field.

### `z_viewtransaction`

Changes to response:
- Some top-level fields from `gettransaction` have been added:
- `status`
- `confirmations`
- `blockhash`, `blockindex`, `blocktime`
- `version`
- `expiryheight`, which is now always included (instead of only when a
transaction has been mined).
- `fee`, which is now included even if the transaction does not spend any
value from any account in the wallet, but can also be omitted if the
transparent inputs for a transaction cannot be found.
- `generated`
- Information about all transparent inputs and outputs (which are always visible
to the wallet) are now included. This causes the following semantic changes:
- `pool` field on both inputs and outputs can be `"transparent"`.
- New fields `tIn` and `tOutPrev` on inputs.
- New field `tOut` on outputs.
- `address` field on outputs is no longer only omitted if the output was
received on an account-internal address; use `walletInternal` for this.
Comment thread
str4d marked this conversation as resolved.
Outdated
- `memo` field on outputs is omitted if `pool = "transparent"`.
- `memoStr` field on outputs is no longer only omitted if `memo` does not
contain valid UTF-8.

### `z_sendmany`

Changes to parameters:
Expand Down
2 changes: 1 addition & 1 deletion zallet/src/components/json_rpc/methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ impl RpcServer for RpcImpl {
}

async fn view_transaction(&self, txid: &str) -> view_transaction::Response {
view_transaction::call(self.wallet().await?.as_ref(), txid)
view_transaction::call(self.wallet().await?.as_ref(), self.chain().await?, txid).await
}

async fn list_unspent(&self) -> list_unspent::Response {
Expand Down
Loading
Loading