#need help in connection with frontend

5 messages · Page 1 of 1 (latest)

lost carbon
#

import Layout from '../layouts/Layout.astro';
import Card from '../components/Card.astro';
+import { Contract, networks } from 'hello-soroban-client';
+
+const greeter = new Contract({

Can anyone please tell me what is networks.testnet
And
Where i can find it

I am using npm followed all the past steps

The RPC service allows you to communicate directly with Soroban via a JSON RPC interface.

charred bolt
#

Hello, there! It sounds like you've gone through the process of generating Typescript bindings for the contract, is that right?

If memory serves me, networks.testnet should be the network passphrase for the testnet network. That's generated in the bindings, too, I think. Might need to capitalize it like networks.TESTNET?

That's what my gut says, but I'll double-check to confirm

lost carbon
#

thanks for clearifying me

lost carbon