cardano-foundation / cardano-foundation/cardano-rosetta-java
Verify all AccountIdentifier types are retrievable
- Dominant language
- Java
- Stars
- 26
- Forks
- 15
- Avg merge
- 5d 3h
- Merged PRs (30d)
- 2
Description
### Context & versions
cardano-rosetta-java 1.3.x - Account API
### Problem
Per Rosetta best practices, any AccountIdentifier returned in a block must be usable as input to `/account/balance`. Need to verify all Cardano address types comply with this requirement.
### Current status
- ✅ Stake address: Confirmed working
- ✅ Payment/base address: Confirmed working
- ❓ Enterprise addresses: Need verification
- ❓ Pointer addresses: Need verification
- ❓ Script addresses: Need verification
- ❓ Byron addresses: Need verification
### Test cases
For each address type, verify:
```bash
# 1. Get address from a block
curl -X POST http://localhost:8082/block \
-H "Content-Type: application/json" \
-d '{
"network_identifier": {"blockchain": "cardano", "network": "preprod"},
"block_identifier": {"index": 1000000}
}'
# 2. Use that address in account/balance
curl -X POST http://localhost:8082/account/balance \
-H "Content-Type: application/json" \
-d '{
"network_identifier": {"blockchain": "cardano", "network": "preprod"},
"account_identifier": {"address": ""}
}'
```
### Tasks
- [ ] Test all relevant Cardano address types with `/account/balance`:
- [ ] Enterprise addresses
- [ ] Pointer addresses (?)
- [ ] Script addresses (payment and stake?)
- [ ] Byron addresses
- [ ] Add comprehensive tests for all address types
- [ ] Update documentation with supported address types
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.