Skip to content

Commit

Permalink
feat: update ap url (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
BarryTong98 authored Sep 29, 2024
1 parent 79ac07e commit 7b9ce33
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
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

0 comments on commit 7b9ce33

Please sign in to comment.