Where/how 智能合约webassembly 二进制文件存储在NEAR 协议中吗?

Where/how is the smart contract webassembly binary stored in NEAR protocol?

如何通过探索 NEAR 协议区块链提取智能合约 WebAssembly 二进制文件?

Near 有一个类似于以太坊的基于账户的模型。但是,我认为我们目前没有公开通过 RPC 下载 Wasm 二进制文件。添加了 https://github.com/nearprotocol/nearcore/issues/1712

示例:

http --json post https://rpc.mainnet.near.org jsonrpc=2.0 id=dontcare method=query \
params:='{"request_type":"view_code","finality":"final","account_id":"contract.near"}' \
| jq -r .result.code_base64 \
| base64 --decode > contract.wasm