IO, networking & other OS-dependent packages will be **mocked**, optimizing the runtime specifically for blockchain execution.
This makes C# smart contracts more lightweight.
IO, networking & other OS-dependent packages will be **mocked**, optimizing the runtime specifically for blockchain execution.
This makes C# smart contracts more lightweight.
📚 Master NEAR smart contracts with Go! Use:
- Go Smart Contract Template : github.com/vlmoon99/nea...
- Near SDK Go: github.com/vlmoon99/nea...
- Near CLI Go: github.com/vlmoon99/nea...
- Docs: docs.near.org/smart-contra...
Join @NEARProtocol!
#NEAR #GoLang #Web3 #tinygo #wasm
📚 Master NEAR smart contracts with Go! Use:
- Go Smart Contract Template : github.com/vlmoon99/nea...
- Near SDK Go: github.com/vlmoon99/nea...
- Near CLI Go: github.com/vlmoon99/nea...
- Docs: docs.near.org/smart-contra...
Join @NEARProtocol!
#NEAR #GoLang #Web3 #tinygo #wasm
🧪 Test your contract with:
```bash
near-go call --from youraccount.testnet --to contract.testnet --function InitContract --args '{}' --gas '300 Tgas' --deposit '0 NEAR' --network testnet
```
See tx details on testnet.nearblocks.io. Build Web3 with Go!
#NEAR #GoLang
🧪 Test your contract with:
```bash
near-go call --from youraccount.testnet --to contract.testnet --function InitContract --args '{}' --gas '300 Tgas' --deposit '0 NEAR' --network testnet
```
See tx details on testnet.nearblocks.io. Build Web3 with Go!
#NEAR #GoLang
🌐 Deploy your contract to NEAR testnet! Create an account:
```bash
near-go account create -n "testnet" -a "youraccount.testnet"
```
Then deploy:
```bash
near-go deploy -id "youraccount.testnet" -n "testnet"
```
Check tx on testnet.nearblocks.io
#NEAR #go
🌐 Deploy your contract to NEAR testnet! Create an account:
```bash
near-go account create -n "testnet" -a "youraccount.testnet"
```
Then deploy:
```bash
near-go deploy -id "youraccount.testnet" -n "testnet"
```
Check tx on testnet.nearblocks.io
#NEAR #go
🔍 In `main.go`, TinyGo turns Go into WebAssembly for NEAR. Key functions:
- `InitContract`: Sets up contract
- `WriteData`: Saves data on-chain
- `ReadData`: Gets data
- `AcceptPayment`: Handles deposits
- `ReadIncommingTxData`: Reads tx details
#NEAR #GoLang
🛠️ Create a NEAR smart contract in Go:
```bash
near-go create -p "example" -m "example" -t "smart-contract-empty"
cd example/contract
near-go build
```
This makes `main.wasm`—your WebAssembly contract ready to deploy!
#NEAR #GoLang #SmartContracts
🛠️ Create a NEAR smart contract in Go:
```bash
near-go create -p "example" -m "example" -t "smart-contract-empty"
cd example/contract
near-go build
```
This makes `main.wasm`—your WebAssembly contract ready to deploy!
#NEAR #GoLang #SmartContracts
🚀 Want to write smart contracts in Go on @NEARProtocol? Start by installing TinyGo & near-cli-go:
```bash
wget github.com/tinygo-org/t...
sudo dpkg -i tinygo_0.38.0_amd64.deb
curl -LO github.com/vlmoon99/nea... && bash install.sh
```
#NEAR #GoLang #Web3 #tinygo
🚀 Want to write smart contracts in Go on @NEARProtocol? Start by installing TinyGo & near-cli-go:
```bash
wget github.com/tinygo-org/t...
sudo dpkg -i tinygo_0.38.0_amd64.deb
curl -LO github.com/vlmoon99/nea... && bash install.sh
```
#NEAR #GoLang #Web3 #tinygo