ChainUp Cloud
中文
中文
  • 👋欢迎来到 ChainUp Cloud
  • INTRODUCTION
    • 🔎Chainup Cloud API 快速入门
    • 🕹️ChainUp Cloud 产品
      • ⛓️区块链 API
      • ⚙️全节点服务
      • ⚒️专用节点
      • 👥白标验证器
      • ⛲质押
      • 🍧HashKing 聚合器
      • 💌ChainNova
    • 👷对于开发人员
      • ⛓️使用区块链 API
      • ⚒️部署专用节点
      • ☁️通过 IPFS API 使用分布式存储
    • 👾对于投资者
      • ⛲如何质押以太坊ETH?
      • 👥运行你自己的验证器
  • ChainUpCloud 开放 API
    • 质押奖励 API
      • 验证器每日奖励
      • 验证者总奖励
      • 云验证者结算 EL 奖励
    • ETH 质押 API
      • 广播质押交易
      • 创建验证器
      • 获取验证者
      • 通过 Pubkeys 退出验证器
    • 错误代码
  • 🏷️NFT API
    • 传输 API
    • NFT 元数据访问
    • 所有权和代币门控
  • 区块链 API
    • 📚概述
      • 为您的项目创建区块链 API
      • 仪表板统计信息
    • 💎以太坊
      • JSON-RPC 方法
      • WebSocket 流
    • TON
      • HTTP API
      • 索引器 API
    • 🪙Bitcoin
      • JSON-RPC 方法
    • 📂Filecoin
      • JSON-RPC 方法
      • 公共 API
    • 🍡Polkadot
      • JSON-RPC 方法
      • WebSocket 流
    • ⚪Litecoin
      • JSON-RPC methods
    • 🚃Near
      • JSON-RPC methods
    • 💎Ethereum Beacon
      • JSON-RPC methods
    • ⛽Polygon (Matic)
      • JSON-RPC methods
      • WebSocket stream
    • 💠Binance Smart Chain - BSC
      • HTTP Rest methods
      • WebSocket stream
    • 🚔BNB
      • JSON-RPC methods
      • WebSocket stream
    • 🌞Tron
      • JSON-RPC methods
    • 🪨Ethereum Classic - ETC
      • JSON-RPC methods
    • 🥀Bitcoin Cash - BCH
      • JSON-RPC methods
    • 🦃Kusama
      • JSON-RPC methods
      • WebSocket stream
    • 🍆EOS
      • JSON-RPC methods
    • 👻Fantom
      • JSON-RPC methods
    • 〰️Aptos
      • HTTP Methods
    • 🌤️Heco
      • JSON-RPC methods
    • 🏔️Avalanche
      • JSON-RPC methods
    • 🔑Cosmos
      • HTTP Methods
    • 📚Omni
      • JSON-RPC methods
    • ☸️Arbitrum
      • JSON-RPC methods
    • 💯Dogecoin
      • JSON-RPC methods
    • 🎷Optimism
      • JSON-RPC methods
    • 🏺Dash
      • JSON-RPC methods
    • 🌄Zcash
      • JSON-RPC methods
    • 💣XRP
      • JSON-RPC methods
    • 🛞Base
      • JSON-RPC methods
    • Scroll
      • JSON-RPC methods
    • 🧫Qtum
      • JSON-RPC methods
    • ⚖️Solana
      • JSON-RPC methods
      • Solana 节点常见问题解答 FAQ
      • Websocket Stream
  • Staking
    • 📘概述
    • 💎以太坊质押
      • ⛲如何质押以太坊?
      • 📙如何生成存款数据?
    • 📏使用 SSV 在以太坊上质押
    • 🖌️注册 SSV 操作员
    • 🖌️如何委托给 SSV 集群?
    • 在 Cosmos 上质押
    • 🍆在 EOS 上质押
    • 📂在 FIL 上质押
    • 🕶️在 ZILLIQA 上质押
  • Validator Node
    • 📗概述
    • 💎以太坊
      • 运行验证者节点
      • 如何创建验证器密钥?
  • RESOURCES
    • 📕FAQ 常见问题解答介绍
      • ⛓️区块链 API
      • ⚒️专用节点
    • 🗳️支持
    • API 参考
Powered by GitBook
On this page
  • Dogecoin RPC
  • Example RPC

Was this helpful?

  1. 区块链 API
  2. Dogecoin

JSON-RPC methods

PreviousDogecoinNextOptimism

Was this helpful?

Dogecoin RPC

You can review the official .

Example RPC

curl https://api.chainup.net/dogecoin/mainnet/<YOUR_API_KEY> \
-X POST \
-H 'content-type: application/json' \
-H "CONSISTENT-HASH: true" \
--data '{"jsonrpc":"2.0","method":"getpeerinfo","params":[],"id":32}'
```javascript
const axios = require('axios');
//npm install axios if you don have the module installed`

let options = {
url: "https://api.chainup.net/dogecoin/mainnet/<YOUR_API_KEY>",
method: "post",
headers:
{
"content-type": "application/json",
"CONSISTENT-HASH": "true"
},
body: JSON.stringify({"jsonrpc":"2.0","method":"getpeerinfo","params":[],"id":1})
};

request(options, (error, response, body) => {
if (error) {
console.error('An error has occurred: ', error);
} else {
console.log('Post successful: response: ', body);
}
});
```
```python
import requests
import json

headers = {"content-type": "application/json",
            "CONSISTENT-HASH": "true" } 
payload = json.dumps({
"id": 1,
"jsonrpc": "2.0",
"method": "getpeerinfo",
"params": []
})
r = requests.post(url="https://api.chainup.net/dogecoin/mainnet/<YOUR_API_KEY>", headers=headers, data=payload)
if r.status_code == 200:
print("Post successful: response: ", r.content)
else:
print("An error has occurred: ", r.status_code)
```
💯
Dogecoin API documentation HERE