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

Property
Value

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.

  1. Set up your project using this command:

This creates a project directory named dogecoin-api-quickstart and initialises a Node.js project within it.

  1. Install Axios using this command: Using npm:

  1. Create a new file and name it index.js. This is where you will make your first call.

  2. Set the ES module "type": "module" in your package.json.

  3. Add the following code to the file (index.js):

    Replace <ACCESS_TOKEN> with your actual access token from GetBlock.

  4. 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.

  1. Set up your project using this command:

  2. Set up a virtual environment to isolate dependencies:

  3. Install the requests library:

  4. Create a new file called main.py and insert the following code:

Replace <ACCESS_TOKEN> with your actual access token from GetBlock.

  1. 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.

Method
Description

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:

See Also

Last updated

Was this helpful?