thirdweb

⌘K

Pricing

Docs

Support

PGN (Public Goods Network)
(ETH)

Popular Contracts

Explore more

Info

publicgoods.network/

Chain ID

424

Native Token

Ether (ETH)

RPC

https://pgn-public-goods-network.rpc.thirdweb.com

Block Height

0

Latency

0 ms

Explorers


Getting Started with PGN (Public Goods Network)

Choose a language:

Install the latest version of the SDK:

npm install @thirdweb-dev/sdk ethers@5

Initialize the SDK and contract on your project:

import { PgnPublicGoodsNetwork } from "@thirdweb-dev/chains";
import { ThirdwebSDK } from "@thirdweb-dev/sdk";
// If used on the FRONTEND pass your 'clientId'
const sdk = new ThirdwebSDK(PgnPublicGoodsNetwork, {
clientId: "YOUR_CLIENT_ID",
});
// --- OR ---
// If used on the BACKEND pass your 'secretKey'
const sdk = new ThirdwebSDK(PgnPublicGoodsNetwork, {
secretKey: "YOUR_SECRET_KEY",
});
const contract = await sdk.getContract("0x0000000000000000000000000000000000000000");

You will need to pass a client ID/secret key to use thirdweb's infrastructure services. If you don't have any API keys yet you can create one for free from the dashboard settings.

FeedbackPrivacy PolicyTerms of ServiceGas EstimatorChainlist

thirdweb © 2023