Skip to content

Commit

Permalink
more accurate eth bridge docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bengtlofgren committed Sep 30, 2023
1 parent f060434 commit 4500403
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions packages/docs/pages/operators/eth-bridge/relaying.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Callout } from 'nextra-theme-docs'

# Relaying Ethereum Transactions

Relayer commands are found in the `namadar` binary, which at the moment can only be installed from source.
Expand All @@ -18,23 +20,29 @@ More optional flags are available, which can be found by running `namadar valida

Transactions are relayed in batches. The relayer will wait until it has a batch of transactions to relay before sending them to the Ethereum smart contract. This is done to reduce the number of transactions that need to be sent to the Ethereum smart contract, and thus reduce the gas costs.

The relayer can get a "recommended-batch" of transactions to relay by running:
The relayer can get a "recommended-batch" of signed transactions to relay by running:

```bash
namadar ethereum-bridge-pool recommend-batch
```

If this is favourable for the relayer, it can relay the batch by first constructing a proof:
If this is favourable for the relayer, it can construct the proof and relay it to the Ethereum smart contract by running:

```bash
namadar ethereum-bridge-pool construct-proof --batch-file $BATCH_FILE
namadar ethereum-bridge-pool relay-proof --hash-list $HASH_LIST
```

And then relaying it:
<Callout type="info">
As this involves an Ethereum transaction, the `--eth-gas` and `--eth-gas-price` flags are also available here.
</Callout>

Alternatively, the relayer can run the command:

```bash
namadar ethereum-bridge-pool relay-proof --hash-list $HASH_LIST
namadar ethereum-bridge-pool construct-proof --hash-list $HASH_LIST
```

To only construct the proof without relaying it. The proof could then be relayed manually by the relayer.



0 comments on commit 4500403

Please sign in to comment.