query-{view_account} RPC Method
Parâmetros
request_type
cadeia de caracteres
Carregando...
finality
cadeia de caracteres
Carregando...
block_id
integer/string
Carregando...
account_id
cadeia de caracteres
Carregando...
Devoluções
quantia
Carregando...
locked
Carregando...
code_hash
Carregando...
storage_usage
Carregando...
storage_paid_at
Carregando...
altura_do_bloco
Carregando...
block_hash
Carregando...
Pedido
1curl https://docs-demo.near-mainnet.quiknode.pro/ \2--request POST \3--header "Content-Type: application/json" \4--data '{"method": "query","params": {"request_type": "view_account", "finality": "final", "account_id": "prophet.poolv1.near"},"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": "query","params": {"request_type": "view_account", "finality": "final", "account_id": "prophet.poolv1.near"},"id":1,"jsonrpc":"2.0"}'
1var myHeaders = new Headers();2myHeaders.acrescentar("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "query",6"params": {7"request_type": "view_account",8"finality": "final",9"account_id": "prophet.poolv1.near"10},11"id": 1,12"jsonrpc": "2.0"13});1415var requestOptions = {16método: 'POST',17cabeçalhos: myHeaders,18body: raw,19redirect: 'follow'20};2122fetch("https://docs-demo.near-mainnet.quiknode.pro/", requestOptions)23.then(response => response.text())24.then(result => console.log(result))25.catch(error => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.acrescentar("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "query",6"params": {7"request_type": "view_account",8"finality": "final",9"account_id": "prophet.poolv1.near"10},11"id": 1,12"jsonrpc": "2.0"13});1415var requestOptions = {16método: 'POST',17cabeçalhos: myHeaders,18body: raw,19redirect: 'follow'20};2122fetch("https://docs-demo.near-mainnet.quiknode.pro/", requestOptions)23.then(response => response.text())24.then(result => console.log(result))25.catch(error => console.log('error', error));
1importar pedidos2import json34url = "https://docs-demo.near-mainnet.quiknode.pro/"56carga útil = json.dumps({7"method": "query",8"params": {9"request_type": "view_account",10"finality": "final",11"account_id": "prophet.poolv1.near"12},13"id": 1,14"jsonrpc": "2.0"15})16cabeçalhos = {17'Content-Type': 'application/json'18}1920resposta = pedidos.pedido("POST", url, headers=headers, dados=carga útil)2122imprimir(resposta.texto)23
1importar pedidos2import json34url = "https://docs-demo.near-mainnet.quiknode.pro/"56carga útil = json.dumps({7"method": "query",8"params": {9"request_type": "view_account",10"finality": "final",11"account_id": "prophet.poolv1.near"12},13"id": 1,14"jsonrpc": "2.0"15})16cabeçalhos = {17'Content-Type': 'application/json'18}1920resposta = pedidos.pedido("POST", url, headers=headers, dados=carga útil)2122imprimir(resposta.texto)23
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": "query",13"params": {14"request_type": "view_account",15"finality": "final",16"account_id": "prophet.poolv1.near"17},18"id": 1,19"jsonrpc": "2.0"20})2122resposta = https.pedido(pedido)23insere a resposta.read_body24
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": "query",13"params": {14"request_type": "view_account",15"finality": "final",16"account_id": "prophet.poolv1.near"17},18"id": 1,19"jsonrpc": "2.0"20})2122resposta = https.pedido(pedido)23insere a resposta.read_body24
Ainda não tem uma conta?
Crieendpoint seuendpoint Quicknode endpoint segundos e comece a desenvolver
Comece gratuitamente