ERC-721とERC-1155
ざっくりいうとERC-721=NFT ERC-1155=NFTとFTの合いの子

Pill Wheelポチポチbot
まえがきFarcasterのframeは言うてもiframeなのでJavascriptで操作できる。 ポチポチゲーはbot作って自動化しないともったいない。 もちろん無効になるリスクはあるけどリターンとの兼ね合いを考えると躊躇しても意味ない気がする。 だってどうせ短命やん。 今回のターゲットは👇️ https://warpcast.com/pilll/0xeabcccf9注意点不定期にエラーが出ます。おそらくレートリミット。Farcaster側で制御してるっぽく、frame全部がしばらく死にます。 そうなったらしばらく待ってからページをリロードしてコードを実行させたらOKです。やり方調べてください。コード// ボタンのテキストが「🔄Spin -100 points」であるボタンを探す関数 function findButtonByLabel(label) { const buttons = document.querySelectorAll('button'); for (let button of buttons) { if (button.innerText.includ...

How to set the gas fee w/thirdweb.js+ethers.js
IntroductionThis article is how to set the proper gas fee using thirdweb.js(v3.10.10) and ethers.js(v5.7.2). Why is this explanation needed? Because ethers.js has getFeeData() function but it sometimes doesn’t work because the max priority fee is set 1500000000wei, 1.5Gwei. No kidding. Don’t use it if you don’t want any bugs.Hard coding lol.So I was troubled but finally I got the solution for it. I’ll share that.Correct codeThis example is to transfer a token of ERC-1155 using thirdweb.js and...
<100 subscribers
ERC-721とERC-1155
ざっくりいうとERC-721=NFT ERC-1155=NFTとFTの合いの子

Pill Wheelポチポチbot
まえがきFarcasterのframeは言うてもiframeなのでJavascriptで操作できる。 ポチポチゲーはbot作って自動化しないともったいない。 もちろん無効になるリスクはあるけどリターンとの兼ね合いを考えると躊躇しても意味ない気がする。 だってどうせ短命やん。 今回のターゲットは👇️ https://warpcast.com/pilll/0xeabcccf9注意点不定期にエラーが出ます。おそらくレートリミット。Farcaster側で制御してるっぽく、frame全部がしばらく死にます。 そうなったらしばらく待ってからページをリロードしてコードを実行させたらOKです。やり方調べてください。コード// ボタンのテキストが「🔄Spin -100 points」であるボタンを探す関数 function findButtonByLabel(label) { const buttons = document.querySelectorAll('button'); for (let button of buttons) { if (button.innerText.includ...

How to set the gas fee w/thirdweb.js+ethers.js
IntroductionThis article is how to set the proper gas fee using thirdweb.js(v3.10.10) and ethers.js(v5.7.2). Why is this explanation needed? Because ethers.js has getFeeData() function but it sometimes doesn’t work because the max priority fee is set 1500000000wei, 1.5Gwei. No kidding. Don’t use it if you don’t want any bugs.Hard coding lol.So I was troubled but finally I got the solution for it. I’ll share that.Correct codeThis example is to transfer a token of ERC-1155 using thirdweb.js and...
Share Dialog
Share Dialog
Remix(remix.ethereum.org)にアクセスする
メタマスク等で、デプロイしたいチェーンにあらかじめ変更しておく
下のコードをコピーしておく
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract Gm {
function gm() public pure returns (string memory) {
return "gm";
}
}
以上!
Remix(remix.ethereum.org)にアクセスする
メタマスク等で、デプロイしたいチェーンにあらかじめ変更しておく
下のコードをコピーしておく
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract Gm {
function gm() public pure returns (string memory) {
return "gm";
}
}
以上!
No comments yet