createrawtransaction - Dogecoin
Example code for the createrawtransaction JSON-RPC method. Complete guide on how to use createrawtransaction JSON-RPC in GetBlock Web3 documentation.
This method creates a raw transaction spending given inputs.
Parameters
inputs
array
Yes
Array of transaction inputs.
outputs
object
Yes
Object with addresses and amounts.
Input Object Structure
{
"txid": "transaction_id",
"vout": 0
}Output Object Structure
{
"address": amount
}Request
Response
Response Parameters
result
string
Hex-encoded raw transaction (unsigned).
error
null
Error object (null if no error).
id
string
Request identifier.
Use Case
The createrawtransaction method is essential for:
Building custom transactions
Payment systems
Batch transaction creation
Multi-signature workflows
Exchange systems
Error Handling
-8
Invalid parameter
Invalid inputs or outputs format.
-5
Invalid address
Invalid Dogecoin address.
403
Forbidden
Missing or invalid ACCESS-TOKEN.
-32700
Parsed error
Syntax error
Last updated
Was this helpful?