1

我将 trust wallet 与 wallet connect 连接,然后提交 eth 交易,但如何进行另一个链交易?

const tx2 = {
  network:931,
  from: "0xbc28Ea04101F03aA7a94C1379bc3AB32E65e62d3", // Required
  to: "0x89D24A7b4cCB1b6fAA2625Fe562bDd9A23260359", // Required (for non contract deployments)
  data: "0x", // Required
  // gasPrice: "0x02540be400", // Optional
  // gas: "0x9c40", // Optional
  // value: "0x00", // Optional
  // nonce: "0x0114", // Optional
};

// Send transaction
self.connector
  .sendTransaction(tx2)
  .then((result) => {
    // Returns transaction id (hash)
    console.log(result);
  })
  .catch((error) => {
    // Error returned when rejected
    console.error(error);
  });

此 JS 代码提交 eth 交易;如何优化网络并进行其他链交易,例如 bsc/binance/thorchain?

4

0 回答 0