/wallet/getaccountbalance REST API Endpoint
Parâmetros corporais
account_identifier
objeto
OBRIGATÓRIO
A carregar...
morada
cadeia de caracteres
A carregar...
block_identifier
objeto
OBRIGATÓRIO
A carregar...
hash
cadeia de caracteres
A carregar...
número
número inteiro
A carregar...
visible
booleano
A carregar...
Devoluções
saldo
A carregar...
block_identifier
A carregar...
hash
A carregar...
número
A carregar...
Pedido
1curl --location 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountbalance' \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--dados '{5"account_identifier": {6"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"7},8"block_identifier": {9"hash": "0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9",10"number": 6868211},12"visible": true13}'
1curl --location 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountbalance' \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--dados '{5"account_identifier": {6"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"7},8"block_identifier": {9"hash": "0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9",10"number": 6868211},12"visible": true13}'
1const myHeaders = new Headers();2myHeaders.acrescentar("accept", "application/json");3myHeaders.append("content-type", "application/json");45const raw = JSON.stringify({6"account_identifier": {7"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"8},9"block_identifier": {10"hash": "0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9",11"number": 6868212},13"visible": true14});1516const requestOptions = {17método: "POST",18cabeçalhos: myHeaders,19corpo: raw,20redirecionar: "seguir"21};2223fetch("https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountbalance", requestOptions)24.então((resposta) => resposta.texto())25.então((resultado) => console.log(resultado))26.catch((erro) => console.erro(erro));
1const myHeaders = new Headers();2myHeaders.acrescentar("accept", "application/json");3myHeaders.append("content-type", "application/json");45const raw = JSON.stringify({6"account_identifier": {7"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"8},9"block_identifier": {10"hash": "0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9",11"number": 6868212},13"visible": true14});1516const requestOptions = {17método: "POST",18cabeçalhos: myHeaders,19corpo: raw,20redirecionar: "seguir"21};2223fetch("https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountbalance", requestOptions)24.então((resposta) => resposta.texto())25.então((resultado) => console.log(resultado))26.catch((erro) => console.erro(erro));
1importar pedidos2import json34url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountbalance"56carga útil = json.dumps({7"account_identifier": {8"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"9},10"block_identifier": {11"hash": "0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9",12"number": 6868213},14"visible": True15})16cabeçalhos = {17«aceitar»: 'application/json',18'content-type': 'application/json'19}2021resposta = pedidos.pedido("POST", url, headers=headers, dados=carga útil)2223imprimir(resposta.texto)24
1importar pedidos2import json34url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountbalance"56carga útil = json.dumps({7"account_identifier": {8"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"9},10"block_identifier": {11"hash": "0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9",12"number": 6868213},14"visible": True15})16cabeçalhos = {17«aceitar»: 'application/json',18'content-type': 'application/json'19}2021resposta = pedidos.pedido("POST", url, headers=headers, dados=carga útil)2223imprimir(resposta.texto)24
1exigir "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountbalance")67https = Net::HTTP.novo(url.host, url.porta)8https.use_ssl = true910pedido = Líquido::HTTP::POST.novo(url)11pedido["aceitar"] = "application/json"12request["content-type"] = "application/json"13pedido.corpo = JSON.dump({14"account_identifier": {15"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"16},17"block_identifier": {18"hash": "0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9",19"number": 6868220},21"visible": true22})2324resposta = https.pedido(pedido)25insere a resposta.read_body26
1exigir "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountbalance")67https = Net::HTTP.novo(url.host, url.porta)8https.use_ssl = true910pedido = Líquido::HTTP::POST.novo(url)11pedido["aceitar"] = "application/json"12request["content-type"] = "application/json"13pedido.corpo = JSON.dump({14"account_identifier": {15"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"16},17"block_identifier": {18"hash": "0000000000010c4a732d1e215e87466271e425c86945783c3d3f122bfa5affd9",19"number": 6868220},21"visible": true22})2324resposta = https.pedido(pedido)25insere a resposta.read_body26
Ainda não tem uma conta?
Crie o seu ponto de extremidade Quicknode em segundos e comece a desenvolver
Comece gratuitamente