Skip to main content
Push LogoPush Logo
Docs HubBlogDiscordAppGitHub
Skip to main content

Push Documentation Hub

Get started with building native web3 communition for your protocol!Get Started

Popular Quickstart

Push Notification Quickstart
// Import Push SDK & Ethers
import { PushAPI } from '@pushprotocol/restapi';
import { ethers } from 'ethers';

// Using random signer from a wallet, ideally this is the wallet you will connect
const signer = ethers.Wallet.createRandom();

// Initialize wallet user, pass 'prod' instead of 'staging' for mainnet apps
const userAlice = await PushAPI.initialize(signer, { env: 'staging' });

// Send a notification to users of your protocol
const apiResponse = await userAlice.channel.send(['*'], {
notification: {
title: 'Hello World Notification',
body: 'Web3 native notifications are here!',
}
});
Push Chat Quickstart
// Import Push SDK & Ethers
import { PushAPI } from '@pushprotocol/restapi';
import { ethers } from 'ethers';

// Using random signer from a wallet, ideally this is the wallet you will connect
const signer = ethers.Wallet.createRandom();

// Initialize wallet user, pass 'prod' instead of 'staging' for mainnet apps
const userAlice = await PushAPI.initialize(signer, { env: 'staging' });

// Send a message to Bob
const aliceMessagesBob = await userAlice.chat.send(
'0x99A08ac6254dcf7ccc37CeC662aeba8eFA666666',
{content: "Gm gm! It's a me... Mario"}
);


Technical Documentation

Explore different ways of sending and receiving notifications and more.
Learn about the details of Push Chat and how to do web3 native messaging.

Push SDK

Explore SDK
SDK Starter Kit
REST API
React Native
Socket
UIWeb
UI Embed
Join Us
Join us and build the future of Web3 Communication.See Open Positions 
Get Started
Follow our simple guides to get started in minutes.Explore Docs 
CompanyPush EcosystemMedia KitTermsPrivacy
GovernancePush GovernanceGuidesForumGrantsSnapshot
ResourcesBlogGithubDiscordDev Guides
SupportContact UsFAQ
Subscribe
Push Logo
Edit this page