const { OpenSeaPort, Network } = require("opensea-js");
const offer = await seaport.createBuyOrder({
asset: {
tokenId,
tokenAddress,
schemaName
},
accountAddress: WALLET_ADDRESS,
startAmount: newOffer / (10 ** 18),
expirationTime: Math.round(Date.now() / 1000 + 60 * 60 * 24)
});
Run Code Online (Sandbox Code Playgroud)
我将从opensea 空令牌中获取schemaName (如果是 ERC721 或 ERC1155):
在 opensea 的“详细信息”面板中,我可以看到合约模式名称,如下所示:Token Standard: ERC-1155
如何使用 node.js 或 python 从 opensea 令牌 url 获取模式名称?
我尝试使用 Windows Subsystem For Linux(WSL) 2 在 Windows 10 和 11 上使用 ubuntu 20.04。但是在 WSL2 ubuntu 系统中网速太差。我也在 WSL1 上尝试过 ubuntu,它的速度也太差了。它的互联网速度几乎是任务管理器/性能中主机 PC 互联网速度的 1/10。
我注意到 WSL 以太网正在通过 Hyper-V 虚拟以太网适配器工作。
有没有办法通过调整 Hyper-V 虚拟以太网适配器带宽限制或执行其他操作来提高 WSL2 中的互联网下载速度?
hyper-v bandwidth hypervisor windows-subsystem-for-linux wsl-2
bandwidth ×1
hyper-v ×1
hypervisor ×1
node.js ×1
opensea ×1
python ×1
solidity ×1
web3py ×1
windows-subsystem-for-linux ×1
wsl-2 ×1