diff --git a/CMakeLists.txt b/CMakeLists.txt index 63ce0a7b..017d2deb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -93,6 +93,7 @@ target_sources(clio PRIVATE src/rpc/handlers/LedgerRange.cpp # Transaction src/rpc/handlers/Tx.cpp + src/rpc/handlers/TransactionEntry.cpp src/rpc/handlers/AccountTx.cpp # Dex src/rpc/handlers/BookOffers.cpp diff --git a/src/rpc/Handlers.h b/src/rpc/Handlers.h index f6c2feb2..078ac3e9 100644 --- a/src/rpc/Handlers.h +++ b/src/rpc/Handlers.h @@ -62,6 +62,9 @@ doLedgerRange(Context const& context); Result doTx(Context const& context); +Result +doTransactionEntry(Context const& context); + Result doAccountTx(Context const& context); diff --git a/src/rpc/RPC.cpp b/src/rpc/RPC.cpp index 891e1f5a..02b790ed 100644 --- a/src/rpc/RPC.cpp +++ b/src/rpc/RPC.cpp @@ -119,7 +119,7 @@ static std::unordered_map> {"server_info", &doServerInfo}, {"unsubscribe", &doUnsubscribe}, {"tx", &doTx}, - }; + {"transaction_entry", &doTransactionEntry}}; static std::unordered_set forwardCommands{ "submit",