bor_getAuthor RPC Method
Parameters
blockNumber
string
REQUIRED
Loading...
Returns
result
Loading...
Request
1curl https://docs-demo.matic.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"jsonrpc":"2.0","method":"bor_getAuthor","params":["0x1000"], "id":1}'
1curl https://docs-demo.matic.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"jsonrpc":"2.0","method":"bor_getAuthor","params":["0x1000"], "id":1}'
1require 'eth'2client = Eth::Client.create 'https://docs-demo.matic.quiknode.pro/'3payload = {4"jsonrpc": "2.0",5"method": "bor_getAuthor",6"params": ['0x1000'],7"id": "1"8}9response = client.send(payload.to_json)10puts response
1require 'eth'2client = Eth::Client.create 'https://docs-demo.matic.quiknode.pro/'3payload = {4"jsonrpc": "2.0",5"method": "bor_getAuthor",6"params": ['0x1000'],7"id": "1"8}9response = client.send(payload.to_json)10puts response
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider("https://docs-demo.matic.quiknode.pro/");4const response = await provider.send("bor_getAuthor", ["0x1000"]);5console.log(response);6})();7
1import { ethers } from "ethers";2(async () => {3const provider = new ethers.JsonRpcProvider("https://docs-demo.matic.quiknode.pro/");4const response = await provider.send("bor_getAuthor", ["0x1000"]);5console.log(response);6})();7
1var myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34var raw = JSON.stringify({5"jsonrpc": "2.0",6"method": "bor_getAuthor",7"params": [8"0x1000"9],10"id": 111});1213var requestOptions = {14method: 'POST',15headers: myHeaders,16body: raw,17redirect: 'follow'18};1920fetch("https://docs-demo.matic.quiknode.pro/", requestOptions)21.then(response => response.text())22.then(result => console.log(result))23.catch(error => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34var raw = JSON.stringify({5"jsonrpc": "2.0",6"method": "bor_getAuthor",7"params": [8"0x1000"9],10"id": 111});1213var requestOptions = {14method: 'POST',15headers: myHeaders,16body: raw,17redirect: 'follow'18};1920fetch("https://docs-demo.matic.quiknode.pro/", requestOptions)21.then(response => response.text())22.then(result => console.log(result))23.catch(error => console.log('error', error));
1import requests2import json34url = "https://docs-demo.matic.quiknode.pro/"56payload = json.dumps({7"jsonrpc": "2.0",8"method": "bor_getAuthor",9"params": [10"0x1000"11],12"id": 113})14headers = {15'Content-Type': 'application/json'16}1718response = requests.request("POST", url, headers=headers, data=payload)1920print(response.text)21
1import requests2import json34url = "https://docs-demo.matic.quiknode.pro/"56payload = json.dumps({7"jsonrpc": "2.0",8"method": "bor_getAuthor",9"params": [10"0x1000"11],12"id": 113})14headers = {15'Content-Type': 'application/json'16}1718response = requests.request("POST", url, headers=headers, data=payload)1920print(response.text)21
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.matic.quiknode.pro/")67https = Net::HTTP.new(url.host, url.port)8https.use_ssl = true910request = Net::HTTP::Post.new(url)11request["Content-Type"] = "application/json"12request.body = JSON.dump({13"jsonrpc": "2.0",14"method": "bor_getAuthor",15"params": [16"0x1000"17],18"id": 119})2021response = https.request(request)22puts response.read_body23
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.matic.quiknode.pro/")67https = Net::HTTP.new(url.host, url.port)8https.use_ssl = true910request = Net::HTTP::Post.new(url)11request["Content-Type"] = "application/json"12request.body = JSON.dump({13"jsonrpc": "2.0",14"method": "bor_getAuthor",15"params": [16"0x1000"17],18"id": 119})2021response = https.request(request)22puts response.read_body23
1from web3 import HTTPProvider2client = HTTPProvider('https://docs-demo.matic.quiknode.pro/')3params = ['0x1000']4response = client.make_request('bor_getAuthor', params)5print(response)
1from web3 import HTTPProvider2client = HTTPProvider('https://docs-demo.matic.quiknode.pro/')3params = ['0x1000']4response = client.make_request('bor_getAuthor', params)5print(response)
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free