revToId
Given a revision, returns the id of the smart contract.
Endpoint
/v1/CHAIN/NETWORK/rev/:revToId
Example
Request
curl -X POST http://localhost:1031/v1/LTC/regtest/revToId \
-H "Content-Type: application/json" \
-d '{
"rev": "5a04f3cdb0450fd4708dfcd2fe86f51c6077add296507d69f2620c15e94c8e89:0"
}'
Response
Success (200)
"db98c59f328bb45b14a957ce44546f5bfe2f1bf4394de18e98f32188e76082be:0"
Note on caching: Successful responses are returned with
Cache-Control: public, max-age=31536000, meaning they can be cached for up to 1 year.
Invalid revision (400)
{ "error": "Invalid revision" }
Server error (500)
{ "error": "Internal server error message" }