/wallet/createtransaction REST API Endpoint
身体パラメータ
所有者の住所
文字列
必須
読み込み中...
to_address
文字列
必須
読み込み中...
金額
整数
読み込み中...
permission_id
整数
読み込み中...
表示されている
ブール値
読み込み中...
extra_data
文字列
読み込み中...
返します
表示されている
読み込み中...
txid
読み込み中...
raw_data
読み込み中...
契約
読み込み中...
パラメータ
読み込み中...
値
読み込み中...
金額
読み込み中...
所有者の住所
読み込み中...
to_address
読み込み中...
type_url
読み込み中...
タイプ
読み込み中...
ref_block_bytes
読み込み中...
ref_block_hash
読み込み中...
有効期限
読み込み中...
タイムスタンプ
読み込み中...
raw_data_hex
読み込み中...
リクエスト
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/createtransaction \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "OWNER_ADDRESS",7"to_address": "RECIEVER_ADDRESS",8"amount": AMOUNT,9"visible": true10}11'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/createtransaction \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "OWNER_ADDRESS",7"to_address": "RECIEVER_ADDRESS",8"amount": AMOUNT,9"visible": true10}11'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/createtransaction';23フェッチ(url, {4メソッド: 'POST',5headers: {6「accept」: 'application/json',7「content-type」: 'application/json'8},9body: JSON.stringify({10所有者の住所: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',11to_address: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',12amount: 1000,13表示: true14})15})16.その後(レスポンス => レスポンス.json())17.その後(データ => コンソール.log(data))18.catch(エラー => console.エラー(エラー));19
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/createtransaction';23フェッチ(url, {4メソッド: 'POST',5headers: {6「accept」: 'application/json',7「content-type」: 'application/json'8},9body: JSON.stringify({10所有者の住所: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',11to_address: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',12amount: 1000,13表示: true14})15})16.その後(レスポンス => レスポンス.json())17.その後(データ => コンソール.log(data))18.catch(エラー => console.エラー(エラー));19
1import リクエスト2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/createtransaction'5ヘッダー = {6"accept": "application/json",7"content-type": "application/json"8}9データ = {10"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",11"to_address": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",12"amount": 1000,13「visible」: True14}1516回答 = リクエスト.POST(url, ヘッダー=headers, json=データ)17印刷(レスポンス.json())18
1import リクエスト2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/createtransaction'5ヘッダー = {6"accept": "application/json",7"content-type": "application/json"8}9データ = {10"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",11"to_address": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",12"amount": 1000,13「visible」: True14}1516回答 = リクエスト.POST(url, ヘッダー=headers, json=データ)17印刷(レスポンス.json())18
1require 'net/http'2require 'json'34uri = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/createtransaction')56req = Net::HTTP::Post.new(uri)7req['accept'] = 'application/json'8req['content-type'] = 'application/json'9req.body = {10所有者の住所: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',11to_address: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',12amount: 1000,13表示: true14}.to_json1516res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|17http.request(req)18終わり1920if res.is_a?(Net::HTTPSuccess)21data = JSON.parse(res.body)22puts data23else24puts "Request failed with HTTP status code #{res.code}"25終わり26
1require 'net/http'2require 'json'34uri = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/createtransaction')56req = Net::HTTP::Post.new(uri)7req['accept'] = 'application/json'8req['content-type'] = 'application/json'9req.body = {10所有者の住所: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',11to_address: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',12amount: 1000,13表示: true14}.to_json1516res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|17http.request(req)18終わり1920if res.is_a?(Net::HTTPSuccess)21data = JSON.parse(res.body)22puts data23else24puts "Request failed with HTTP status code #{res.code}"25終わり26