RPC proxy for Steem Engine

in rpc •  last month

To make it easier to implement SteemEngine into 3rd party projects I created a lightweight proxy for the RPC requests.

https://rpc.bloks.xyz

All you need to change is the method field. Prefix it either with blockchain or contracts and the request will be forwarded to the corresponding endpoint:

Example: Get a list of all token:

curl -XPOST -H "Content-type: application/json" -d '{
            "jsonrpc": "2.0",
            "id": 5,
            "method": "contracts.find",
            "params": {"contract": "tokens", "table": "tokens", "query": {}, "limit": 1000, "offset": 0, "indexes": []}
        }' 'https://rpc.bloks.xyz/rpc'

Example: Get the head block:

curl -XPOST -H "Content-type: application/json" -d '{
            "jsonrpc": "2.0",
            "method": "blockchain.getLatestBlockInfo",
            "id": 1
}' 'https://rpc.bloks.xyz/rpc'

Steem Blockchain

If you want to use only a single endpoint to access Steem Engine and Steem thats also possible. Just prefix every method you to send to STEEM with steem:

curl -XPOST -H "Content-type: application/json" -d '{"jsonrpc":"2.0", "method":"steem.follow_api.get_account_reputations", "params":{"account_lower_bound":"a", "limit":10}, "id":1}' 'https://rpc.bloks.xyz/rpc'
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Congratulations @wehmoen! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You made more than 2000 upvotes. Your next target is to reach 3000 upvotes.

Click here to view your Board
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:

Carnival Challenge - Collect badge and win 5 STEEM
Vote for @Steemitboard as a witness and get one more award and increased upvotes!

Congratulations @wehmoen! You received a personal award!

DrugWars Early Access
Thank you for taking part in the early access of Drugwars.

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

Are you a DrugWars early adopter? Benvenuto in famiglia!
Vote for @Steemitboard as a witness to get one more award and increased upvotes!

This post has been included in the latest edition of SoS Daily News - a digest of all you need to know about the State of Steem.