-
Notifications
You must be signed in to change notification settings - Fork 162
Open
Description
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
- 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
-
execute command: docker-compose up
-
send some transaction. for example send 50000000000 from //alice test account to "5DBt7FyG9NJV64ncfagNcGPGFqnnXa4M5bkWMaSGQcCxfUaJ"
-
wait transaction appears in the blockchain
-
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
Labels
No labels