Construct a mainnet enterprise address from a DRep ID, if possible.
Uses the extracted governance credential (key-hash or script-hash) as the payment credential.
This always uses NetworkId.Mainnet. If you need testnet, create a variant that accepts a NetworkId.
NetworkId.Mainnet
NetworkId
Bech32 DRep ID.
A mainnet EnterpriseAddress, or undefined if construction fails upstream.
EnterpriseAddress
undefined
Construct a mainnet enterprise address from a DRep ID, if possible.
Uses the extracted governance credential (key-hash or script-hash) as the payment credential.
Note
This always uses
NetworkId.Mainnet. If you need testnet, create a variant that accepts aNetworkId.