/wallet/createspendauthsig REST API Endpoint
Body Parameters
ask
string
REQUIRED
Loading...
tx_hash
string
REQUIRED
Loading...
alpha
string
REQUIRED
Loading...
Returns
value
Loading...
Request
curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/createspendauthsig \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data '{ "ask": "0f63eabdfe2bbfe08012f6bb2db024e6809c16e8ed055aa41a6095424f192005", "tx_hash": "7fb99e66df052f430d50e80a3f197c319a4e35184ed48a433d6219e025741337", "alpha": "d0f0768664f5c807f9e70d05993f029c71da529afaa5c037b44c63d6e13bc907" } '
fetch("https://docs-demo.tron-mainnet.quiknode.pro/wallet/createspendauthsig", { method: 'POST', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, body: JSON.stringify({ "ask": "0f63eabdfe2bbfe08012f6bb2db024e6809c16e8ed055aa41a6095424f192005", "tx_hash": "7fb99e66df052f430d50e80a3f197c319a4e35184ed48a433d6219e025741337", "alpha": "d0f0768664f5c807f9e70d05993f029c71da529afaa5c037b44c63d6e13bc907" }) }) .then(response => response.json()) .then(data => { // Handle the response data console.log(data); }) .catch(error => { // Handle any errors console.error(error); });
import requests import json url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/createspendauthsig" headers = { 'Accept': 'application/json', 'Content-Type': 'application/json' } data = { "ask": "0f63eabdfe2bbfe08012f6bb2db024e6809c16e8ed055aa41a6095424f192005", "tx_hash": "7fb99e66df052f430d50e80a3f197c319a4e35184ed48a433d6219e025741337", "alpha": "d0f0768664f5c807f9e70d05993f029c71da529afaa5c037b44c63d6e13bc907" } response = requests.post(url, headers=headers, json=data) if response.status_code == 200: # Successful request data = response.json() # Handle the response data print(data) else: # Request encountered an error print("Error:", response.status_code)
require 'net/http' require 'json' url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/createspendauthsig") http = Net::HTTP.new(url.host, url.port) request = Net::HTTP::Post.new(url) request["Accept"] = 'application/json' request["Content-Type"] = 'application/json' request.body = { "ask": "0f63eabdfe2bbfe08012f6bb2db024e6809c16e8ed055aa41a6095424f192005", "tx_hash": "7fb99e66df052f430d50e80a3f197c319a4e35184ed48a433d6219e025741337", "alpha": "d0f0768664f5c807f9e70d05993f029c71da529afaa5c037b44c63d6e13bc907" }.to_json response = http.request(request) if response.code == "200" # Successful request data = JSON.parse(response.body) # Handle the response data puts data else # Request encountered an error puts "
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free