Skip to content

Commit 9af6496

Browse files
committed
Add Goerli Infura Provider
1 parent 593cd8b commit 9af6496

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/web3swift/Web3/Web3.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ public struct Web3 {
2525
let infura = await InfuraProvider(Networks.Mainnet, accessToken: accessToken)!
2626
return web3(provider: infura)
2727
}
28+
29+
/// Initialized Web3 instance bound to Infura's goerli provider.
30+
public static func InfuraGoerliWeb3(accessToken: String? = nil) async -> web3 {
31+
let infura = await InfuraProvider(Networks.Goerli, accessToken: accessToken)!
32+
return web3(provider: infura)
33+
}
2834

2935
/// Initialized Web3 instance bound to Infura's rinkeby provider.
3036
public static func InfuraRinkebyWeb3(accessToken: String? = nil) async -> web3 {

0 commit comments

Comments
 (0)