Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ This JavaScript SDK is thin wrapper of MegaFuel clients, offering a streamlined

## Network Endpoint

| Network | [Paymaster]( https://docs.nodereal.io/reference/pm-issponsorable) | [Sponsor](https://docs.nodereal.io/reference/pm-addtowhitelist) |
|:-------------:|:-------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------:|
| BSC mainnet | https://bsc-megafuel.nodereal.io | https://open-platform.nodereal.io/{YOUR_API_KEY}/megafuel |
| BSC testnet | https://bsc-megafuel-testnet.nodereal.io | https://open-platform.nodereal.io/{YOUR_API_KEY}/megafuel-testnet |
| opBNB mainnet | https://opbnb-megafuel.nodereal.io | https://open-platform.nodereal.io/{YOUR_API_KEY}/megafuel |
| opBNB testnet | https://opbnb-megafuel-testnet.nodereal.io | https://open-platform.nodereal.io/{YOUR_API_KEY}/megafuel-testnet |
| Network | [Paymaster]( https://docs.nodereal.io/reference/pm-issponsorable) | [Sponsor](https://docs.nodereal.io/reference/pm-addtowhitelist) |
|:-------------:|:-------------------------------------------------------------------------------:|:--------------------------------------------------------------------:|
| BSC mainnet | https://bsc-megafuel.nodereal.io | https://open-platform-ap.nodereal.io/{YOUR_API_KEY}/megafuel |
| BSC testnet | https://bsc-megafuel-testnet.nodereal.io | https://open-platform-ap.nodereal.io/{YOUR_API_KEY}/megafuel-testnet |
| opBNB mainnet | https://opbnb-megafuel.nodereal.io | https://open-platform-ap.nodereal.io/{YOUR_API_KEY}/megafuel |
| opBNB testnet | https://opbnb-megafuel-testnet.nodereal.io | https://open-platform-ap.nodereal.io/{YOUR_API_KEY}/megafuel-testnet |

## Quick Start
1. Install dependency
Expand All @@ -25,7 +25,7 @@ import {ethers} from "ethers";
import {PaymasterClient, SponsorClient} from 'megafuel-js-sdk';

const PAYMASTER_URL = "https://bsc-megafuel.nodereal.io"
const SPONSOR_URL = "https://open-platform.nodereal.io/{YOUR_API_KEY}/megafuel"
const SPONSOR_URL = "https://open-platform-ap.nodereal.io/{YOUR_API_KEY}/megafuel"

const POLICY_UUID = "a2381160-xxxx-xxxx-xxxxceca86556834"
const TOKEN_CONTRACT_ADDRESS = "0xeD2.....12Ee"
Expand Down
2 changes: 1 addition & 1 deletion tests/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dotenv.config({

// testnet env
export const OPEN_PLATFORM_PRIVATE_KEY = process.env.OPEN_PLATFORM_PRIVATE_KEY
export const SPONSOR_URL = `https://open-platform.nodereal.io/${OPEN_PLATFORM_PRIVATE_KEY}/megafuel-testnet`
export const SPONSOR_URL = `https://open-platform-ap.nodereal.io/${OPEN_PLATFORM_PRIVATE_KEY}/megafuel-testnet`
export const CHAIN_ID = '97'
export const CHAIN_URL = `https://bsc-testnet.nodereal.io/v1/${OPEN_PLATFORM_PRIVATE_KEY}`
export const PAYMASTER_URL = 'https://bsc-megafuel-testnet.nodereal.io/97'
Expand Down
Loading