Uses of Enum Class
com.tnsai.payment.x402.Network
-
Uses of Network in com.tnsai.payment.x402
Methods in com.tnsai.payment.x402 that return NetworkModifier and TypeMethodDescriptionInMemoryWallet.network()Wallet.network()Network the wallet is bound to.WalletSpec.network()Returns the value of thenetworkrecord component.Web3jWallet.network()X402Config.network()Returns the value of thenetworkrecord component.static NetworkNetwork.ofCanonicalId(String id) Resolve a canonical id back to its enum value.static NetworkReturns the enum constant of this class with the specified name.static Network[]Network.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.tnsai.payment.x402 with parameters of type NetworkModifier and TypeMethodDescriptionstatic InMemoryWalletInMemoryWallet.forTesting(String address, Network network) Factory method — naming makes the test-only intent explicit at the call site.static Web3jWalletResolve and load a wallet from env vars derived fromenvVarPrefix.static Web3jWalletLikeEnvKeystoreWallet.fromEnv(String, Network)but with a caller-supplied env lookup function — tests use this to drive the resolver deterministically without touching real environment variables.static Web3jWalletWeb3jWallet.fromPrivateKey(String privateKeyHex, Network network) Build a wallet from a raw hex-encoded private key.booleantruewhen this entry is something the P3 broker knows how to settle.Constructors in com.tnsai.payment.x402 with parameters of type NetworkModifierConstructorDescriptionCreates an instance of aWalletSpecrecord class.X402Config(Wallet wallet, Network network, URI facilitator, Duration quoteTtl, BigDecimal maxSlippageBps, HttpClient httpClient, Optional<com.tnsai.accountability.LiabilitySink> liabilitySink, Optional<com.tnsai.accountability.AuthorityScope> authorityScope) Creates an instance of aX402Configrecord class.