Skip to content

Commit c017dbb

Browse files
author
Solandy
committed
change RPC path
1 parent feaf2a1 commit c017dbb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compression/cnft-vault/anchor/tests/readAPI.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
import axios from "axios";
66

7-
// TODO change to your API key (this is mine on free-tier)
8-
const HELIUS_RPC = "https://rpc-devnet.helius.xyz/?api-key=30536abf-e8e7-444f-a255-18e9a0c27e8b";
7+
// you might want to change that to your custom RPC
8+
const RPC_PATH = "https://rpc-devnet.aws.metaplex.com/";
99

10-
export async function getAsset(assetId: any, rpcUrl = HELIUS_RPC): Promise<any> {
10+
export async function getAsset(assetId: any, rpcUrl = RPC_PATH): Promise<any> {
1111
try {
1212
const axiosInstance = axios.create({
1313
baseURL: rpcUrl,
@@ -27,7 +27,7 @@ export async function getAsset(assetId: any, rpcUrl = HELIUS_RPC): Promise<any>
2727
}
2828

2929

30-
export async function getAssetProof(assetId: any, rpcUrl = HELIUS_RPC): Promise<any> {
30+
export async function getAssetProof(assetId: any, rpcUrl = RPC_PATH): Promise<any> {
3131
try {
3232

3333
const axiosInstance = axios.create({

0 commit comments

Comments
 (0)