Rinkebyの非推奨
CloudflareのEthereum GatewayはRinkebyテストネットをサポートして開始されましたが、RinkebyはThe Merge ↗を経ていないため、今後はメインネットの信頼できるステージング環境ではなくなります。
Cloudflareは2023年1月30日にRinkebyのサポートを非推奨にします。
Web3の開発やデバッグに問題が発生しないように、完全にサポートされているSepoliaテストネットに切り替えるべきです。
移行するには、Ethereumネットワークに読み書きする際に使用するエンドポイントを更新する必要があります。
例えば、以前はEthereum Gatewayと対話するために以下のエンドポイントを使用していたかもしれません。
curl https://web3-trial.cloudflare-eth.com/v1/rinkeby \--header 'Content-Type: application/json' \--data '{ "jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["0x2244", true], "id": 1}'await fetch( new Request('https://web3-trial.cloudflare-eth.com/v1/rinkeby', { method: 'POST', body: JSON.stringify({ jsonrpc: '2.0', method: 'eth_getBlockByNumber', params: ['0x2244', true], id: 1, }), headers: { 'Content-Type': 'application/json', }, })).then(resp => { return resp.json();});Rinkebyから移行するには、エンドポイントの末尾を別のテストネットを使用するように変更します。
curl https://web3-trial.cloudflare-eth.com/v1/sepolia \--header 'Content-Type: application/json' \--data '{ "jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["0x2244", true], "id": 1}'await fetch( new Request('https://web3-trial.cloudflare-eth.com/v1/sepolia', { method: 'POST', body: JSON.stringify({ jsonrpc: '2.0', method: 'eth_getBlockByNumber', params: ['0x2244', true], id: 1, }), headers: { 'Content-Type': 'application/json', }, })).then(resp => { return resp.json();});