Skip to content

Commit

Permalink
feat(web3.js): expose rpcEndpoint in client for web3.js (solana-labs#…
Browse files Browse the repository at this point in the history
…23719)

Adds a getter to the commitment class to expose the rpcEndpoint property.
  • Loading branch information
stegaBOB authored and giogam committed Mar 30, 2022
1 parent a87ab34 commit 2442e53
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions web3.js/src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2230,6 +2230,13 @@ export class Connection {
return this._commitment;
}

/**
* The RPC endpoint
*/
get rpcEndpoint(): string {
return this._rpcEndpoint;
}

/**
* Fetch the balance for the specified public key, return with context
*/
Expand Down

0 comments on commit 2442e53

Please sign in to comment.