# Realm: Start Building Your World

By [jona](https://paragraph.com/@jona) · 2021-11-14

---

**TL;DR**: The first contracts are in! Start building your Realm 🏙. Contracts are extensible so anyone can contribute to the ecosystem.

How to take your turn
---------------------

1.  Build
    
2.  Collect
    

City, Farm, Mine, Lumber Mill and Fishing dock
----------------------------------------------

### Build

Use the `build` function

*   Enter your `realmId` (i.e 123)
    
*   Enter queue slot (should be `0` to start)
    

For more details on how queue slots work go to this article: [https://medium.com/@jona.eth/realm-game-mechanics-part-1-ca4085df142](https://medium.com/@jona.eth/realm-game-mechanics-part-1-ca4085df142)

Check the log on the successful transaction to see stats for what you built. Maybe you found a Giant Squid! 🦑

**City** [https://arbiscan.io/address/0x1aEb0bb454E7DD0211601CaA16E6D80c4eD05d2b#writeContract](https://arbiscan.io/address/0x1aEb0bb454E7DD0211601CaA16E6D80c4eD05d2b#writeContract)

**Farm** [https://arbiscan.io/address/0x37dB66a2622D83C0523437e6A808FAE3327C5A3E#writeContract](https://arbiscan.io/address/0x37dB66a2622D83C0523437e6A808FAE3327C5A3E#writeContract)

**Mine** [https://arbiscan.io/address/0x1E33c1f9882a82420B4ea699D548055C3f501956#writeContract](https://arbiscan.io/address/0x1E33c1f9882a82420B4ea699D548055C3f501956#writeContract)

**Fishing Dock** [https://arbiscan.io/address/0x7dD5a31cFC174fbc1540A7D4Cb48f353a92EC23A#writeContract](https://arbiscan.io/address/0x7dD5a31cFC174fbc1540A7D4Cb48f353a92EC23A#writeContract)

**Lumber Mill** [https://arbiscan.io/address/0x6d5ef1aCf9252693b0Fe53Edb0EE5CC33a6E0203#writeContract](https://arbiscan.io/address/0x6d5ef1aCf9252693b0Fe53Edb0EE5CC33a6E0203#writeContract)

Collect
-------

In the `Data` contract, use `collect` function to collect Gold and Religion for your turn after you’ve built your structures. Enter your `realmId` .

Extensible Contracts
--------------------

A key part of Realm is that all contracts are extensible. In other words, anyone can create functionality on top of the existing ecosystem. All metric and resource data is:

*   Owned by Realm
    
*   Tracked
    
*   Spendable
    

By using the `remove` function found in the contracts, you can allow the owner to spend their resources and metrics.

Key Metrics
-----------

Through the`Data` contract, you can create a way to use metrics, such as Gold, to create new entities in the ecosystem.

> For example, someone could create a marketplace where Realm owners can spend their Gold to buy in-game goods, NFTs, loot, etc.

Resources
---------

Each resource-emitting contract has unique resources. All of those resources are available to be used.

> For example, someone could create a refinery or forge where resources are added and refined good are returned.

Are maybe you could create an aquarium with the Manta Rays you find! 🐟

UI interface is coming 🙌
-------------------------

The goal is to create a game-style interface for these contracts. If you or someone you know is looking for a project to contribute to, don’t hesitate to reach out 😃

Contact information can be found below 🔽

Access to Data…Fast
-------------------

I created a quick subgraph using [The Graph](https://thegraph.com/en/) protocol.

You can look through all existing Realms here for now: [https://thegraph.com/legacy-explorer/subgraph/jona/realm](https://thegraph.com/legacy-explorer/subgraph/jona/realm)

I’ll be creating more subgraphs for the contracts above so we can easily query all the contract data. The UI will eventually be using all these subgraphs to display the data in a more user-friendly way.

Realm Contract
--------------

You can find the Realm contract here: [https://arbiscan.io/address/0x4de95c1E202102E22E801590C51D7B979f167FBB](https://arbiscan.io/address/0x4de95c1E202102E22E801590C51D7B979f167FBB)

Want to get involved?
---------------------

Come join our discord

[https://discord.gg/YZa4PWcjh6](https://discord.gg/YZa4PWcjh6)

You can follow us [@realmDAO](https://twitter.com/RealmDao) or [@findjona](https://twitter.com/findjona) on Twitter

---

*Originally published on [jona](https://paragraph.com/@jona/realm-start-building-your-world)*
