starknet_getBlockTransactionCount RPC Method
パラメータ
block_id
文字列
必須
読み込み中...
返します
結果
整数
読み込み中...
リクエスト
1# Note: You can specify Starknet version in the URL path2# Example: /rpc/v0_9 for version 0.9. Versions 0.6, 0.7, and 0.8 are no longer supported3curl --location 'https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9' \4--header 'accept: application/json' \5--header 'content-type: application/json' \6--data '{7"id": 1,8"jsonrpc": "2.0",9"method": "starknet_getBlockTransactionCount",10"params": [11「最新」12]13}'
1# Note: You can specify Starknet version in the URL path2# Example: /rpc/v0_9 for version 0.9. Versions 0.6, 0.7, and 0.8 are no longer supported3curl --location 'https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9' \4--header 'accept: application/json' \5--header 'content-type: application/json' \6--data '{7"id": 1,8"jsonrpc": "2.0",9"method": "starknet_getBlockTransactionCount",10"params": [11「最新」12]13}'
1// Note: You can specify Starknet version in the URL path2// Example: /rpc/v0_9 for version 0.9. Versions 0.6, 0.7, and 0.8 are no longer supported3const myHeaders = new Headers();4myHeaders.append("accept", "application/json");5myHeaders.append("content-type", "application/json");67const raw = JSON.stringify({8"id": 1,9「jsonrpc」: "2.0",10"method": "starknet_getBlockTransactionCount",11"params": [12「最新」13]14});1516const requestOptions = {17method: "POST",18ヘッダー: myHeaders,19本文: raw,20リダイレクト: "follow"21};2223fetch("https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9", requestOptions)24.その後((レスポンス) => レスポンス.text())25.その後((結果) => コンソール.log(result))26.catch((error) => console.error(error));27
1// Note: You can specify Starknet version in the URL path2// Example: /rpc/v0_9 for version 0.9. Versions 0.6, 0.7, and 0.8 are no longer supported3const myHeaders = new Headers();4myHeaders.append("accept", "application/json");5myHeaders.append("content-type", "application/json");67const raw = JSON.stringify({8"id": 1,9「jsonrpc」: "2.0",10"method": "starknet_getBlockTransactionCount",11"params": [12「最新」13]14});1516const requestOptions = {17method: "POST",18ヘッダー: myHeaders,19本文: raw,20リダイレクト: "follow"21};2223fetch("https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9", requestOptions)24.その後((レスポンス) => レスポンス.text())25.その後((結果) => コンソール.log(result))26.catch((error) => console.error(error));27
1# Note: You can specify Starknet version in the URL path2# Example: /rpc/v0_9 for version 0.9. Versions 0.6, 0.7, and 0.8 are no longer supported3import requests4import json56url = "https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9"78ペイロード = json.dumps({9"id": 1,10「jsonrpc」: "2.0",11"method": "starknet_getBlockTransactionCount",12"params": [13「最新」14]15})16ヘッダー = {17「accept」: 'application/json',18「content-type」: 'application/json'19}2021回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)2223印刷(レスポンス.text)24
1# Note: You can specify Starknet version in the URL path2# Example: /rpc/v0_9 for version 0.9. Versions 0.6, 0.7, and 0.8 are no longer supported3import requests4import json56url = "https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9"78ペイロード = json.dumps({9"id": 1,10「jsonrpc」: "2.0",11"method": "starknet_getBlockTransactionCount",12"params": [13「最新」14]15})16ヘッダー = {17「accept」: 'application/json',18「content-type」: 'application/json'19}2021回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)2223印刷(レスポンス.text)24
1# Note: You can specify Starknet version in the URL path2# Example: /rpc/v0_9 for version 0.9. Versions 0.6, 0.7, and 0.8 are no longer supported3require "uri"4require "json"5require "net/http"67url = URI("https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9")89http = Net::HTTP.new(url.host, url.port);10リクエスト = ネット::HTTP::POST.new(URL)11request["accept"] = "application/json"12request["content-type"] = "application/json"13リクエスト.本文 = JSON.dump({14"id": 1,15「jsonrpc」: "2.0",16"method": "starknet_getBlockTransactionCount",17"params": [18「最新」19]20})2122回答 = http.リクエスト(リクエスト)23レスポンスを格納する.read_body24
1# Note: You can specify Starknet version in the URL path2# Example: /rpc/v0_9 for version 0.9. Versions 0.6, 0.7, and 0.8 are no longer supported3require "uri"4require "json"5require "net/http"67url = URI("https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9")89http = Net::HTTP.new(url.host, url.port);10リクエスト = ネット::HTTP::POST.new(URL)11request["accept"] = "application/json"12request["content-type"] = "application/json"13リクエスト.本文 = JSON.dump({14"id": 1,15「jsonrpc」: "2.0",16"method": "starknet_getBlockTransactionCount",17"params": [18「最新」19]20})2122回答 = http.リクエスト(リクエスト)23レスポンスを格納する.read_body24