Skip to content

Commit

Permalink
Merge branch 'grarco/update-shielded-action' (#379)
Browse files Browse the repository at this point in the history
MASP address in shielded actions
  • Loading branch information
brentstone authored Aug 23, 2024
2 parents b1afb87 + 2bdf90a commit 2d95c26
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions packages/docs/pages/users/ibc/shielded-ibc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,22 @@ It is no longer necessary to manually generate the MASP proof, and the `ibc-gen-
</Callout>

IBC transfers to a shielded address work similarly to those for a [tranparent address](./transparent-ibc.mdx),
the only difference being that we provide for `$RECV_ADDRESS` a shielded (`znam`) address instead of a transparent (`tnam`) one:

```bash copy
namadac ibc-transfer \
--source $SOURCE_ADDRESS \
--receiver $RECEIVER_PAYMENT_ADDRESS \
--token $TOKEN \
--amount $AMOUNT \
--channel-id $CHANNEL_ID
```

Or, when sending from a Cosmos Sdk chain:
the only difference being that we provide the MASP internal address as the value instead of `$RECV_ADDRESS`:

```bash copy
gaiad tx ibc-transfer transfer \
$CHANNEL_ID \
$RECEIVER_PAYMENT_ADDRESS \
$MASP_ADDRESS \
${AMOUNT}${IBC_TOKEN_ADDRESS} \
--from $COSMOS_ALIAS \
--node $COSMOS_RPC_ENDPOINT \
--fees 5000uatom
```

<Callout>
The previous command would work even with `$RECEIVER_PAYMENT_ADDRESS` as the second argument, but it is highly recommended to use `$MASP_ADDRESS` to preserve privacy.
</Callout>

## IBC transfer from a shielded address
You can also send IBC transfers from a shielded address, by providing the associated spending key as the source:
```bash copy
Expand Down

0 comments on commit 2d95c26

Please sign in to comment.