https://github.com/frol/near-web4-demo-py
https://github.com/frol/near-web4-demo-py
nearprotocol smartcontract web4
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/frol/near-web4-demo-py
- Owner: frol
- Created: 2025-02-17T19:11:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-17T19:11:33.000Z (over 1 year ago)
- Last Synced: 2025-03-03T03:06:14.667Z (over 1 year ago)
- Topics: nearprotocol, smartcontract, web4
- Language: Python
- Homepage: https://hello-web4-python.testnet.page/
- Size: 1000 Bytes
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Web4 Demo on NEAR protocol (using Python)
=========================================
[Web4](https://web4.near.page) is a gateway to the smart contracts deployed to NEAR protocol.
This demo just shows the minimum viable application that lives on NEAR chain, and thus anyone hosting the gateway can serve all the Web4 projects!
See it live on testnet: https://hello-web4-python.testnet.page
When you deploy on mainnet, you should be able to use https://ACCOUNT_ID.near.page as your gateway.
## Build
Use [near-py-tool](https://github.com/past-hypothesis/near-py-tool) CLI to build it.
Install:
```sh
python -m venv ./venv
. ./venv/bin/activate
pip install near-py-tool
```
Build:
```sh
near-py-tool build non-reproducible-wasm
```
## Deploy
Using [near-cli-rs](https://near.cli.rs) you can deploy the contract to your account:
```sh
near contract deploy hello-web4-python.testnet use-file build/near-web4-demo-py.wasm without-init-call
```
## Notes
There is a demo of this project available [in Rust](https://github.com/frol/near-web4-demo-rs).