Welcome to Joltify
  • Introduction To JOLTIFY
  • Real World Asset Lending
    • Background
    • Business Model In JOLTIFY
      • Tokenize Document To NFTs
      • NFT Ownership Transfer
      • Token Economics
    • Utilization of JOLTIFY In Different lending Environments
    • Project-Based Lending
      • Use Case: A Solar Farm Financed By JOLTIFY
    • Investment Pool Processes and Rules
  • Asset-Based Lending
    • A Commercial Development Asset-Based Loan Within The JOLTIFY network
  • Cash Flow-Based Lending
    • Cash Flow-Based Loan In JOLTIFY To Help A Car Company Grow Its Business
  • Digital Asset Lending
    • Backgound
    • Joltify Digital Asset Lending
    • Market
    • Liquidation
  • Jolt Buy-Back And Burn
    • Jolt Buy-Back And Burn
  • Joltify Techs
    • JOLTIFY Chain Techs
      • Validator Election & Punishment
      • JOLTIFY Chain Bridge
    • Development on Joltify EVM
      • Configuration
      • Token Conversion
      • Development Tutorial
    • Nodes and Validators
      • Requirements
      • Joltify Installer
      • Run a Fullnode
      • Become a Validator
    • Endpoints
    • Connection
  • Joltify Testnet
    • Get Ready
    • Swap & Digital Lending
    • JOLT Buyback-Burn
    • RWA Lending
      • Role Introduction
      • Investor Guideline
      • Notation Explanation
      • Investing Timeline
    • Cross-Chain Bridge
    • Joltify IBC Transfers
  • Joltify Point System
    • Introduction
    • Invitation Mechanism
    • Basic Missions
    • Testnet Missions
    • Mainnet Missions (Coming soon)
    • Discord Role Claim
    • Partner Missions (Coming soon)
  • Term of Use
    • TERMS AND CONDITIONS OF USE FOR BORROWERS AND ISSUERS
    • WEBSITE, JOLTIFY PROTOCOL AND JOLTIFY CHAIN TERMS AND CONDITIONS OF USE
    • PRIVACY POLICY
Powered by GitBook
On this page
  • Introduction
  • 1. Request JOLT Testing Token
  • 2. Token Conversion via Testnet Page
  • 3. (Optional) Token Conversion via Command-Line Client
  1. Joltify Techs
  2. Development on Joltify EVM

Token Conversion

PreviousConfigurationNextDevelopment Tutorial

Last updated 1 year ago

Introduction

To develop on the Joltify EVM co-chain (testnet), developers need to obtain some JOLT tokens and convert them from the Joltify Cosmos chain to the Joltify EVM co-chain.

1. Request JOLT Testing Token

Refer to the to set up your Keplr wallet and obtain JOLT tokens.

2. Token Conversion via Testnet Page

Developers can easily convert JOLT tokens from the Joltify Cosmos chain to the Joltify EVM co-chain using .

Step 1: Navigate to the

Step 2: Connect your Keplr wallet on the Page

Step 3: Convert your JOLT tokens

As shown in the figure above, select the JOLT token and enter the amount of JOLT tokens you wish to convert. The receiver address will be automatically generated to receive the converted JOLT tokens on the Joltify EVM co-chain.

3. (Optional) Token Conversion via Command-Line Client

Developers can also convert JOLT tokens via Joltify command-line client as shown below.

joltify tx evmutil convert-cosmos-coin-to-erc20 [initiator pubkey]  [receiver_0x_address] [amount] [flags]

Step 1: Install cmd-line client and add your account

  • First, clone the project and install install the cmd-line client.

// clone the project 
git clone https://github.com/joltify-finance/joltify_lending.git

// go to the directory
cd joltify_lending

// install `joltify` cmd-line client
make install
  • Second, add your account with your seed phrase.

// run `joltify keys add [name] --recover`
joltify keys add alice --recover

// paste your seed phrase

Step 2: Obtain initiator pubkey

  • First, obtain your encoded pubkey via the following command line:

joltify keys show --from alice --pubkey
// result: {"@type":"/cosmos.crypto.secp256k1.PubKey","key":"ApFl6rqCSA33Mu3pB8w8+k22kvDcVykJoz8yN7+KlVRx"}
  • Then, convert your encoded pubkey (i.e., ApFl6rqCSA33Mu3pB8w8+k22kvDcVykJoz8yN7+KlVRx) into hex string by running the following python script:

import base64

# Base64-encoded public key
pubkey_base64 = "ApFl6rqCSA33Mu3pB8w8+k22kvDcVykJoz8yN7+KlVRx"

# Decode from base64 to binary
pubkey_binary = base64.b64decode(pubkey_base64)

# Convert binary to hex
pubkey_hex = pubkey_binary.hex()

print(pubkey_hex)

// result: 029165eaba82480df732ede907cc3cfa4db692f0dc572909a33f3237bf8a955471
  • Now, you have your initiator pubkey which is 029165eaba82480df732ede907cc3cfa4db692f0dc572909a33f3237bf8a955471.

Step 3: Convert your JOLT

// joltify tx evmutil convert-cosmos-coin-to-erc20 [initiator pubkey]  [receiver_0x_address] [amount] [flags]

joltify tx evmutil convert-cosmos-coin-to-erc20 \
029165eaba82480df732ede907cc3cfa4db692f0dc572909a33f3237bf8a955471 \ 
0xc65B85A4c0F451bB7d283aD6462cB7A144541839 \
100000000000ujolt --from alice --gas 8000000 
documentation
Joltify Token Conversion Page
Token Conversion page
Step 3: Token Conversion (from Joltify cosmos chain to Joltify EVM co-chain)