Call the network with an account key
Get an account, send a JSON-RPC call, read your usage.
Praecise RPC gives you access to a network without running a node. An account key identifies you; each call goes to the network and its answer comes back unchanged.
1. Get an account
Your account is made by the operator or a Praecise product holding the admin key. You are given an account id (pra_…) and, once, a key (prk_…). Keep the key secret; only its hash is kept, so a lost key is replaced, not recovered.
2. See what is offered
curl $BASE/networks
3. Make a call
curl -X POST $BASE/rpc/<network> \
-H "Authorization: Bearer $PRAECISE_RPC_KEY" -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"<a method>","params":[]}'
4. Read your usage
GET /usage with your key: today and the last seven days, per network: requests, reads, writes, errors and calls refused.
How Praecise RPC works
- One network is offered. It passes one JSON-RPC 2.0 call at a time, per request.
- Every call goes to the network, so answers are current.
- A method is a write when the operator lists it as one, or when its name looks like a change (send, submit, sign, transfer, deploy, set, create, delete and similar). A write that is not enabled is refused. Where the network has its own method list, the operator gives the reads explicitly.
- The ceiling per minute is kept by the service.
- It does not hold keys for you and does not sign anything. A call that changes the network is signed by you before it is sent.
- Counts are kept by the service.
Written and kept by Praecise RPC. Read from https://rpc.praecise.com/guides/quickstart.md.