Skip to content

/v3/accounts/{id}/activities returns empty for genesis-funded account #2170

@davidyuk

Description

@davidyuk

Description

For a local chain where an account receives funds only via genesis_accounts, the middleware reports a balance for that account but GET /v3/accounts/{account_id}/activities returns an empty list. I expect at least one activity describing the genesis credit (e.g. InternalTransferEvent with payload.kind: "accounts_genesis").

Expected

A response that includes an entry shaped like:

{
  "type": "InternalTransferEvent",
  "height": 0,
  "block_hash": "<genesis micro block hash>",
  "payload": {
    "kind": "accounts_genesis",
    "amount": <genesis amount in aettos>,
    "ref_tx_hash": null
  },
  "block_time": 0
}

(Exact block_hash / amount depend on chain config; the important part is a visible genesis internal-transfer activity consistent with balance.)

Actual

  • GET http://localhost:4000/v3/accounts/ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E/activities → empty list (no genesis activity).
  • The same account still has a non-zero balance via the middleware/node.

Reproduction

1. docker-compose.yml

services:
  middleware:
    image: aeternity/ae_mdw:1.104.6
    ports:
      - '4000:4000'
      - '4001:4001'
      - '3013:3013'
      - '3313:3313'
    volumes:
      - ./aeternity.yaml:/home/aeternity/.aeternity/aeternity/aeternity.yaml

2. aeternity.yaml (mounted as above)

peers: []

fork_management:
  network_id: ae_superhero_local

chain:
  persist: false
  hard_forks:
    '1': 0
    '6': 1
  genesis_accounts:
    ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E: 1000000000000000000000000

mining:
  autostart: true
  beneficiary: ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E
  expected_mine_rate: 10000
  micro_block_cycle: 3000
  strictly_follow_top: true
  cuckoo:
    edge_bits: 15
    miners:
      - executable: mean15-generic
        extra_args: ''

3. Steps

  1. From the directory that contains docker-compose.yml:
    docker compose up -d
  2. Wait until the middleware is healthy (first block mined).
  3. Compare:
    • curl -sS 'http://localhost:4000/v3/accounts/ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E/activities'
    • curl -sS 'http://localhost:4000/v3/accounts/ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions