Open mvadari opened 1 month ago
If a transaction includes the NetworkID
field, then it fails on mainnet, testnet, devnet
(any network whose network_id < 1025). Docs: https://xrpl.org/docs/references/protocol/transactions/common-fields/#networkid-field
How can we disambiguate between these networks with the network_id field?
If a transaction includes the
NetworkID
field, then it fails onmainnet, testnet, devnet
(any network whose network_id < 1025). How can we disambiguate between these networks with the network_id field?
All networks have a network ID, that's how you determine whether or not the NetworkID
field needs to be included in the transaction. It's available in server_info
.
Code reference: https://github.com/XRPLF/xrpl-py/blob/main/xrpl/asyncio/wallet/wallet_generation.py
Currently, the faucet generation code guesses the correct faucet to use based on substrings in the URL. This isn't a very robust system. It would be better (and more robust) to use the Network ID.