挑战8和6,7类似,难点是要部署之前没部署过的质押类型的节点。 我选择了Polkadot,也是质押类型的节点
---
version: "2.0"
services:
polkadot:
image: ericet/polkadot:0.1
expose:
- port: 30333
as: 30333
to:
- global: true
- port: 9933
as: 9933
to:
- global: true
- port: 9944
as: 9944
to:
- global: true
profiles:
compute:
polkadot-profile:
resources:
cpu:
units: 2.0
memory:
size: 8Gi
storage:
size: 64Gi
placement:
westcoast:
pricing:
polkadot-profile:
denom: uakt
amount: 1000
deployment:
polkadot:
westcoast:
profile: polkadot-profile
count: 1
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "chain_getHeader"}' 部署的链接