139 Followers
·
Follow

How to migrate from Mystique API to TzKT API

Image for post
Image for post

Last year we released Mystique API that mimics the TzScan API, which suddenly died, so we really needed a workaround while our TzKT API was under development. Now that it’s done, we’ll describe how to painlessly migrate from mystique.tzkt.io to api.tzkt.io, a more stable and much faster Tezos API.

In this guide, we will describe all Mystique API endpoints, used for the last month. If you need some endpoints, missed in this guide, just contact us and we’ll add them to the migration guide.

Keep in mind, its just another TzScan mimic guide which helps you migrate from Mystique API. TzKT API, for sure, will work better, than Mystique API (a workaround, as described before), but it’s not necessary to use it exactly this way. TzKT API itself provides much more detailed and accurate data so you can create more complex apps and services. Don’t limit yourself to the outdated TzScan format.

rewards_split

/v3/rewards_split/{address}?cycle={cycle} -> /v1/rewards/split/{address}/{cycle}

rewards_split_cycles

/v3/rewards_split_cycles/{address} -> /v1/rewards/bakers/{address}

snapshot_levels

/v3/snapshot_levels -> /v1/cycles?select=snapshotLevel

delegator_rewards_with_details

/v3/delegator_rewards_with_details/{address} -> /v1/rewards/delegators/{address}

number_operations

/v3/number_operations/{address} -> /v1/accounts/{address}

operations

/v3/operations/{address} -> /v1/accounts/{address}/operations

staking_balance

/v3/staking_balance/{address} -> /v1/accounts/{address}

balance_from_balance_updates

/v3/balance_from_balance_updates/{address} -> /v1/accounts/{address}

network

/v3/network -> https://services.tzkt.io/v1/network

You can also use the following endpoints in case you have connectivity issues with test networks:

https://services.tzkt.io/zeronet/v1/network
https://services.tzkt.io/carthagenet/v1/network
https://services.tzkt.io/babylonnet/v1/network

Contact us

Feel free to ask any questions. Baking Bad team is always happy to help!

Originally published at https://baking-bad.org on June 08, 2020, where you can find full version of the article.

Written by

Baking-bad.org, Audit & Rating of Tezos bakers. Active Tezos tools contributor. Author of better-call.dev, Pytezos, Netezos, TzKT.io, atomex.me

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