Dogecoin JSON-RPC Methods
purpose
, change
and address_index
values are considered to belong to the same account. We use the first external P2PKH (purpose = 44) address as the default account identifier.
For a specific seed phrase and path m/44'/3'/0'/0/0
we get account 0 with identifier DTyt9wHTgizR8CwK8HAsWDaoMMxcaRuLWJ
. Its total balance is the sum of all UTXO balances on all addresses with derivation paths:
m/44'/3'/0'/change/address_index
m/44'/3'/1'/0/0
with identifier DBcZSePDaMMduBMLymWHXhkE5ArFEvkagU
. Its total balance is the sum of all UTXO balances on all addresses with derivation paths:
m/44'/3'/1'/change/address_index
amount
of Dogecoin to a single recipientAddress
, optionally including a changeAddress
for the change amount and memo
set as the OP_RETURN value by supporting wallets. The transaction will be signed and broadcast upon user approval.
Object
account
: String
- (Required) The connected account’s first external address.recipientAddress
: String
- (Required) The recipient’s public address.amount
: String
- (Required) The amount of Dogecoin to send, denominated in satoshis (Dogecoin base unit).changeAddress
: String
- (Optional) The sender’s public address to receive change.memo
: String
- (Optional) The OP_RETURN value as a hex string without 0x prefix, maximum 80 bytes.Object
txid
: String
- The transaction id as a hex string without 0x prefix.intentions
.Object
account
: String
- (Required) The connected account’s first external address.intentions
: String[]
- (Optional) Filter what addresses to return, e.g. “payment” or “ordinal”.Array
Object
address
: String
- (Required) Public address belonging to the account.publicKey
: String
- (Optional) Public key for the derivation path in hex, without 0x prefix.path
: String
- (Optional) Derivation path of the address e.g. “m/44’/3’/0’/0/0”.intention
: String
- (Optional) Intention of the address, e.g. “payment” or “ordinal”.m/44'/3'/0'/0/2
is considered to have UTXOs.
Assuming the dapp monitors all returned addresses for balance changes, a new request to getAccountAddresses
is only needed when all UTXOs in provided addresses have been spent, or when all provided receive
addresses or change
addresses have been used.
Object
account
: String
- (Required) The connected account’s first external address.psbt
: String
- (Required) Base64 encoded string of the PSBT to sign.signInputs
: Array
Object
address
: String
- (Required) The address whose private key to use for signing.index
: Integer
- (Required) Specifies which input to sign.sighashTypes
: Integer[]
- (Optional) Specifies which part(s) of the transaction the signature commits to. Default is [1]
.broadcast
: Boolean
- (Optional) Whether to finalize and broadcast the transaction after signing it. Default is false
.Object
psbt
: String
- (Required) The base64 encoded signed PSBT.txid
: String
- (Optional) The transaction ID as a hex-encoded string, without 0x prefix. This must be returned if the transaction was broadcasted.Object
account
: String
- (Required) The connected account’s first external address.message
: String
- (Required) The message to be signed by the wallet.address
: String
- (Optional) The address whose private key to use for signing the message.protocol
: "ecdsa" | "bip322"
- (Optional) Preferred signature type. Default is "ecdsa"
.Object
address
: String
- (Required) The Dogecoin address used to sign the message.signature
: String
- (Required) Hex encoded bytes of the signature, without 0x prefix.messageHash
: String
- (Optional) Hex encoded bytes of the message hash, without 0x prefix.bip122_addressesChanged
event immediately after connection approval of a BIP122 chain.bip122_addressesChanged
event whenever a UTXO is spent or created for a connected account’s addresses.bip122_addressesChanged
events, collect and monitor all addresses for UTXO and balance changes.