Dogecoin (DOGE)
GetBlock provides fast and reliable access to Dogecoin nodes via JSON-RPC API. Connect to the Dogecoin network without running your own infrastructure.
Overview
Dogecoin is a decentralized, peer-to-peer cryptocurrency that was created in December 2013 as a lighthearted alternative to Bitcoin. Originally started as a joke based on the popular "Doge" Shiba Inu meme, Dogecoin has grown into a legitimate digital currency with a vibrant, philanthropic community.
Key Features
Fast Transactions: 1-minute block time (vs Bitcoin's 10 minutes)
Low Fees: Transaction fees are significantly lower than Bitcoin
Inflationary Supply: No maximum supply cap, with ~5 billion new DOGE mined annually
Scrypt Algorithm: Uses Scrypt proof-of-work, merged mining with Litecoin
Active Community: Large, engaged community focused on tipping and charitable giving
Wide Adoption: Accepted by many merchants and supported by major exchanges
Network Information
Network Name
Dogecoin Mainnet
Currency Symbol
DOGE
Block Time
~1 minute
Consensus
Proof of Work (Scrypt)
RPC Port
22555
P2P Port
22556
Address Prefix
D (mainnet)
Smallest Unit
1 Koinu = 0.00000001 DOGE
Quickstart
In this section, you will learn how to make your first call with either:
Axios
Python
Quickstart with Axios
Before you begin, you must have already installed npm or yarn on your local machine. If not, check out npm or yarn.
Set up your project using this command:
Install Axios using this command: Using npm:
Create a new file and name it
index.js. This is where you will make your first call.Set the ES module
"type": "module"in yourpackage.json.Add the following code to the file (
index.js):Replace
<ACCESS_TOKEN>with your actual access token from GetBlock.Run the script:
The sequence number and authentication key log in your console like this:
Quickstart with Python and Requests
Before you begin, you must have installed Python and Pip on your local machine.
Set up your project using this command:
Set up a virtual environment to isolate dependencies:
Install the requests library:
Create a new file called
main.pyand insert the following code:
Run the script:
Base URL
Supported Network
Mainnet
Available API Interface
JSON RPC
Blockbook(WS)
REST
Blockbook(REST)
Available API Methods
GetBlock provides access to standard Dogecoin Core JSON-RPC methods.
createrawtransaction
Creates a raw transaction
decoderawtransaction
Decodes a raw transaction
getblock
Returns block data for a given hash
getblockcount
Returns the current block height
getblockhash
Returns block hash at given height
getconnectioncount
Returns number of peer connections
getdifficulty
Returns the current mining difficulty
gethashespersec
Returns hash rate per second
getinfo
Returns general node information
getmininginfo
Returns mining-related information
getrawtransaction
Returns raw transaction data
gettransaction
Returns detailed transaction info
gettxout
Returns details about an unspent output
signmessage
Signs a message with a private key
signrawtransaction
Signs a raw transaction
validateaddress
Validates a Dogecoin address
verifymessage
Verifies a signed message
Support
For technical support and questions:
Support: [email protected]
See Also
Last updated
Was this helpful?