LogoLogo
  • ZENLAND DOCS
  • Getting started
    • What Is Smart Contract
    • What Is Network
    • What Is Explorer
    • What is Token
    • How Zenland works
  • FUNDAMENTALS
    • Zenland Contract
      • Contractee
      • Contractor
      • Contract Name
      • Contract Details
      • Agreed Amount
      • Contract Due Date
      • Buyer Protection Time
      • Zenland Fee
      • Zenland Fee Payer
    • Contract Chat
    • Contract Address
    • Custom Agent
    • Web3 Store
    • User Reputation
    • ZENF Token
    • Zenland Wallet
  • Contract Actions
    • What is Contract Action
    • Approve
    • Deploy
    • Transfer
    • Complete
    • Release
    • Dispute
    • Invite an Agent
    • Sync
    • Escrow user errors
  • contract states
    • What is Contract State
    • Draft State
    • Deployed State
    • Active State
    • Fulfilled State
    • Executed State
    • Disputed State
  • Smart contract types
    • Default Escrow Contract
    • Pre-Approved Contract
  • Extra
    • Tokenomics
    • Roadmap
    • Changelog
    • Contributors
Powered by GitBook
On this page

Was this helpful?

  1. Getting started

How Zenland works

PreviousWhat is TokenNextZenland Contract

Last updated 2 years ago

Was this helpful?

Zenland is the first smart contract platform for safe and simple online deals. This guide will walk you through all the steps to get your first smart contract done.

Below are your example case details:

Contract terms
Details

Contract participants

X, the current owner (the seller), Y, the future owner (the buyer)

Object of sale

"zen.land" domain name

Due date

April 29, 2022

Selected network

Rinkeby Test Network

Agreed amount

575 USDT (Compound)

Buyer protection time

12 hours

Zenland fee

Y agrees to pay a fee of $9.9

With the details of the case in mind, let's follow the steps.

STEP 1: User Y logs in (via Metamask browser extension).

On their first logins, users receive a default "Anonymous" username. The profile address displayed is a crypto wallet address they use to sign in. No personal information like an email address or a username is asked. The default information can be customized later on from the Profile Settings.

STEP 2: User Y creates a Zenland contract.

STEP 3: User Y deposits $9.9 to the internal wallet to pay a Zenland fee.

STEP 4: User X logs in, reads the contract terms, and approves it.

STEP 7: User X transfers the domain name to user Y and confirms the process completion.

The contract executes and the funds are sent to user X's crypto wallet address specified in the contract terms.

STEP 9: User X checks if the funds were released by user Y.

User X checks the specified crypto wallet address and notices funds added to it. X leaves a 5-star review and both X and Y are satisfied with how their contract agreement has ended.

That's it!

Zenland test contract address: 0xEe178398562A277D6D47849fD4d89f4453A1C938

Here is a snapshot of the agreed amount of 575 USDT sent [IN] and released [OUT] from the contract described in our case together with the two wallet addresses of the sender and the receiver. You can also see that all the transactions are timestamped to see when they occur.

Important!

Please note that test networks are for test only and their tokens have no real-world value as mainnet ETH or other altcoins. They exist so that anyone can try smart contracts to see how they work. Other than selecting the test network, the actual smart contract process follows the same steps as described above.

The New Contract Form requires both users' crypto wallet addresses so the X has sent the wallet address to the Y. They have also decided how and when the domain name is transferred to Y's registrar account. The parties agreed on the , and the tokens sent via the selected network.

Note that in cases when the fee is split 50/50, both parties must have a balance not lower than the sum to be paid by each party. In our case, only Y deposits the sum to pay the (as agreed).

The login is the same as seen in STEP 1. The new contract can be found under the Contracts on the dashboard. signs the deal between the current and the future owners of the domain name.

STEP 5: User Y (publishes) the contract to the selected blockchain network.

At this point, the contract is given its which is the exact location of the contract data in the blockchain database.

STEP 6: User Y (pays) the agreed amount of tokens into the contract.

The of $575 USDT(Compound) is now guarded by the contract until the contract conditions are met. The contract is now active and the due date countdown has started.

Notified, user X sees that user Y has sent funds to the contract and starts the domain transfer process. Once , X writes an order completion message to Y and waits for the funds to be released.

STEP 8: User Y checks the delivery and the funds from the contract.

You've just closed your first Zenland contract. If you are curious and want to see what kind of contract data is stored on the blockchain, you can use an official Etherscan to find the contract above.

Zenland test contract URL:

buyer protection time
Zenland fee
Approve action
deploys
contract address
transfers
agreed amount
complete
releases
blockchain explorer
https://rinkeby.etherscan.io/address/0xEe178398562A277D6D47849fD4d89f4453A1C938#tokentxns