feat(web3.js): expose rpcEndpoint in client for web3.js (#23719)

Adds a getter to the commitment class to expose the rpcEndpoint property.
This commit is contained in:
Sammy 2022-03-23 14:05:37 -04:00 committed by GitHub
parent a573cfa39d
commit 26da64184a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -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
*/