Deploying Polkadot node on Akash

---
version: "2.0"
services:
polkadot:
image: parity/polkadot
expose:
- port: 30333
as: 30333
to:
- global: true
- port: 9933
as: 9933
to:
- global: true
- port: 9944
as: 9944
to:
- global: true
args:
- "--chain=polkadot"
- "--ws-external"
- "--rpc-external"
- "--rpc-cors=*"
profiles:
compute:
polkadot-profile:
resources:
cpu:
units: 4.0
memory:
size: 64Gi
storage:
size: 128Gi
placement:
westcoast:
pricing:
polkadot-profile:
denom: uakt
amount: 1000
deployment:
polkadot:
westcoast:
profile: polkadot-profile
count: 1
  • Use the --chain <chainspec> option to select the chain. Can be polkadot, kusama, westend, rococo, or a custom chain spec.
  • Use the --rpc-external flag to expose RPC ports and — ws-external to expose websockets. Not all RPC calls are safe to allow and you should use an RPC proxy to filter unsafe calls.
  • Select ports with the --rpc-port and --ws-port options.
  • To limit the hosts who can access, use the --rpc-cors option.
curl -X POST -H 'content-type:application/json' --data '{
"jsonrpc":"2.0",
"id" :1,
"method" :"system_chain"
}' http://provider.edgenet-3.ca.aksh.pw:30044/
{"jsonrpc":"2.0","result":"Polkadot","id":1}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store