Skip to content

Fee calculation not supported for local or dev network #1819

@tried2bwhatuwantme2b

Description

@tried2bwhatuwantme2b

Description

I run polkadot local node and send transaction. Than invoke {substrate-api-base-url}/blocks/{blockId} and can't get fee of this transaction - there is no appropriate field (extrinsics.info.partialFee) . Instead of this filed there is another one: extrinsics.info.error:"Fee calculation not supported for this network".

Steps to Reproduce

  1. here is a docker-compose file to start node and substrate api:
version: '3.8'

services:
  polkadot-node:
    image: parity/polkadot:latest
    container_name: polkadot-node
    ports:
      - "9944:9944"  # WS RPC
      - "9933:9933"  # HTTP RPC
      - "30333:30333"  # P2P
    command:
      - --dev
      - --unsafe-rpc-external
      - --rpc-methods=unsafe
      - --rpc-external
      - --rpc-cors=all 
      - --rpc-max-connections=100 
    networks:
      - substrate-net

  substrate-api-sidecar:
    image: parity/substrate-api-sidecar:latest
    container_name: substrate-api-sidecar
    ports:
      - "8080:8080"
    environment:
      - SAS_SUBSTRATE_URL=ws://polkadot-node:9944
      - SAS_SUBSTRATE_WS_URL=ws://polkadot-node:9944
      - SAS_LOG_LEVEL=debug
      - SAS_EXPRESS_PORT=8080
      - SAS_EXPRESS_HOST=0.0.0.0
    depends_on:
      - polkadot-node
    networks:
      - substrate-net

networks:
  substrate-net:
    driver: bridge
  1. execute command: docker-compose up

  2. send some transaction. for example send 50000000000 from //alice test account to "5DBt7FyG9NJV64ncfagNcGPGFqnnXa4M5bkWMaSGQcCxfUaJ"

  3. wait transaction appears in the blockchain

  4. invoke {substrate-api-base-url}/blocks/{blockId}

Expected vs. Actual Behavior

Expected
extrinsics.info.partialFee

Actual

"extrinsics": [
  {
    "method": { ... },
    "signature": { ... },
    "info": {
      "error": "Fee calculation not supported for this network"
    }
  }
]

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