Node Gate API v2
Minter Node Gate API v2 reference and interactive playground (41 RPC methods): Protobuf3-JSON string typing, GET /v2/estimate_tx_commission/{tx}, and POST /v2/send_transaction.
node-grpc-gateway exposes all 41 RPC methods of Minter Go Node v3.3.0 over HTTP/JSON (:28843/v2) and gRPC (:28842). Every operation, parameter, and response schema is defined in /openapi/minter-gate-node-v2.yaml and listed in the reference below. The Playground runs only public read methods. Use your own Minter node for full Node API access.
Protobuf3-JSON typing and core endpoints
Under protobuf-json rules, uint64 fields and uint256 pip amounts serialize as decimal strings:
code,height,latest_block_height,transaction_count,keep_last_states, and nestedcoin.idarrive as strings (tx.code === "0",nextNonce = BigInt(addr.transaction_count) + 1n). CallingNumber.isInteger(tx.code)on raw Gate JSON evaluates tofalse.- Array query parameters repeat the key name:
?addresses=Mx...&addresses=Mx...,?ids=1&ids=2,?fields=transactions&fields=missed. - Dry-run fee estimation uses
GET /v2/estimate_tx_commission/{tx}, where{tx}is a0x-prefixed signed RLP hex string (the node does not exposePOST /v2/estimate_tx_commission). The response returns the exact fee ingasCoin(pip), accounting forPayload/ServiceDatalength andUSDTE / BIPpool conversion (see paying fees in non-BIP coins). POST /v2/send_transaction({"tx": "0x..."}, alongsideGET /v2/send_transaction/{tx}) is the sole mutating endpoint on the node.
code: "0" response from POST /v2/send_transaction confirms mempool CheckTx validation only. Finality requires committed block execution (DeliverTx) with string code === "0" verified via GET /v2/transaction/{hash} or waitForTransaction. On block execution failure, FailedTx is deducted and the sender's Nonce does not increment.A code: "0" response from POST /v2/send_transaction confirms mempool CheckTx admission only. Poll GET /v2/transaction/{hash} (or call gate.waitForTransaction(txHash)) to verify inclusion in a committed block with code === "0". If DeliverTx fails (code !== "0"), the node deducts FailedTx without incrementing the sender's Nonce.
Node Gate API v2 playground
Canonical Minter Go Node v3.3.0 HTTP binding for EstimateTxCommission (api/v2/service/estimate_tx_commission.go:18). Decodes the 0x-prefixed raw RLP transaction and calculates exact pip commission in gasCoin (accounting for UTF-8 payload <= 10000 bytes at +$0.0002/byte, swap hops, and Smart Gas Coin conversion).
Send 0x01 with chainId = 1 from test-vectors.json; for Testnet chainId = 2 / MNT use 0xf8840102018001a0df80946fac4d18c912343bf86fa7049364dd4e424ab9c088ad78ebc5ac62000094696e766f6963653a746573746e65742d64656d6f8001b845f8431ba00b00e01747dddf76b52bd275d2762fccb161f35e6a7073cf06a4dd0d812cc4d7a0293cd5da784f7fd75cac1bf0c7ac2302932dac8930c2cd1161f632904a85d3d1).uint64) for historical IAVL v0.17.3 state read (0 or omitted = latest committed block).curl -sS "https://gate.minter.network/v2/estimate_tx_commission/{tx}" \
-H "Accept: application/json"{
"type": "object",
"required": [
"commission"
],
"properties": {
"commission": {
"type": "string",
"description": "Exact fee payable in `gasCoin` in atomic `pip` (`10^18 pip = 1 coin`)."
}
}
}Reading nonce, estimating fees, and broadcasting
import {
MinterGateClient,
buildSendTx,
formatPip,
parsePip,
signTx,
} from "@minter-network/tx-core";
import type { MinterWallet } from "@minter-network/tx-core";
// Supply these inputs from your application.
declare const senderWallet: MinterWallet;
const gate = new MinterGateClient(
process.env.MINTER_GATE_URL ?? "https://gate.minter.network/v2",
);
// 1. Next valid nonce = BigInt(transaction_count) + 1n
const nonce = await gate.getNextNonce(senderWallet.address);
// 2. Build and sign Send (0x01) in USDTE (coinId: 1993, paying gas in coinId 1993)
const unsigned = buildSendTx(
{
coinId: 1993,
to: "Mx6fac4d18c912343bf86fa7049364dd4e424ab9c0",
valuePip: parsePip("10"),
},
{
nonce,
chainId: 1,
gasPrice: 1,
gasCoin: 1993,
payload: "invoice:2026-9001",
},
);
const signed = signTx(unsigned, senderWallet.privateKey);
// 3. Dry-run commission quote via GET /v2/estimate_tx_commission/{tx}
const quote = await gate.estimateTxCommission(signed.signedRawTxHex);
console.log("Estimated fee (USDTE):", formatPip(BigInt(quote.commission)));
// 4. Broadcast to mempool (CheckTx) and wait for block execution (DeliverTx)
const mempool = await gate.sendTransaction(signed.signedRawTxHex);
if (mempool.code !== "0") {
throw new Error(`CheckTx rejected (${mempool.code}): ${mempool.log}`);
}
const committed = await gate.waitForTransaction(signed.txHash);
if (committed.code !== "0") {
throw new Error(`DeliverTx failed (${committed.code}); Nonce was not incremented`);
}
console.log("Committed in block:", committed.height, "hash:", committed.hash);