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

View File

@ -2230,6 +2230,13 @@ export class Connection {
return this._commitment; return this._commitment;
} }
/**
* The RPC endpoint
*/
get rpcEndpoint(): string {
return this._rpcEndpoint;
}
/** /**
* Fetch the balance for the specified public key, return with context * Fetch the balance for the specified public key, return with context
*/ */