Returns a globally deployed contract code by its code hash
Returns a globally deployed contract code by its code hash
curl -i -X POST \
https://rpc.mainnet.fastnear.com/ \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "fastnear",
"method": "query",
"params": {
"code_hash": "ExampleCodeHash",
"request_type": "view_global_contract_code",
"finality": "final"
}
}'{ "jsonrpc": "2.0", "id": "string", "result": { "code_base64": "string", "hash": "string" }, "error": { "code": 0, "message": "string", "data": {} } }