Skip to content

Commit

Permalink
add astria-evm to docs (#24)
Browse files Browse the repository at this point in the history
## Description
<!-- Describe your changes in detail -->
Adds a section to the docs for the Astria EVM on dusk-2

## Motivation and Context
<!-- Why is this change required? What problem does it solve? -->
<!-- If it fixes an open issue, please link to the issue here. -->

## Screenshots (if appropriate):
<!-- Provide before and after screen shots -->

## Types of changes
<!-- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->
- [x] Edits to existing documentation
- [x] Changing documentation structure (relocating existing files,
ensure redirects exist)
- [ ] Stylistic changes (provide screenshots above)
  • Loading branch information
jbowen93 authored Dec 14, 2023
1 parent fa09f67 commit 7106293
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
49 changes: 49 additions & 0 deletions docs/astria-evm/1-overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
sidebar_position: 1
---

# Astria EVM

## Network Information

| Property | Value |
|-----|-----|
| Network Name | dusk-2 |
| RPC URL | <https://rpc.evm.dusk-2.devnet.astria.org> |
| Chain ID | 912559 |
| Currency Symbol | RIA |
| Dora | <https://www.ondora.xyz/network/astria-devnet> |
| Faucet | <https://faucet.evm.dusk-2.devnet.astria.org> |
| Block Scout | <https://explorer.evm.dusk-2.devnet.astria.org/> |

## Adding to Metamask

Follow Metamask's official documentation to [manually add a custom network.](https://support.metamask.io/hc/en-us/articles/360043227612-How-to-add-a-custom-network-RPC#h_01G63GGJ83DGDRCS2ZWXM37CV5)

Your settings should look like the image below

![Metamask](assets/metamask-dusk2.png)

## Using Cast

Set your `ETH_RPC_URL`:

```bash
export ETH_RPC_URL=https://rpc-archive.evm.dusk-2.devnet.astria.org/
```

```bash
export REC_ADDR=<SOME_ADDRESS>
```

```bash
cast balance $REC_ADDR
```

```bash
cast send $REC_ADDR --value 10000000000000000000 --private-key <PRIVATE-KEY>
```

```bash
cast balance $REC_ADDR
```
8 changes: 8 additions & 0 deletions docs/astria-evm/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"label": "The Astria EVM",
"position": 4,
"link": {
"type": "doc",
"id": "astria-evm/overview"
}
}
Binary file added docs/astria-evm/assets/metamask-dusk2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7106293

Please sign in to comment.