/walletsolidity/isshieldedtrc20contractnotespent REST API Endpoint
Paramètres du corps
ak
chaîne de caractères
OBLIGATOIRE
Chargement...
nk
chaîne de caractères
OBLIGATOIRE
Chargement...
position
chaîne de caractères
OBLIGATOIRE
Chargement...
shielded_TRC20_contract_address
chaîne de caractères
OBLIGATOIRE
Chargement...
Renvoie
is_spent
Chargement...
Requête
1curl https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/isshieldedtrc20contractnotespent \2--header 'accept: application/json' \3--header 'content-type: application/json'4--data '{5"ak": "ADDRESS_KEY",6"nk": "NOTE_KEY",7"position": "POSITION",8"shielded_TRC20_contract_address": "CONTRACT_ADDRESS"9}10'
1curl https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/isshieldedtrc20contractnotespent \2--header 'accept: application/json' \3--header 'content-type: application/json'4--data '{5"ak": "ADDRESS_KEY",6"nk": "NOTE_KEY",7"position": "POSITION",8"shielded_TRC20_contract_address": "CONTRACT_ADDRESS"9}10'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/isshieldedtrc20contractnotespent';23const data = {4ak: "ADDRESS_KEY",5nk: "NOTE_KEY",6position: "POSITION",7shielded_TRC20_contract_address: "CONTRACT_ADDRESS"8};910fetch(url, {11method: 'POST',12headers: {13'accept': 'application/json',14'content-type': 'application/json'15},16body: JSON.stringify(data)17})18.then(response => response.json())19.then(data => console.log(data))20.catch(error => console.error(error));21
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/isshieldedtrc20contractnotespent';23const data = {4ak: "ADDRESS_KEY",5nk: "NOTE_KEY",6position: "POSITION",7shielded_TRC20_contract_address: "CONTRACT_ADDRESS"8};910fetch(url, {11method: 'POST',12headers: {13'accept': 'application/json',14'content-type': 'application/json'15},16body: JSON.stringify(data)17})18.then(response => response.json())19.then(data => console.log(data))20.catch(error => console.error(error));21
1import requests23url = "https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/isshieldedtrc20contractnotespent"45data = {6'ak': 'ADDRESS_KEY',7'nk': 'NOTE_KEY',8'position': 'POSITION',9'shielded_TRC20_contract_address': 'CONTRACT_ADDRESS'10}1112headers = {13'accept': 'application/json',14'content-type': 'application/json'15}1617response = requests.post(url, json=data, headers=headers)18print(response.json())19
1import requests23url = "https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/isshieldedtrc20contractnotespent"45data = {6'ak': 'ADDRESS_KEY',7'nk': 'NOTE_KEY',8'position': 'POSITION',9'shielded_TRC20_contract_address': 'CONTRACT_ADDRESS'10}1112headers = {13'accept': 'application/json',14'content-type': 'application/json'15}1617response = requests.post(url, json=data, headers=headers)18print(response.json())19
1require "uri"2require "net/http"3require 'json'45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/isshieldedtrc20contractnotespent")67data = {8'ak' => 'ADDRESS_KEY',9'nk' => 'NOTE_KEY',10'position' => 'POSITION',11'shielded_TRC20_contract_address' => 'CONTRACT_ADDRESS'12}1314headers = {15'accept' => 'application/json',16'content-type' => 'application/json'17}1819http = Net::HTTP.new(url.host, url.port)20http.use_ssl = true2122request = Net::HTTP::Post.new(url.path, headers)23request.body = data.to_json2425response = http.request(request)26puts response.body27
1require "uri"2require "net/http"3require 'json'45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/isshieldedtrc20contractnotespent")67data = {8'ak' => 'ADDRESS_KEY',9'nk' => 'NOTE_KEY',10'position' => 'POSITION',11'shielded_TRC20_contract_address' => 'CONTRACT_ADDRESS'12}1314headers = {15'accept' => 'application/json',16'content-type' => 'application/json'17}1819http = Net::HTTP.new(url.host, url.port)20http.use_ssl = true2122request = Net::HTTP::Post.new(url.path, headers)23request.body = data.to_json2425response = http.request(request)26puts response.body27
Vous n'avez pas encore de compte ?
Créez votre endpoint Quicknode en quelques secondes et commencez à développer
Commencez gratuitement