配置 erdpy
原文:https://docs.elrond.com/sdk-and-tools/erdpy/configuring-erdpy
erdpy 可以使用erdpy config命令进行配置。
为了查看当前配置,可以发出命令erdpy config dump。输出示例:
{
"proxy": "https://gateway.elrond.com",
"txVersion": "1",
"dependencies.llvm.tag": "v...",
"dependencies.vmtools.tag": "v...",
"chainID": "...",
"dependencies.rust.tag": ""
}
用户可以使用命令erdpy config set改变当前配置。例如,为了设置代理 URL 或链 ID,可以执行以下操作:
$ erdpy config set chainID 1...
$ erdpy config set proxy https://gateway.elrond.com
注
对于mainnet,使用proxy: https://gateway.elrond.com和chainID: 1。
对于devnet,使用proxy: https://devnet-gateway.elrond.com和chainID: D。
对于testnet,使用proxy: https://testnet-api.elrond.com和chainID: T。
提示
erdpy 的配置存储在文件~/elrondsdk/erdpy.json中。
