eth_fillTransaction RPC Method
This method is currently available on Monad Testnet only.
參數
transaction
物件
載入中...
出自
字串
必填
載入中...
至
字串
必填
載入中...
氣體
整數
載入中...
gasPrice
整數
載入中...
maxPriorityFeePerGas
整數
載入中...
maxFeePerGas
整數
載入中...
值
整數
載入中...
資料
字串
載入中...
非重複數
整數
載入中...
退貨
結果
物件
載入中...
raw
字串
載入中...
tx
物件
載入中...
出自
字串
載入中...
至
字串
載入中...
氣體
字串
載入中...
maxFeePerGas
字串
載入中...
maxPriorityFeePerGas
字串
載入中...
值
字串
載入中...
輸入
字串
載入中...
資料
字串
載入中...
非重複數
字串
載入中...
chainId
字串
載入中...
accessList
陣列
載入中...
authorizationList
陣列
載入中...
請求
1curl -X POST "https://docs-demo.monad-mainnet.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "eth_fillTransaction",6"params": [7{8"from": "0x51239f87c33e95e3bdb72e31d06b5306bcec81cc",9"to": "0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee",10"gas": "0x9999",11"maxFeePerGas": "0xbb43b7400",12"value": "0x1"13}14],15"id": 116}'
1curl -X POST "https://docs-demo.monad-mainnet.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "eth_fillTransaction",6"params": [7{8"from": "0x51239f87c33e95e3bdb72e31d06b5306bcec81cc",9"to": "0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee",10"gas": "0x9999",11"maxFeePerGas": "0xbb43b7400",12"value": "0x1"13}14],15"id": 116}'
1import { ethers } from "ethers";23async 函式 main() {4const provider = new ethers.JsonRpcProvider("https://docs-demo.monad-mainnet.quiknode.pro/");5const response = await provider.send("eth_fillTransaction", [6{7"from": "0x51239f87c33e95e3bdb72e31d06b5306bcec81cc",8"to": "0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee",9"gas": "0x9999",10"maxFeePerGas": "0xbb43b7400",11"value": "0x1"12}13]);14控制台.日誌(回應);15}1617主頁();
1import { ethers } from "ethers";23async 函式 main() {4const provider = new ethers.JsonRpcProvider("https://docs-demo.monad-mainnet.quiknode.pro/");5const response = await provider.send("eth_fillTransaction", [6{7"from": "0x51239f87c33e95e3bdb72e31d06b5306bcec81cc",8"to": "0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee",9"gas": "0x9999",10"maxFeePerGas": "0xbb43b7400",11"value": "0x1"12}13]);14控制台.日誌(回應);15}1617主頁();
1來源: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.monad-mainnet.quiknode.pro/'))3response = w3.provider.make_request("eth_fillTransaction", [{"from":"0x51239f87c33e95e3bdb72e31d06b5306bcec81cc","to":"0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee","gas":"0x9999","maxFeePerGas":"0xbb43b7400","value":"0x1"}])4列印(回應)
1來源: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.monad-mainnet.quiknode.pro/'))3response = w3.provider.make_request("eth_fillTransaction", [{"from":"0x51239f87c33e95e3bdb72e31d06b5306bcec81cc","to":"0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee","gas":"0x9999","maxFeePerGas":"0xbb43b7400","value":"0x1"}])4列印(回應)
1匯入 { 建立公開客戶端, http } 來自 'viem'23async 函式 main() {4const 客戶端 = 建立公開客戶端({5transport: http('https://docs-demo.monad-mainnet.quiknode.pro/')6})78const 結果 = await client.request({9method: 'eth_fillTransaction',10參數: [11{12"from": "0x51239f87c33e95e3bdb72e31d06b5306bcec81cc",13"to": "0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee",14"gas": "0x9999",15"maxFeePerGas": "0xbb43b7400",16"value": "0x1"17}18]19})2021控制台.日誌(結果)22}2324主頁()
1匯入 { 建立公開客戶端, http } 來自 'viem'23async 函式 main() {4const 客戶端 = 建立公開客戶端({5transport: http('https://docs-demo.monad-mainnet.quiknode.pro/')6})78const 結果 = await client.request({9method: 'eth_fillTransaction',10參數: [11{12"from": "0x51239f87c33e95e3bdb72e31d06b5306bcec81cc",13"to": "0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee",14"gas": "0x9999",15"maxFeePerGas": "0xbb43b7400",16"value": "0x1"17}18]19})2021控制台.日誌(結果)22}2324主頁()
1import { QuicknodeSdk } from '@quicknode/sdk'23const qn = new QuicknodeSdk({})45const result = await qn.rpc.call(6'eth_fillTransaction',7[8{9"from": "0x51239f87c33e95e3bdb72e31d06b5306bcec81cc",10"to": "0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee",11"gas": "0x9999",12"maxFeePerGas": "0xbb43b7400",13"value": "0x1"14}15],16undefined,17'https://docs-demo.monad-mainnet.quiknode.pro/'18)1920console.log(result)
1import { QuicknodeSdk } from '@quicknode/sdk'23const qn = new QuicknodeSdk({})45const result = await qn.rpc.call(6'eth_fillTransaction',7[8{9"from": "0x51239f87c33e95e3bdb72e31d06b5306bcec81cc",10"to": "0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee",11"gas": "0x9999",12"maxFeePerGas": "0xbb43b7400",13"value": "0x1"14}15],16undefined,17'https://docs-demo.monad-mainnet.quiknode.pro/'18)1920console.log(result)
1import asyncio2from quicknode_sdk import QuicknodeSdk, SdkFullConfig34async def main():5qn = QuicknodeSdk(SdkFullConfig(api_key=None))6result = await qn.rpc.call(7"eth_fillTransaction",8[9{10"from": "0x51239f87c33e95e3bdb72e31d06b5306bcec81cc",11"to": "0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee",12"gas": "0x9999",13"maxFeePerGas": "0xbb43b7400",14"value": "0x1"15}16],17endpoint_url="https://docs-demo.monad-mainnet.quiknode.pro/",18)19print(result)2021asyncio.run(main())
1import asyncio2from quicknode_sdk import QuicknodeSdk, SdkFullConfig34async def main():5qn = QuicknodeSdk(SdkFullConfig(api_key=None))6result = await qn.rpc.call(7"eth_fillTransaction",8[9{10"from": "0x51239f87c33e95e3bdb72e31d06b5306bcec81cc",11"to": "0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee",12"gas": "0x9999",13"maxFeePerGas": "0xbb43b7400",14"value": "0x1"15}16],17endpoint_url="https://docs-demo.monad-mainnet.quiknode.pro/",18)19print(result)2021asyncio.run(main())
1require "quicknode_sdk"23qn = QuicknodeSdk::SDK.from_config(api_key: nil)45result = qn.rpc.call(6method: "eth_fillTransaction",7params: [8{9"from" => "0x51239f87c33e95e3bdb72e31d06b5306bcec81cc",10"to" => "0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee",11"gas" => "0x9999",12"maxFeePerGas" => "0xbb43b7400",13"value" => "0x1"14}15],16endpoint_url: "https://docs-demo.monad-mainnet.quiknode.pro/"17)1819puts result
1require "quicknode_sdk"23qn = QuicknodeSdk::SDK.from_config(api_key: nil)45result = qn.rpc.call(6method: "eth_fillTransaction",7params: [8{9"from" => "0x51239f87c33e95e3bdb72e31d06b5306bcec81cc",10"to" => "0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee",11"gas" => "0x9999",12"maxFeePerGas" => "0xbb43b7400",13"value" => "0x1"14}15],16endpoint_url: "https://docs-demo.monad-mainnet.quiknode.pro/"17)1819puts result
1use quicknode_sdk::{QuicknodeSdk, SdkFullConfig};23#[tokio::main]4async fn main() -> Result<(), Box<dyn std::error::Error>> {5let qn = QuicknodeSdk::new(&SdkFullConfig::keyless())?;6let result = qn7.rpc8.call(9"eth_fillTransaction",10Some(serde_json::json!([11{12"from": "0x51239f87c33e95e3bdb72e31d06b5306bcec81cc",13"to": "0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee",14"gas": "0x9999",15"maxFeePerGas": "0xbb43b7400",16"value": "0x1"17}18])),19None,20Some("https://docs-demo.monad-mainnet.quiknode.pro/".into()),21)22.await?;2324println!("{result}");25Ok(())26}
1use quicknode_sdk::{QuicknodeSdk, SdkFullConfig};23#[tokio::main]4async fn main() -> Result<(), Box<dyn std::error::Error>> {5let qn = QuicknodeSdk::new(&SdkFullConfig::keyless())?;6let result = qn7.rpc8.call(9"eth_fillTransaction",10Some(serde_json::json!([11{12"from": "0x51239f87c33e95e3bdb72e31d06b5306bcec81cc",13"to": "0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee",14"gas": "0x9999",15"maxFeePerGas": "0xbb43b7400",16"value": "0x1"17}18])),19None,20Some("https://docs-demo.monad-mainnet.quiknode.pro/".into()),21)22.await?;2324println!("{result}");25Ok(())26}
1const 正文 = {2jsonrpc: '2.0',3method: 'eth_fillTransaction',4params: [{"from":"0x51239f87c33e95e3bdb72e31d06b5306bcec81cc","to":"0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee","gas":"0x9999","maxFeePerGas":"0xbb43b7400","value":"0x1"}],5id: 16}78async 函式 main() {9const response = await fetch('https://docs-demo.monad-mainnet.quiknode.pro/', {10方法: 'POST',11headers: {'Content-Type': 'application/json'},12正文: JSON.stringify(body)13})14const 資料 = await response.json()15控制台.日誌(資料)16}1718主頁()
1const 正文 = {2jsonrpc: '2.0',3method: 'eth_fillTransaction',4params: [{"from":"0x51239f87c33e95e3bdb72e31d06b5306bcec81cc","to":"0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee","gas":"0x9999","maxFeePerGas":"0xbb43b7400","value":"0x1"}],5id: 16}78async 函式 main() {9const response = await fetch('https://docs-demo.monad-mainnet.quiknode.pro/', {10方法: 'POST',11headers: {'Content-Type': 'application/json'},12正文: JSON.stringify(body)13})14const 資料 = await response.json()15控制台.日誌(資料)16}1718主頁()
1匯入 請求2匯入 json34url = "https://docs-demo.monad-mainnet.quiknode.pro/"56有效載荷 = json.dumps({7"jsonrpc": "2.0",8"method": "eth_fillTransaction",9"params": [10{11"from": "0x51239f87c33e95e3bdb72e31d06b5306bcec81cc",12"to": "0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee",13"gas": "0x9999",14"maxFeePerGas": "0xbb43b7400",15"value": "0x1"16}17],18"id": 119})20標題 = {21「Content-Type」: 'application/json'22}2324回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)2526列印(回應.text)
1匯入 請求2匯入 json34url = "https://docs-demo.monad-mainnet.quiknode.pro/"56有效載荷 = json.dumps({7"jsonrpc": "2.0",8"method": "eth_fillTransaction",9"params": [10{11"from": "0x51239f87c33e95e3bdb72e31d06b5306bcec81cc",12"to": "0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee",13"gas": "0x9999",14"maxFeePerGas": "0xbb43b7400",15"value": "0x1"16}17],18"id": 119})20標題 = {21「Content-Type」: 'application/json'22}2324回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)2526列印(回應.text)
1需要 "uri"2require "json"3需要 "net/http"45uri = URI("https://docs-demo.monad-mainnet.quiknode.pro/")67有效載荷 = {8jsonrpc: "2.0",9id: 1,10method: "eth_fillTransaction",11params: [{"from":"0x51239f87c33e95e3bdb72e31d06b5306bcec81cc","to":"0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee","gas":"0x9999","maxFeePerGas":"0xbb43b7400","value":"0x1"}]12}1314請求 = 淨額::HTTP::POST.新增(URI)15請求["Content-Type"] = "application/json"16請求。主體 = JSON.generate(有效載荷)1718回應 = 淨::HTTP.開始(uri.主機, uri.port, use_ssl: true) 執行 |http|19http.請求(請求)20結束2122puts 回應。正文
1需要 "uri"2require "json"3需要 "net/http"45uri = URI("https://docs-demo.monad-mainnet.quiknode.pro/")67有效載荷 = {8jsonrpc: "2.0",9id: 1,10method: "eth_fillTransaction",11params: [{"from":"0x51239f87c33e95e3bdb72e31d06b5306bcec81cc","to":"0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee","gas":"0x9999","maxFeePerGas":"0xbb43b7400","value":"0x1"}]12}1314請求 = 淨額::HTTP::POST.新增(URI)15請求["Content-Type"] = "application/json"16請求。主體 = JSON.generate(有效載荷)1718回應 = 淨::HTTP.開始(uri.主機, uri.port, use_ssl: true) 執行 |http|19http.請求(請求)20結束2122puts 回應。正文
回應
1{2"jsonrpc": "2.0",3"result": {4"raw": "0x02ea82279f80847735940085174876e800829999948c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee0180c0",5"tx": {6"from": "0x51239f87c33e95e3bdb72e31d06b5306bcec81cc",7"to": "0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee",8"gas": "0x9999",9"maxFeePerGas": "0x174876e800",10"maxPriorityFeePerGas": "0x77359400",11"value": "0x1",12"input": null,13"data": null,14"nonce": "0x0",15"chainId": "0x279f",16"accessList": null,17"authorizationList": null18}19},20"id": 121}
1{2"jsonrpc": "2.0",3"result": {4"raw": "0x02ea82279f80847735940085174876e800829999948c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee0180c0",5"tx": {6"from": "0x51239f87c33e95e3bdb72e31d06b5306bcec81cc",7"to": "0x8c9f4468ae04fb3d79c80f6eacf0e4e1dd21deee",8"gas": "0x9999",9"maxFeePerGas": "0x174876e800",10"maxPriorityFeePerGas": "0x77359400",11"value": "0x1",12"input": null,13"data": null,14"nonce": "0x0",15"chainId": "0x279f",16"accessList": null,17"authorizationList": null18}19},20"id": 121}