Dogecoin

Dogecoin Transactions

Build, sign, broadcast Dogecoin transactions, and compute signature hashes with Zafeguard Dogecoin components.

Dogecoin Transactions

Components for building, signing, and broadcasting Dogecoin transactions, plus signature hash computation. Dogecoin uses P2PKH addresses only. Network access (UTXO fetch, fee estimate, broadcast) is handled by Zafeguard — no RPC URL required.


BROADCAST_DOGECOIN_TRANSACTION

BROADCAST_DOGECOIN_TRANSACTION Workflow Component

Broadcasts a finalized raw transaction to the Dogecoin network and returns the transaction ID.

Config

FieldTypeRequiredDescription
network'mainnet' | 'testnet'YesTarget Dogecoin network

Inputs

FieldTypeDescription
signedTransactionstring (hex)Raw transaction hex to broadcast

Outputs

FieldTypeDescription
txidstringTransaction ID (64-char hex)

SDK example

import { WorkspaceClient, ComponentModule } from '@zafeguard/caller-sdk';
const workspace = new WorkspaceClient({ apiKey: process.env.ZAFEGUARD_API_KEY! });

const result = await workspace.call(ComponentModule.BROADCAST_DOGECOIN_TRANSACTION, {
  signedTransaction: 'deadbeef...',
}).promise();
console.log(result.txid);

BUILD_DOGECOIN_TRANSACTION

BUILD_DOGECOIN_TRANSACTION Workflow Component

Builds an unsigned PSBT with UTXO selection, fee estimation, and sighash generation. Supports optional locktime, OP_RETURN data, change address, and fee deduction. Dogecoin uses P2PKH addresses — no paymentType config is needed.

Config

FieldTypeRequiredDefaultDescription
network'mainnet' | 'testnet'YesTarget Dogecoin network
deductFeebooleanNofalseWhen true, subtracts the estimated fee from amount instead of adding it on top

Inputs

FieldTypeDescription
recipientAddressstringDestination Dogecoin address
amountnumberAmount to send in koinu (1 DOGE = 100,000,000 koinu)
publicKeystring (hex)Sender public key — compressed 33 bytes (66 hex) or uncompressed 65 bytes (130 hex)
locktimestring | nullTransaction locktime as block height string. null to disable
opReturnDatastring | nullHex data to embed in an OP_RETURN output. null to skip
changeAddressstring | nullAddress for change output. null uses the sender's address
feeRatenumber | nullCustom fee rate in koinu/vByte. null falls back to the network's half-hour fee estimate. See Customizing Transaction Fees for rate selection guidance

Outputs

FieldTypeDescription
unsignedTransactionstring (hex)Hex-encoded unsigned PSBT
messageHashesstring[]Array of sighash hex strings, one per input (each 64 hex chars)
estimatedFeenumberEstimated network fee in koinu (using the chosen fee rate)

SDK example

import { WorkspaceClient, ComponentModule } from '@zafeguard/caller-sdk';
const workspace = new WorkspaceClient({ apiKey: process.env.ZAFEGUARD_API_KEY! });

const result = await workspace.call(ComponentModule.BUILD_DOGECOIN_TRANSACTION, {
  recipientAddress: 'D6Y...',
  amount: 100_000_000, // 1 DOGE
  publicKey: '02abc123...',
  locktime: null,
  opReturnData: null,
  changeAddress: null,
  feeRate: null,
}).promise();
console.log(result.unsignedTransaction);
console.log(result.messageHashes);
console.log(result.estimatedFee);

SIGN_DOGECOIN_TRANSACTION

SIGN_DOGECOIN_TRANSACTION Workflow Component

Applies signatures to an unsigned PSBT and produces a finalized raw transaction ready to broadcast.

Inputs

FieldTypeDescription
unsignedTransactionstring (hex)Hex-encoded PSBT from BUILD_DOGECOIN_TRANSACTION
signaturesstring[]Hex-encoded signatures, one per input
publicKeystring (hex)Signer public key — compressed 33 bytes (66 hex) or uncompressed 65 bytes (130 hex)

Outputs

FieldTypeDescription
signedTransactionstring (hex)Finalized raw transaction hex, ready to broadcast

COMPUTE_DOGECOIN_SIGNATURE_HASH

COMPUTE_DOGECOIN_SIGNATURE_HASH Workflow Component

Computes a signature hash for a message using either the standard Dogecoin message format (\x19Dogecoin Signed Message:\n) or raw double-SHA-256 hashing.

Config

FieldTypeRequiredDescription
format'dogecoin-message' | 'raw'Yesdogecoin-message produces a standard signed-message hash. raw produces a double SHA-256 hash

Inputs

FieldTypeDescription
messagestringMessage string to hash

Outputs

FieldTypeDescription
messageHashstring32-byte hash as 64-char hex, ready for external signing

On this page