Returns the contract code (Wasm binary) deployed to the account
Returns the contract code (Wasm binary) deployed to the account
curl -i -X POST \
https://rpc.mainnet.fastnear.com/ \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "fastnear",
"method": "query",
"params": {
"account_id": "example.near",
"request_type": "view_code",
"finality": "final"
}
}'{ "jsonrpc": "2.0", "id": "string", "result": { "code_base64": "string", "hash": "string" }, "error": { "code": 0, "message": "string", "data": {} } }