<100 subscribers
ERC-721とERC-1155
ざっくりいうとERC-721=NFT ERC-1155=NFTとFTの合いの子
Remixでスマコンをデプロイする
準備Remix(remix.ethereum.org)にアクセスするメタマスク等で、デプロイしたいチェーンにあらかじめ変更しておく下のコードをコピーしておく// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Gm { function gm() public pure returns (string memory) { return "gm"; } } やり方(動画)https://vimeo.com/947462483 以上!

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...


ERC-721とERC-1155
ざっくりいうとERC-721=NFT ERC-1155=NFTとFTの合いの子
Remixでスマコンをデプロイする
準備Remix(remix.ethereum.org)にアクセスするメタマスク等で、デプロイしたいチェーンにあらかじめ変更しておく下のコードをコピーしておく// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Gm { function gm() public pure returns (string memory) { return "gm"; } } やり方(動画)https://vimeo.com/947462483 以上!

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
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.includes(label)) {
return button;
}
}
return null;
}
// ランダムな間隔でボタンをクリックする関数
function autoClickButton(label) {
function clickButton() {
const button = findButtonByLabel(label);
if (button) {
button.click();
} else {
console.log(`ボタンが見つかりません: ${label}`);
}
// 次のクリックまでのランダムな間隔を設定
// 下はインターバルが2秒から4秒
// (a-b)+c
// a: max, b: min, c: interval
const randomInterval = Math.random() * (4000 - 2000) + 2000;
setTimeout(clickButton, randomInterval);
}
clickButton();
}
// 「🔄Spin -100 points」のラベルのボタンを自動クリック
autoClickButton('🔄Spin -100 points');
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.includes(label)) {
return button;
}
}
return null;
}
// ランダムな間隔でボタンをクリックする関数
function autoClickButton(label) {
function clickButton() {
const button = findButtonByLabel(label);
if (button) {
button.click();
} else {
console.log(`ボタンが見つかりません: ${label}`);
}
// 次のクリックまでのランダムな間隔を設定
// 下はインターバルが2秒から4秒
// (a-b)+c
// a: max, b: min, c: interval
const randomInterval = Math.random() * (4000 - 2000) + 2000;
setTimeout(clickButton, randomInterval);
}
clickButton();
}
// 「🔄Spin -100 points」のラベルのボタンを自動クリック
autoClickButton('🔄Spin -100 points');
No comments yet