docs
  • Introduction
  • Getting started
    • Meet the network using CLI
    • Your first transaction
    • Run smart contract
    • Run your own node
    • Ledger Support
  • Architecture
    • Dnode
    • Dncli
    • XFI & Other coins
    • Fees & Gas
    • Addresses
  • Staking
    • Delegate sXFI & LPT
    • Become a validator
    • Rewards & Inflation
    • Slashing
    • More
  • Move VM
    • Modules
    • Scripts
    • Script Arguments
    • Standard Library
    • Events
    • Resources
    • Move Book
    • More
  • Oracles
    • Query Price
  • PegZone
    • Deposit
    • Usage
    • Withdraw
  • Useful Resources
    • Dfinance Website
    • Wallet
    • Move Book
    • Block Explorer
    • Swagger UI
    • Community
    • VSCode Move IDE
Powered by GitBook
On this page
  • Using wallet
  • By sending transaction
  • Contracts

Was this helpful?

  1. PegZone

Deposit

PreviousPegZoneNextUsage

Last updated 4 years ago

Was this helpful?

In this documentation explained how to deposit testnet ropsten ETH from your account to dfinance.

Important: use only ropsten ETH, as all mentioned contracts deployed in ropsten ethereum testnet, and this is experimental software, you can lose your ETH.

Using wallet

Required:

  • Ropsten ETH - request from some known faucet, for example, use this .

Go to portal and recover/create an account.

Then click on "Transfer" button to transfer ETH from your Metamask account to dfinance blockchain.

After 100+ confirmations you ETH will appear on your account in dfinance.

By sending transaction

Using you can write a script in a preferred language, or using , or even use any other wallet with support of transaction encoding.

Just send an ethereum transaction to Bridge contract address with ETH and signature/parameters of in Bridge contract.

Parameters of exchange function:

  • _currencyId - you can query from contract, or use 0 for ETH.

  • _recipient - your "wallet1..." address converted in right format. how convert address in the same repository.

  • _amount - amount of coins/tokens.

Contracts

Currenty deployed Bridge contract can be found by address: .

Metamask
one
wallet
eth-peg-zone
web3
exchange function
Example
0xE2FD9D943FFC4adD2F5952025f32E9a984B3637b