THORChain is undergoing a hard-fork of all of its networks to upgrade to Cosmos v0.45, which will have some breaking changes for front-end interfaces.
**Reach out to Eridanus for support
Testnet: Monday Afternoon PST - March 14th, 2022
Stagenet: Tuesday night PST - March 15th, 2022
Chaosnet: No sooner than March 21st, 2022
<aside> 💡 Project Leads: Please fill in the following matrix as you progress: https://docs.google.com/spreadsheets/d/1FoKmdP9ZoI3AP539iLyzd6UAS7i_xvsjfD_WnHjx13E/edit#gid=0 ** If your project isn’t listed, please add yourself.*
</aside>
**NOTE: these endpoints will actually be removed in Cosmos SDK 0.46.x, but it is still recommended to migrate to them now.
Cosmos v0.40 and later introduced new grpc-REST endpoints and marked the legacy endpoints as deprecated. In v0.46 the legacy endpoints will be removed and the new endpoints will have to be used. The new endpoints are already live since THORChain is on Cosmos SDK v0.42, so these can be migrated to now.
This guide goes over all legacy endpoints and their new counterparts in cosmos v0.40 and later: https://docs.cosmos.network/master/migrations/rest.html
Important endpoints for THORChain integrations:
GET /cosmos/tx/v1beta1/txs/{hash}
- new endpoints to view TX by hashGET /cosmos/tx/v1beta1/txs
- new endpoint to query TXs by events
minheight
and maxheight
have been removed, among other things. View more info here: https://v1.cosmos.network/rpc/v0.42.6POST /cosmos/tx/v1beta1/txs
- new endpoint for broadcasting TC transactions
POST /txs
endpoint has been temporarily added back, so for now it will continue to work. However, it will be removed soon, so it is recommended to just migrate to the new endpoint now.POST /txs/encode
has been REMOVED, use protobuf locally to encode messages