EXPERIMENTAL_changes-{contract_code_changes} RPC Method
Parâmetros
changes_type
cadeia de caracteres
Carregando...
account_ids
matriz
Carregando...
finality
cadeia de caracteres
Carregando...
block_id
integer/string
Carregando...
Devoluções
block_hash
Carregando...
changes
Carregando...
cause
Carregando...
tipo
Carregando...
tx_hash/receipt_hash
Carregando...
tipo
Carregando...
change
Carregando...
account_id
Carregando...
code_base64
Carregando...
Pedido
1curl https://docs-demo.near-mainnet.quiknode.pro/ \2--request POST \3--header "Content-Type: application/json" \4--data '{"method": "EXPERIMENTAL_changes","params": {"changes_type": "contract_code_changes", "account_ids": ["prophet.poolv1.near", "kiln.poolv1.near"], "block_id": 80712125},"id":1,"jsonrpc":"2.0"}'
1curl https://docs-demo.near-mainnet.quiknode.pro/ \2--request POST \3--header "Content-Type: application/json" \4--data '{"method": "EXPERIMENTAL_changes","params": {"changes_type": "contract_code_changes", "account_ids": ["prophet.poolv1.near", "kiln.poolv1.near"], "block_id": 80712125},"id":1,"jsonrpc":"2.0"}'
1var myHeaders = new Headers();2myHeaders.acrescentar("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "EXPERIMENTAL_changes",6"params": {7"changes_type": "contract_code_changes",8"account_ids": [9"prophet.poolv1.near",10"kiln.poolv1.near"11],12"block_id": 8071212513},14"id": 1,15"jsonrpc": "2.0"16});1718var requestOptions = {19método: 'POST',20cabeçalhos: myHeaders,21body: raw,22redirect: 'follow'23};2425fetch("https://docs-demo.near-mainnet.quiknode.pro/", requestOptions)26.then(response => response.text())27.then(result => console.log(result))28.catch(error => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.acrescentar("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "EXPERIMENTAL_changes",6"params": {7"changes_type": "contract_code_changes",8"account_ids": [9"prophet.poolv1.near",10"kiln.poolv1.near"11],12"block_id": 8071212513},14"id": 1,15"jsonrpc": "2.0"16});1718var requestOptions = {19método: 'POST',20cabeçalhos: myHeaders,21body: raw,22redirect: 'follow'23};2425fetch("https://docs-demo.near-mainnet.quiknode.pro/", requestOptions)26.then(response => response.text())27.then(result => console.log(result))28.catch(error => console.log('error', error));
1importar pedidos2import json34url = "https://docs-demo.near-mainnet.quiknode.pro/"56carga útil = json.dumps({7"method": "EXPERIMENTAL_changes",8"params": {9"changes_type": "contract_code_changes",10"account_ids": [11"prophet.poolv1.near",12"kiln.poolv1.near"13],14"block_id": 8071212515},16"id": 1,17"jsonrpc": "2.0"18})19cabeçalhos = {20'Content-Type': 'application/json'21}2223resposta = pedidos.pedido("POST", url, headers=headers, dados=carga útil)2425imprimir(resposta.texto)26
1importar pedidos2import json34url = "https://docs-demo.near-mainnet.quiknode.pro/"56carga útil = json.dumps({7"method": "EXPERIMENTAL_changes",8"params": {9"changes_type": "contract_code_changes",10"account_ids": [11"prophet.poolv1.near",12"kiln.poolv1.near"13],14"block_id": 8071212515},16"id": 1,17"jsonrpc": "2.0"18})19cabeçalhos = {20'Content-Type': 'application/json'21}2223resposta = pedidos.pedido("POST", url, headers=headers, dados=carga útil)2425imprimir(resposta.texto)26
1exigir "uri"2require "json"3necessita de "net/http"45url = URI("https://docs-demo.near-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.host, url.port);8https.use_ssl = true9pedido = Líquido::HTTP::POST.novo(url)10pedido["Content-Type"] = "application/json"11request.body = JSON.dump({12"method": "EXPERIMENTAL_changes",13"params": {14"changes_type": "contract_code_changes",15"account_ids": [16"prophet.poolv1.near",17"kiln.poolv1.near"18],19"block_id": 8071212520},21"id": 1,22"jsonrpc": "2.0"23})2425resposta = https.pedido(pedido)26insere a resposta.read_body27
1exigir "uri"2require "json"3necessita de "net/http"45url = URI("https://docs-demo.near-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.host, url.port);8https.use_ssl = true9pedido = Líquido::HTTP::POST.novo(url)10pedido["Content-Type"] = "application/json"11request.body = JSON.dump({12"method": "EXPERIMENTAL_changes",13"params": {14"changes_type": "contract_code_changes",15"account_ids": [16"prophet.poolv1.near",17"kiln.poolv1.near"18],19"block_id": 8071212520},21"id": 1,22"jsonrpc": "2.0"23})2425resposta = https.pedido(pedido)26insere a resposta.read_body27
Ainda não tem uma conta?
Crieendpoint seuendpoint Quicknode endpoint segundos e comece a desenvolver
Comece gratuitamente