Try Phala Endpoints
HTTPS
https://api-phala.dwellir.com/76e862fe-da3d-41b8-bbf6-a28db0fbb36f
WSS
wss://api-phala.dwellir.com/76e862fe-da3d-41b8-bbf6-a28db0fbb36f
Quick Start
BASH
curl -sS -X POST https://api-phala.dwellir.com/76e862fe-da3d-41b8-bbf6-a28db0fbb36f \-H 'Content-Type: application/json' \-d '{"id":1,"jsonrpc":"2.0","method":"chain_getBlockHash","params":[0]}'
JAVASCRIPT
import { ApiPromise, WsProvider } from '@polkadot/api';const provider = new WsProvider('wss://api-phala.dwellir.com/76e862fe-da3d-41b8-bbf6-a28db0fbb36f');const api = await ApiPromise.create({ provider });const hash = await api.rpc.chain.getBlockHash(0);console.log(hash.toHex());
PYTHON
from substrateinterface import SubstrateInterfacesubstrate = SubstrateInterface(url='wss://api-phala.dwellir.com/76e862fe-da3d-41b8-bbf6-a28db0fbb36f')block_hash = substrate.get_block_hash(block_id=0)print(block_hash)
GO
package mainimport ("fmt"gsrpc "github.com/centrifuge/go-substrate-rpc-client/v4""github.com/centrifuge/go-substrate-rpc-client/v4/types")func main() {api, err := gsrpc.NewSubstrateAPI("wss://api-phala.dwellir.com/76e862fe-da3d-41b8-bbf6-a28db0fbb36f")if err != nil { panic(err) }var h types.Hashh, err = api.RPC.Chain.GetBlockHash(0)if err != nil { panic(err) }fmt.Println(h.Hex())}
Phala Network tackles the issue of trust in the computation cloud, by building around TEE-based privacy technology that is already embedded into modern processors. It aims to ensure secure and private data exchange in the cloud computing environment.
Pricing
How many calls do you make per month?
/ month
Growth
$299
/month
- 500 Responses /sec
- Dedicated Account Manager
150,000,000 responses ≈ 150.0M • Base $299 + Overages $0
Developer Resources
FAQs
What is Phala Network?
Are there any examples for upload and instantiation of PHAT contracts?
Are there any useful developer tool kits for Phat contracts?
Get your API key
and join other leading Web3 companies using Dwellir's infrastructure