Costruisci su Dyneros
RPC & API
L'endpoint JSON-RPC di Dyneros Chain è completamente compatibile con Ethereum. Qualsiasi strumento, libreria o SDK che supporta Ethereum funzionerà immediatamente.
Endpoint
Mainnet RPChttps://mainnet.dyneros.com
ProtocolJSON-RPC 2.0 over HTTPS
WebSocketwss://mainnet.dyneros.com
Chain ID24589
Metodi Supportati
Tutti i metodi JSON-RPC Ethereum standard sono supportati:
| Method | Descrizione |
|---|---|
| eth_chainId | Restituisce il chain ID (0x600D) |
| eth_blockNumber | Numero di blocco corrente |
| eth_getBalance | Saldo DYN nativo dell'indirizzo |
| eth_call | Esegui chiamata contratto in sola lettura |
| eth_sendRawTransaction | Trasmetti transazione firmata |
| eth_getTransactionReceipt | Ottieni risultato transazione per hash |
| eth_getLogs | Interroga log eventi con filtro |
| eth_estimateGas | Stima gas per transazione |
| eth_gasPrice | Prezzo gas attuale della rete |
| eth_getCode | Ottieni bytecode contratto all'indirizzo |
| eth_getStorageAt | Leggi slot di storage contratto |
| eth_subscribe | Sottoscrivi eventi via WebSocket |
Esempi Rapidi
Ottieni chain ID (curl)
curl -X POST https://mainnet.dyneros.com \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}'
# Returns: {"result":"0x600d"}
Ottieni saldo (curl)
curl -X POST https://mainnet.dyneros.com \
-H "Content-Type: application/json" \
-d '{
"jsonrpc":"2.0",
"method":"eth_getBalance",
"params":["0xYourAddress","latest"],
"id":1
}'
ethers.js (v6)
import { ethers } from "ethers";
const provider = new ethers.JsonRpcProvider("https://mainnet.dyneros.com");
const network = await provider.getNetwork();
// { chainId: 24589n, name: "unknown" }
viem
import { createPublicClient, http, defineChain } from "viem";
const dynerosChain = defineChain({
id: 24589,
name: "Dyneros Chain",
nativeCurrency: { name: "DYN", symbol: "DYN", decimals: 18 },
rpcUrls: {
default: { http: ["https://mainnet.dyneros.com"] }
},
blockExplorers: {
default: { name: "Dyneros Explorer", url: "https://explorer.dyneros.com" }
}
});
const client = createPublicClient({
chain: dynerosChain,
transport: http()
});
const blockNumber = await client.getBlockNumber();
WebSocket subscription
const provider = new ethers.WebSocketProvider("wss://mainnet.dyneros.com");
// Subscribe to new blocks
provider.on("block", (blockNumber) => {
console.log("New block:", blockNumber);
});
// Subscribe to token transfers
const dusd = new ethers.Contract(
"0xfa69e3c56aCe1f93C6E332a656318Ba0Cc4d7e57",
["event Transfer(address indexed from, address indexed to, uint256 value)"],
provider
);
dusd.on("Transfer", (from, to, amount) => {
console.log(`Transfer: ${ethers.formatEther(amount)} dUSD → ${to}`);
});
Si applicano limiti di velocità per IP. Per applicazioni ad alto volume o accesso dedicato, contatta il team Dyneros.