feat: use Alchemy API key for Ethereum main/goerli
This commit is contained in:
parent
6a110ca3df
commit
2bcf08f273
|
@ -138,6 +138,12 @@ func defaultNodeConfig(installationID string, request *requests.CreateAccount) (
|
||||||
nodeConfig.WalletConfig.InfuraAPIKeySecret = request.InfuraSecret
|
nodeConfig.WalletConfig.InfuraAPIKeySecret = request.InfuraSecret
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if request.AlchemyEthereumMainnetToken != "" {
|
||||||
|
nodeConfig.WalletConfig.AlchemyAPIKeys[mainnetChainID] = request.AlchemyEthereumMainnetToken
|
||||||
|
}
|
||||||
|
if request.AlchemyEthereumGoerliToken != "" {
|
||||||
|
nodeConfig.WalletConfig.AlchemyAPIKeys[goerliChainID] = request.AlchemyEthereumGoerliToken
|
||||||
|
}
|
||||||
if request.AlchemyArbitrumMainnetToken != "" {
|
if request.AlchemyArbitrumMainnetToken != "" {
|
||||||
nodeConfig.WalletConfig.AlchemyAPIKeys[arbitrumChainID] = request.AlchemyArbitrumMainnetToken
|
nodeConfig.WalletConfig.AlchemyAPIKeys[arbitrumChainID] = request.AlchemyArbitrumMainnetToken
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,6 +50,8 @@ type WalletSecretsConfig struct {
|
||||||
|
|
||||||
// Testing
|
// Testing
|
||||||
GanacheURL string `json:"ganacheURL"`
|
GanacheURL string `json:"ganacheURL"`
|
||||||
|
AlchemyEthereumMainnetToken string `json:"alchemyEthereumMainnetToken"`
|
||||||
|
AlchemyEthereumGoerliToken string `json:"alchemyEthereumGoerliToken"`
|
||||||
AlchemyArbitrumMainnetToken string `json:"alchemyArbitrumMainnetToken"`
|
AlchemyArbitrumMainnetToken string `json:"alchemyArbitrumMainnetToken"`
|
||||||
AlchemyArbitrumGoerliToken string `json:"alchemyArbitrumGoerliToken"`
|
AlchemyArbitrumGoerliToken string `json:"alchemyArbitrumGoerliToken"`
|
||||||
AlchemyOptimismMainnetToken string `json:"alchemyOptimismMainnetToken"`
|
AlchemyOptimismMainnetToken string `json:"alchemyOptimismMainnetToken"`
|
||||||
|
|
Loading…
Reference in New Issue