View Code
view_code request type
Fetch the compiled WebAssembly bytes deployed directly to a single account.
view_code request type
Fetch the compiled WebAssembly bytes deployed directly to a single account.
Responses from the selected endpoint appear here after you run a request.
Live response output will appear here after you run a request.
This operation accepts a JSON-RPC body over POST to /.
Required request inputs: yes
{
"jsonrpc": "2.0",
"id": "fastnear",
"method": "query",
"params": {
"account_id": "intents.near",
"request_type": "view_code",
"finality": "final"
}
}jsonrpc *string2.0id *stringmethod *stringqueryparams *objectaccount_id *stringNEAR account ID
request_type *stringview_codefinality *stringBlock finality
finalnear-finaloptimisticSuccessful response
jsonrpc *string2.0id *one ofresultobjectA view of the contract code.
code_base64 *stringhash *stringBase58-encoded hash
errorobjectcodeintegermessagestringdataobject