Oracle Database View Definitions for Wholesale CBDC
You can use the rich history database to retrieve account transaction history and resolve incorrect balances in multiple transactions that occur in the same block.
You can use the
GetAccountTransactionHistoryWithFiltersFromRichHistDB
API to fetch account transaction history from the rich history database. When you pass the custom_endpoint
and bearer_token
parameters to the method, the account transaction history is retrieved from the rich history database or the state database.
To retrieve transaction history from the rich history database, you must be
running Oracle Autonomous Database with Oracle REST Data Services (ORDS) and OAuth
enabled.
You might see the following error.
Error: ORA-20049: Cannot alter the URL mapping while the schema is enabled. Try disabling the schema first.
This error occurs because the database schema is enabled and thus cannot be mapped to the different alias that is specified in the .env
file.
To work around this behavior, complete the following steps.
- Use the same alias name that was used previously, or check the REST services in the database for the schema alias.
- Disable the database schema and run the script again. For more information, see Oracle REST Data Services (ORDS) : Using SQL Developer.