Call a contract method on a NEAR account
Call a contract method on a NEAR account
curl -i -X POST \
https://rpc.mainnet.fastnear.com/ \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "fastnear",
"method": "query",
"params": {
"request_type": "call_function",
"finality": "final",
"account_id": "contract.near",
"method_name": "get_info",
"args_base64": "e30="
}
}'{ "jsonrpc": "2.0", "id": "string", "result": { "logs": [ … ], "result": [ … ] }, "error": { "code": 0, "message": "string", "data": {} } }