/wallet/createshieldedcontractparameters REST API Endpoint
身体パラメータ
ovk
文字列
必須
読み込み中...
from_amount
文字列
必須
読み込み中...
to_amount
文字列
必須
読み込み中...
transparent_to_address
文字列
必須
読み込み中...
shielded_TRC20_contract_address
文字列
必須
読み込み中...
shielded_receives
オブジェクト
必須
読み込み中...
shielded_spends
オブジェクト
必須
読み込み中...
ask
文字列
必須
読み込み中...
nsk
文字列
必須
読み込み中...
返品
binding_signature
読み込み中...
message_hash
読み込み中...
trigger_contract_input
読み込み中...
parameter_type
読み込み中...
receive_description
読み込み中...
value_commitment
読み込み中...
note_commitment
読み込み中...
epk
読み込み中...
c_enc
読み込み中...
c_out
読み込み中...
zkproof
読み込み中...
リクエスト
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/createshieldedcontractparameters \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '{5"ovk": "1797de3b7f33cafffe3fe18c6b43ec6760add2ad81b10978d1fca5290497ede9",6"from_amount": "5000",7"shielded_receives": {8"note": {9"value": 50,10"payment_address": "ztron15js0jkuxczt8caq5hp59rnh6rgf34sek7vqn9u6ljelxv4nuzz2x9qe3ffm2wzz6ck53yxyhxs6",11"rcm": "74baec30dfac8ed59968955ff245ae002009005194e5b824c35ab88c52e5170e"12}13},14"shielded_TRC20_contract_address": "41f3392eaa7d38749176e0671dbc6912f8ef956943"15}16'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/createshieldedcontractparameters \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '{5"ovk": "1797de3b7f33cafffe3fe18c6b43ec6760add2ad81b10978d1fca5290497ede9",6"from_amount": "5000",7"shielded_receives": {8"note": {9"value": 50,10"payment_address": "ztron15js0jkuxczt8caq5hp59rnh6rgf34sek7vqn9u6ljelxv4nuzz2x9qe3ffm2wzz6ck53yxyhxs6",11"rcm": "74baec30dfac8ed59968955ff245ae002009005194e5b824c35ab88c52e5170e"12}13},14"shielded_TRC20_contract_address": "41f3392eaa7d38749176e0671dbc6912f8ef956943"15}16'
1fetch("https://docs-demo.tron-mainnet.quiknode.pro/wallet/createshieldedcontractparameters", {2メソッド: 'POST',3headers: {4「承諾」: 'application/json',5「Content-Type」: 'application/json'6},7body: JSON.stringify({8"ovk": "1797de3b7f33cafffe3fe18c6b43ec6760add2ad81b10978d1fca5290497ede9",9"from_amount": "5000",10"shielded_receives": {11"note": {12"value": 50,13"payment_address": "ztron15js0jkuxczt8caq5hp59rnh6rgf34sek7vqn9u6ljelxv4nuzz2x9qe3ffm2wzz6ck53yxyhxs6",14"rcm": "74baec30dfac8ed59968955ff245ae002009005194e5b824c35ab88c52e5170e"15}16},17"shielded_TRC20_contract_address": "41f3392eaa7d38749176e0671dbc6912f8ef956943"18})19})20.その後(レスポンス => レスポンス.json())21.then(data => {22// Handle the response data23コンソール.log(データ);24})25.catchcatch(エラー => {26// Handle any errors27コンソール.エラー(エラー);28});29
1fetch("https://docs-demo.tron-mainnet.quiknode.pro/wallet/createshieldedcontractparameters", {2メソッド: 'POST',3headers: {4「承諾」: 'application/json',5「Content-Type」: 'application/json'6},7body: JSON.stringify({8"ovk": "1797de3b7f33cafffe3fe18c6b43ec6760add2ad81b10978d1fca5290497ede9",9"from_amount": "5000",10"shielded_receives": {11"note": {12"value": 50,13"payment_address": "ztron15js0jkuxczt8caq5hp59rnh6rgf34sek7vqn9u6ljelxv4nuzz2x9qe3ffm2wzz6ck53yxyhxs6",14"rcm": "74baec30dfac8ed59968955ff245ae002009005194e5b824c35ab88c52e5170e"15}16},17"shielded_TRC20_contract_address": "41f3392eaa7d38749176e0671dbc6912f8ef956943"18})19})20.その後(レスポンス => レスポンス.json())21.then(data => {22// Handle the response data23コンソール.log(データ);24})25.catchcatch(エラー => {26// Handle any errors27コンソール.エラー(エラー);28});29
1import リクエスト2import json34url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/createshieldedcontractparameters"5ヘッダー = {6「承諾」: 'application/json',7「Content-Type」: 'application/json'8}9データ = {10"ovk": "1797de3b7f33cafffe3fe18c6b43ec6760add2ad81b10978d1fca5290497ede9",11"from_amount": "5000",12"shielded_receives": {13"note": {14"value": 50,15"payment_address": "ztron15js0jkuxczt8caq5hp59rnh6rgf34sek7vqn9u6ljelxv4nuzz2x9qe3ffm2wzz6ck53yxyhxs6",16"rcm": "74baec30dfac8ed59968955ff245ae002009005194e5b824c35ab88c52e5170e"17}18},19"shielded_TRC20_contract_address": "41f3392eaa7d38749176e0671dbc6912f8ef956943"20}2122response = requests.post(url, headers=headers, json=data)2324if response.status_code == 200:25# Successful request26data = response.json()27# Handle the response data28print(data)29else:30# Request encountered an error31print("Error:", response.status_code)32
1import リクエスト2import json34url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/createshieldedcontractparameters"5ヘッダー = {6「承諾」: 'application/json',7「Content-Type」: 'application/json'8}9データ = {10"ovk": "1797de3b7f33cafffe3fe18c6b43ec6760add2ad81b10978d1fca5290497ede9",11"from_amount": "5000",12"shielded_receives": {13"note": {14"value": 50,15"payment_address": "ztron15js0jkuxczt8caq5hp59rnh6rgf34sek7vqn9u6ljelxv4nuzz2x9qe3ffm2wzz6ck53yxyhxs6",16"rcm": "74baec30dfac8ed59968955ff245ae002009005194e5b824c35ab88c52e5170e"17}18},19"shielded_TRC20_contract_address": "41f3392eaa7d38749176e0671dbc6912f8ef956943"20}2122response = requests.post(url, headers=headers, json=data)2324if response.status_code == 200:25# Successful request26data = response.json()27# Handle the response data28print(data)29else:30# Request encountered an error31print("Error:", response.status_code)32
1require 'net/http'2require 'json'34url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/createshieldedcontractparameters")5http = ネット::HTTP.new(url.ホスト, url.ポート)6リクエスト = ネット::HTTP::POST.new(URL)7request["Accept"] = 'application/json'8request["Content-Type"] = 'application/json'9request.body = {10"ovk": "1797de3b7f33cafffe3fe18c6b43ec6760add2ad81b10978d1fca5290497ede9",11"from_amount": "5000",12"shielded_receives": {13"note": {14"value": 50,15"payment_address": "ztron15js0jkuxczt8caq5hp59rnh6rgf34sek7vqn9u6ljelxv4nuzz2x9qe3ffm2wzz6ck53yxyhxs6",16"rcm": "74baec30dfac8ed59968955ff245ae002009005194e5b824c35ab88c52e5170e"17}18},19"shielded_TRC20_contract_address": "41f3392eaa7d38749176e0671dbc6912f8ef956943"20}.to_json2122回答 = http.リクエスト(リクエスト)2324if response.code == "200"25# Successful request26data = JSON.parse(response.body)27# Handle the response data28puts data29else30# Request encountered an error31puts "Error: #{response.code}"32終わり33
1require 'net/http'2require 'json'34url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/createshieldedcontractparameters")5http = ネット::HTTP.new(url.ホスト, url.ポート)6リクエスト = ネット::HTTP::POST.new(URL)7request["Accept"] = 'application/json'8request["Content-Type"] = 'application/json'9request.body = {10"ovk": "1797de3b7f33cafffe3fe18c6b43ec6760add2ad81b10978d1fca5290497ede9",11"from_amount": "5000",12"shielded_receives": {13"note": {14"value": 50,15"payment_address": "ztron15js0jkuxczt8caq5hp59rnh6rgf34sek7vqn9u6ljelxv4nuzz2x9qe3ffm2wzz6ck53yxyhxs6",16"rcm": "74baec30dfac8ed59968955ff245ae002009005194e5b824c35ab88c52e5170e"17}18},19"shielded_TRC20_contract_address": "41f3392eaa7d38749176e0671dbc6912f8ef956943"20}.to_json2122回答 = http.リクエスト(リクエスト)2324if response.code == "200"25# Successful request26data = JSON.parse(response.body)27# Handle the response data28puts data29else30# Request encountered an error31puts "Error: #{response.code}"32終わり33