BlockX Documentation
  • Introduction
    • BlockX
    • Tokens
    • Transactions
    • Inflation
    • Keys
      • Keyring
      • Multisig
    • Gas Fees
    • Wallet and Accounts
      • Adding BlockX to Metamask
      • Adding BlockX to Keplr
      • Transfers Between Wallets
      • Backup
    • Deploying Smart Contracts
      • Remix
      • Hardhat
  • BlockX White Paper
  • The BCX Token
  • Governance
    • Proposals
      • Proposal Tips
      • Submit a Proposal
    • Community Pool
    • Chain Parameters
  • Technical Concepts
    • Architecture
    • Accounts
    • Chain ID
    • Encoding
    • Pending State
  • dApp Developers
    • Establishing Connections
    • BlockX Clients
    • Guides
      • Wallet Integration
      • Smart Contract Incentive Registration
      • Tracing Transactions
      • Query Balances
    • Localnet
      • Single-node
      • Multi-node
    • Testnet
      • Testnet Commands
    • Ethereum JSON-RPC
      • JSON-RPC Server
      • Running the Server
      • Namespaces
      • JSON-RPC Methods
      • Events
    • Tendermint RPC
  • Protocol Developers
    • Modules
      • auth
        • Concepts
        • State
        • AnteHandlers
        • Keepers
        • Vesting
        • Parameters
        • Client Auth
      • bank
        • State
        • Keepers
        • Messages
        • Events
        • Parameters
        • Client
      • crisis
        • State
        • Messages
        • Events
        • Parameters
        • Client
      • distribution
        • Concepts
        • State
        • Begin Block
        • Messages
        • Hooks
        • Events
        • Parameters
        • Client
      • epochs
        • Concepts
        • State
        • Events
        • Keepers
        • Hooks
        • Queries
        • Future Improvements
      • erc20
        • Concepts
        • State
        • State Transitions
        • Transactions
        • Hooks
        • Events
        • Parameters
        • Clients
      • evidence
        • Concepts
        • State
        • Messages
        • Events
        • Parameters
        • BeginBlock
        • Client
      • evm
        • Concepts
        • State
        • State Transitions
        • Transactions
        • ABCI
        • Hooks
        • Events
        • Parameters
        • Client
      • feemarket
        • Concepts
        • State
        • Begin block
        • End block
        • AnteHandlers
        • Keeper
        • Events
        • Client
        • Future Improvements
        • Parameters
      • feesplit
        • Concepts
        • State
        • State Transitions
        • Transactions
        • Hooks
        • Events
        • Parameters
        • Clients
        • Future Improvements
      • gov
        • Concepts
        • State
        • Messages
        • Events
        • Future Improvements
        • Parameters
        • Client
      • incentives
        • Concepts
        • State
        • State Transitions
        • Transactions
        • Hooks
        • Events
        • Parameters
        • Clients
      • ibc-core
      • inflation
        • Concepts
        • State
        • Hooks
        • Events
        • Parameters
        • Clients
      • slashing
        • Concepts
        • State
        • Messages
        • BeginBlock
        • Hooks
        • Events
        • Staking Tombstone
        • Parameters
        • CLI
      • staking
        • State
        • State Transitions
        • Messages
        • Begin-Block
        • End-Block
        • Hooks
        • Events
        • Parameters
        • Client
      • upgrade
        • Concepts
        • State
        • Events
        • Client
        • Resources
      • vesting
        • Concepts
        • State
        • State Transitions
        • Transactions
        • AnteHandlers
        • Events
        • Clients
    • Module Accounts
    • IBC Channels
    • Ethermint API
  • Validators
    • Quick Start
    • Telemetry
    • Security
      • Tendermint KMS
      • Tendermint KMS + Ledger
      • Validator Security Checklist
      • Validator Backup
    • Snapshots, Archive Nodes
    • FAQ
  • Delegators
    • Staking Process
  • Tokenomics
  • Block Explorers
Powered by GitBook
On this page
  • CLI
  • gRPC
  1. Protocol Developers
  2. Modules
  3. erc20

Clients

CLI

Find below a list of blockxd commands added with the x/erc20 module. You can obtain the full list by using the blockxd -h command. A CLI command can look like this:

blockxd query erc20 params

Queries

Command
Subcommand
Description

query erc20

params

Get erc20 params

query erc20

token-pair

Get registered token pair

query erc20

token-pairs

Get all registered token pairs

Transactions

Command
Subcommand
Description

tx erc20

convert-coin

Convert a Cosmos Coin to ERC20

tx erc20

convert-erc20

Convert a ERC20 to Cosmos Coin

Proposals

The tx gov submit-proposal commands allow users to query create a proposal using the governance module CLI:

register-coin

Allows users to submit a RegisterCoinProposal.

blockxd tx gov submit-proposal register-coin [metadata] [flags]

register-erc20

Allows users to submit a RegisterERC20Proposal.

blockxd tx gov submit-proposal register-erc20 [erc20-address] [flags]

toggle-token-conversion

Allows users to submit a ToggleTokenConversionProposal.

blockxd tx gov submit-proposal toggle-token-conversion [token] [flags]

param-change

Allows users to submit a `ParameterChangeProposal``.

blockxd tx gov submit-proposal param-change [proposal-file] [flags]

gRPC

Queries

Verb
Method
Description

gRPC

blockx.erc20.v1.Query/Params

Get erc20 params

gRPC

blockx.erc20.v1.Query/TokenPair

Get registered token pair

gRPC

blockx.erc20.v1.Query/TokenPairs

Get all registered token pairs

GET

/blockx/erc20/v1/params

Get erc20 params

GET

/blockx/erc20/v1/token_pair

Get registered token pair

GET

/blockx/erc20/v1/token_pairs

Get all registered token pairs

Transactions

Verb
Method
Description

gRPC

blockx.erc20.v1.Msg/ConvertCoin

Convert a Cosmos Coin to ERC20

gRPC

blockx.erc20.v1.Msg/ConvertERC20

Convert a ERC20 to Cosmos Coin

GET

/blockx/erc20/v1/tx/convert_coin

Convert a Cosmos Coin to ERC20

GET

/blockx/erc20/v1/tx/convert_erc20

Convert a ERC20 to Cosmos Coin

PreviousParametersNextevidence

Last updated 2 years ago