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

# Arguments

Structure Type Description
coin string the name of the coin the user desires to request for the transaction
tx_hash string hash of the transaction

# Response

Structure Type Description
tx_hex BytesJson raw bytes of signed transaction

# Examples:

# Request (RICK)
curl --url "http://127.0.0.1:7783" --data "{
    \"mmrpc\": \"2.0\",
    \"method\":\"get_raw_transaction\",
    \"userpass\":\"$userpass\",
    \"params\":{\"coin\": \"RICK\",
    \"tx_hash\": \"989360b0225b4e05fa13643e2e306c8eb5c52fa611615dfd30195089010b1c7b\"},
    \"id\":1
}"
# Request (ETH)
curl --url "http://127.0.0.1:7783" --data "{
    \"mmrpc\": \"2.0\",
    \"method\":\"get_raw_transaction\",
    \"userpass\":\"$userpass\",
    \"params\":{\"coin\": \"ETH\",
    \"tx_hash\": \"0x529aca42b6b592cca5d400832c83854135b924cada6e1c41b85f27fa0a0984b9\"},
    \"id\":1
}"

# Error Types

Structure Type Description
NoSuchCoin string The specified coin was not found or is not activated yet
InvalidHashError string The specified hash is not valid
Transport string The request was failed due to a network error
HashNotExist string The specified hash is not exist
InternalError string The request was failed due to an Komodo DeFi Framework internal error