【问题标题】:Change dapp gateway更改 dapp 网关
【发布时间】:2022-11-02 16:09:05
【问题描述】:

如何更改 elrond dapp 网关?我想使用 tatum.io 来交换 gateway.elrond.com 但使用 elrond dapp 模板https://github.com/ElrondNetwork/dapp-template 我不知道该怎么做!

  <DappProvider
    environment={environment}
    customNetworkConfig={{ 
      name: 'customConfig',
      gatewayAddress:'https://api-eu1.tatum.io/v3/egld/node/id',
      apiTimeout: 10000 
    }}
    completedTransactionsDelay={200}
  >

gateAddress 不是有效的密钥,只有 apiAddress 所以它不起作用。 谢谢!

【问题讨论】:

    标签: decentralized-applications elrond tatum.io


    【解决方案1】:

    这是customNetworkConfig的接口:

    export interface CustomNetworkType {
        id?: string;
        chainId?: string;
        name?: string;
        egldLabel?: string;
        egldDenomination?: string;
        decimals?: string;
        gasPerDataByte?: string;
        walletConnectDeepLink?: string;
        walletConnectBridgeAddresses?: string[];
        walletAddress?: string;
        apiAddress?: string;
        explorerAddress?: string;
        skipFetchFromServer?: boolean;
        apiTimeout?: string;
    }
    

    如您所见,没有gatewayAddress 变量。
    你能解释一下你想通过改变网关来做什么吗?

    【讨论】:

      猜你喜欢
      • 2016-07-16
      • 1970-01-01
      • 2012-02-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-02
      • 2018-02-21
      • 1970-01-01
      相关资源
      最近更新 更多