Tags: coinbase/mesh-specifications
Tags
feat: All account balances (#128) * Add AllAccountBalances API and fix URL naming consistency This commit introduces two key enhancements: 1. AllAccountBalances API: - Added POST /account/all-balances endpoint - Consolidates multiple sub-account balance queries into single request - Ensures consistent block context for all balances - Added AllAccountBalancesRequest, AllAccountBalancesResponse, and AccountBalanceWithSubAccount schemas - Removed root-level metadata from AllAccountBalancesResponse (metadata belongs to individual sub-accounts) 2. URL Naming Consistency: - Changed /construction/preprocess_operations to /construction/preprocess-operations - Maintains kebab-case convention across all Rosetta endpoints - Updated both endpoint path and description references Benefits: - Reduced network latency (single request vs multiple) - Improved data consistency (same block context) - Backward compatible (existing /account/balance unchanged) - Optional implementation for Rosetta servers Files modified: - api.yaml: Added new endpoint and schemas, fixed URL naming - api.json: Regenerated specification bundle * Remove SubAccountIdentifier field from AccountBalanceWithSubAccount schema - Remove sub_account_identifier field from AllAccountBalancesResponse - Update descriptions to reflect that balance identification relies on balance_type and metadata - Simplifies API by removing redundant field that is rarely used in practice
Add ConstructionPreprocessOperations API endpoint (#127) This endpoint provides fallback parsing for high-level transaction construction operations when local OperationSelector doesn't support certain construct operations. Features: - Input format matches TransactionConstructOpInput from chainstdio - Output format matches ParseTransactionConstructOp return values - Optional API (servers can return 501 Not Implemented) - Full OpenAPI specification with request/response schemas - Maintains compatibility with existing operation parsing workflows Endpoint: POST /construction/preprocess_operations Request: ConstructionPreprocessOperationsRequest Response: ConstructionPreprocessOperationsResponse
PreviousNext