Metadium Tech (ENG)
  • Navigation
    • Metadium Overview
    • Metadium Tech (ENG)
    • Metadium Tech (KOR)
  • METADIUM Info
    • Architecture
    • Network Structure
    • Consensus
    • Smart Contract
    • DID
    • EIP-1559
    • Fee Delegation
    • Roadmap
  • Developer
    • Node Start
      • gmet Binary
      • gmet Guide
      • Connect Node
      • Account
    • Install Node
      • End Node
        • Requirements
        • Install Gmet
      • BP Node
        • Requirements
        • Install Gmet
  • Smart Contract
    • Solidity
    • Precompiled Contracts
    • Sample Contracts
  • API Reference
    • API Info
    • Json-RPC
    • Explorer API
      • Accounts
      • Blocks
      • Contracts
      • Transactions
      • Event logs
      • Tokens
  • Wallet
    • Wallet Info
    • Fee
  • FAQ
  • Articles of Foundation
Powered by GitBook
On this page
  • Connect Node
  • Node Settings
  1. Developer
  2. Node Start

Connect Node

Connect Node

To connect via the gmet RPC web server installed locally, follow the steps below:

gmet attach http://localhost:8588

To connect using the gmet IPC file installed locally, follow these steps:

gmet attach $GMET_HOME/gmet.ipc

After downloading the binary and extracting it in $GMET_HOME, you can find a shell script file named gmet.sh under the bin directory. The method to connect to the node via IPC file using gmet.sh is as follows:

$GMET_HOME/bin/gmet.sh console

Node Settings

When using gmet.sh, it is possible to pre-set node launch options by creating a file called.rc {data_folder}.

PORT=8588
DISCOVER=1        # 1 for enable discovery mode, 0 for disable discovery mode
TESTNET=1         # 1 for Testnet or remove this line for Mainnet
SYNC_MODE=full
GMET_OPTS="--rpc.allow-unprotected-txs"

Setting up as described above and running gmet, gmet will result in being executed with the following command line options:

gmet --http.port 8588 --meta-testnet --syncmode full --rpc.allow-unprotected-txs 
Previousgmet GuideNextAccount

Last updated 1 year ago