On this page

latest contributor to this doc

Last Edit:

@smk762

Komodo DeFi Framework Method: Get Raw Transaction

The get_raw_transaction method takes coin and tx_hash as input, and returns the full signed raw transaction hex for any transaction that is confirmed or within the mempool.

ParameterTypeRequiredDescription
coinstringThe name of the coin for which you want to request the transaction.
tx_hashstringHash of the transaction.

ParameterTypeDescription
tx_hexstringBytes of signed transaction in string format.

Get Raw Transaction (DOC)

POST
get_raw_transaction
{
  "mmrpc": "2.0",
  "method": "get_raw_transaction",
  "userpass": "RPC_UserP@SSW0RD",
  "params": {
    "coin": "DOC",
    "tx_hash": "989360b0225b4e05fa13643e2e306c8eb5c52fa611615dfd30195089010b1c7b"
  },
  "id": 1
}

Get Raw Transaction (ETH)

POST
get_raw_transaction
{
  "mmrpc": "2.0",
  "method": "get_raw_transaction",
  "userpass": "RPC_UserP@SSW0RD",
  "params": {
    "coin": "ETH",
    "tx_hash": "0x529aca42b6b592cca5d400832c83854135b924cada6e1c41b85f27fa0a0984b9"
  },
  "id": 1
}

ParameterTypeDescription
NoSuchCoinstringThe specified coin was not found or is not activated yet
InvalidHashErrorstringThe specified hash is not valid
TransportstringThe request was failed due to a network error
HashNotExiststringThe specified hash does not exist
InternalErrorstringThe request was failed due to a Komodo DeFi Framework API internal error