Host gate.computer should be running a public Gate server.
Executing greet function of WebAssembly module /ipfs/QmUihSZckeeMvjhUe464adXf75STXpYYuPsfg3x1MpcnNK.
The server call is made anonymously.
Upload and execute (module hash must be supplied in URL):
$ curl -o hello.wasm https://gate.computer/hello.wasm
$ curl -X PUT -H "Content-Type: application/wasm" --data-binary @hello.wasm -L "https://gate.computer/gate-0/module/sha256/e1e6fa2ea2a2a5f9ad32ca9fb78cb6e50cdf12876c4b75ae1a48d20a4a769f5e?action=call&function=greet"
hello, world
Execute by IPFS hash:
$ curl -X POST -L "https://gate.computer/gate-0/module/ipfs/QmUihSZckeeMvjhUe464adXf75STXpYYuPsfg3x1MpcnNK?action=call&function=greet"
hello, world
Manage resources bound to a public key (requires Go, Git and OpenSSH keygen):
$ go get gate.computer/gate/cmd/gate
$ PATH=$(go env GOPATH)/bin:$PATH
$ ssh-keygen -t ed25519 -f key
$ gate -o identityfile=key gate.computer launch ./hello.wasm greet
01234567-89ab-odef-0123-456789abcdef
$ gate -o identityfile=key gate.computer io 01234567-89ab-cdef-0123-456789abcdef
hello, world
$ gate -o identityfile=key gate.computer instances
01234567-89ab-odef-0123-456789abcdef HALTED with result 0
$ gate -o identityfile=key gate.computer modules
e1e6fa2ea2a2a5f9ad32ca9fb78cb6e50cdf12876c4b75ae1a48d20a4a769f5e
$ gate -o identityfile=key gate.computer call e1e6fa2ea2a2a5f9ad32ca9fb78cb6e50cdf12876c4b75ae1a48d20a4a769f5e greet
hello, world
Key defaults to ~/.ssh/id_ed25519
.