Skip to content

Commit

Permalink
Logs
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Jan 26, 2024
1 parent 9ac11dd commit 26aa610
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/pages/api/getAllStakingAccounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import axios from 'axios'
// The JSON payload is too big when using the @solana/web3.js getProgramAccounts
// We get around this by using the base64+ztsd encoding instead of base64 that @solana/web3.js uses
export async function getAllStakeAccounts(url: string): Promise<PublicKey[]> {
console.log('LOG')
const response = await axios({
method: 'post',
url: url,
Expand All @@ -28,5 +29,6 @@ export async function getAllStakeAccounts(url: string): Promise<PublicKey[]> {
],
},
})
console.log('LOG2')
return response.data.result.map((x: any) => new PublicKey(x.pubkey))
}

0 comments on commit 26aa610

Please sign in to comment.