/construction/combine REST API Endpoint
शरीर के मापदंड
network_identifier
वस्तु
आवश्यक
लोड हो रहा है...
blockchain
डोरी
आवश्यक
लोड हो रहा है...
नेटवर्क
डोरी
आवश्यक
लोड हो रहा है...
sub_network_identifier
वस्तु
लोड हो रहा है...
नेटवर्क
डोरी
आवश्यक
लोड हो रहा है...
metadata
वस्तु
लोड हो रहा है...
unsigned_transaction
डोरी
आवश्यक
लोड हो रहा है...
signatures
सरणी
आवश्यक
लोड हो रहा है...
signing_payload
वस्तु
आवश्यक
लोड हो रहा है...
पता
डोरी
लोड हो रहा है...
account_identifier
वस्तु
लोड हो रहा है...
पता
डोरी
आवश्यक
लोड हो रहा है...
sub_account
वस्तु
लोड हो रहा है...
पता
डोरी
आवश्यक
लोड हो रहा है...
metadata
वस्तु
लोड हो रहा है...
metadata
वस्तु
लोड हो रहा है...
hex_bytes
डोरी
आवश्यक
लोड हो रहा है...
signature_type
डोरी
लोड हो रहा है...
सार्वजनिक कुंजी
वस्तु
आवश्यक
लोड हो रहा है...
hex_bytes
डोरी
आवश्यक
लोड हो रहा है...
curve_type
डोरी
आवश्यक
लोड हो रहा है...
signature_type
डोरी
आवश्यक
लोड हो रहा है...
hex_bytes
डोरी
आवश्यक
लोड हो रहा है...
रिटर्न
वस्तु
वस्तु
लोड हो रहा है...
signed_transaction
डोरी
लोड हो रहा है...
अनुरोध
1curl --location 'https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine' \2--header 'Content-Type: application/json' \3--data '{4"network_identifier": {5"blockchain": "stacks",6"network": "mainnet"7},8"unsigned_transaction": "<UNSIGNED_TRANSACTION_HEX>",9"signatures": [10{11"signing_payload": {12"account_identifier": {13"address": "<SIGNER_ADDRESS>"14},15"hex_bytes": "<SIGNING_PAYLOAD_HEX>",16"signature_type": "ecdsa"17},18"public_key": {19"hex_bytes": "<PUBLIC_KEY_HEX>",20"curve_type": "secp256k1"21},22"signature_type": "ecdsa",23"hex_bytes": "<SIGNATURE_HEX>"24}25]26}'
1curl --location 'https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine' \2--header 'Content-Type: application/json' \3--data '{4"network_identifier": {5"blockchain": "stacks",6"network": "mainnet"7},8"unsigned_transaction": "<UNSIGNED_TRANSACTION_HEX>",9"signatures": [10{11"signing_payload": {12"account_identifier": {13"address": "<SIGNER_ADDRESS>"14},15"hex_bytes": "<SIGNING_PAYLOAD_HEX>",16"signature_type": "ecdsa"17},18"public_key": {19"hex_bytes": "<PUBLIC_KEY_HEX>",20"curve_type": "secp256k1"21},22"signature_type": "ecdsa",23"hex_bytes": "<SIGNATURE_HEX>"24}25]26}'
1const myHeaders = नया हेडर ( ) ;2myHeaders.append ( "Content- Type " , "application/json" ) ;34स्थिर कच्चा = JSON.stringify ( {5"network_identifier": {6"blockchain": "stacks",7"network": "mainnet"8} ,9"unsigned_transaction": "<UNSIGNED_TRANSACTION_HEX>",10"signatures": [11{12"signing_payload": {13"account_identifier": {14"address": "<SIGNER_ADDRESS>"15},16"hex_bytes": "<SIGNING_PAYLOAD_HEX>",17"signature_type": "ecdsa"18},19"public_key": {20"hex_bytes": "<PUBLIC_KEY_HEX>",21"curve_type": "secp256k1"22},23"signature_type": "ecdsa",24"hex_bytes": "<SIGNATURE_HEX>"25}26]27} ) ;2829const requestOptions = {30तरीका : "डाक" ,31हेडर : मेरे हेडर ,32शरीर : कच्चा ,33पुनर्निर्देशन : "अनुसरण करना"34} ;3536fetch("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine", requestOptions)37फिर ( ( प्रतिक्रिया ) = > प्रतिक्रिया.पाठ ( ) )38फिर ( ( परिणाम ) => कंसोल.लॉग ( परिणाम )39. कैच ( ( त्रुटि ) => कंसोल.त्रुटि ( त्रुटि ) ) ;
1const myHeaders = नया हेडर ( ) ;2myHeaders.append ( "Content- Type " , "application/json" ) ;34स्थिर कच्चा = JSON.stringify ( {5"network_identifier": {6"blockchain": "stacks",7"network": "mainnet"8} ,9"unsigned_transaction": "<UNSIGNED_TRANSACTION_HEX>",10"signatures": [11{12"signing_payload": {13"account_identifier": {14"address": "<SIGNER_ADDRESS>"15},16"hex_bytes": "<SIGNING_PAYLOAD_HEX>",17"signature_type": "ecdsa"18},19"public_key": {20"hex_bytes": "<PUBLIC_KEY_HEX>",21"curve_type": "secp256k1"22},23"signature_type": "ecdsa",24"hex_bytes": "<SIGNATURE_HEX>"25}26]27} ) ;2829const requestOptions = {30तरीका : "डाक" ,31हेडर : मेरे हेडर ,32शरीर : कच्चा ,33पुनर्निर्देशन : "अनुसरण करना"34} ;3536fetch("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine", requestOptions)37फिर ( ( प्रतिक्रिया ) = > प्रतिक्रिया.पाठ ( ) )38फिर ( ( परिणाम ) => कंसोल.लॉग ( परिणाम )39. कैच ( ( त्रुटि ) => कंसोल.त्रुटि ( त्रुटि ) ) ;
1आयात अनुरोध2आयात करें json34url = "https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine"56पेलोड = json . डंप्स ( {7"network_identifier": {8"blockchain": "stacks",9"network": "mainnet"10} ,11"unsigned_transaction": "<UNSIGNED_TRANSACTION_HEX>",12"signatures": [13{14"signing_payload": {15"account_identifier": {16"address": "<SIGNER_ADDRESS>"17},18"hex_bytes": "<SIGNING_PAYLOAD_HEX>",19"signature_type": "ecdsa"20},21"public_key": {22"hex_bytes": "<PUBLIC_KEY_HEX>",23"curve_type": "secp256k1"24},25"signature_type": "ecdsa",26"hex_bytes": "<SIGNATURE_HEX>"27}28]29} )30हेडर = {31'सामग्री प्रकार' : 'एप्लिकेशन/जेसन'32}3334प्रतिक्रिया = अनुरोध.अनुरोध ( " POST " , यूआरएल , हेडर = हेडर , डेटा = पेलोड )3536प्रिंट ( प्रतिक्रिया . पाठ )
1आयात अनुरोध2आयात करें json34url = "https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine"56पेलोड = json . डंप्स ( {7"network_identifier": {8"blockchain": "stacks",9"network": "mainnet"10} ,11"unsigned_transaction": "<UNSIGNED_TRANSACTION_HEX>",12"signatures": [13{14"signing_payload": {15"account_identifier": {16"address": "<SIGNER_ADDRESS>"17},18"hex_bytes": "<SIGNING_PAYLOAD_HEX>",19"signature_type": "ecdsa"20},21"public_key": {22"hex_bytes": "<PUBLIC_KEY_HEX>",23"curve_type": "secp256k1"24},25"signature_type": "ecdsa",26"hex_bytes": "<SIGNATURE_HEX>"27}28]29} )30हेडर = {31'सामग्री प्रकार' : 'एप्लिकेशन/जेसन'32}3334प्रतिक्रिया = अनुरोध.अनुरोध ( " POST " , यूआरएल , हेडर = हेडर , डेटा = पेलोड )3536प्रिंट ( प्रतिक्रिया . पाठ )
1ज़रूरत होना "उरी"2ज़रूरत होना "जेसन"3ज़रूरत होना "नेट/http"45url = URI("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine")67http = Net::HTTP.new(url.host, url.port)8http . use_ssl = सत्य910अनुरोध = नेट :: एचटीटीपी :: पोस्ट.नया ( यूआरएल )11अनुरोध [ "सामग्री-प्रकार" ] = "एप्लिकेशन/जेसन"12अनुरोध.बॉडी = JSON . डंप ( {13"network_identifier": {14"blockchain": "stacks",15"network": "mainnet"16} ,17"unsigned_transaction": "<UNSIGNED_TRANSACTION_HEX>",18"signatures": [19{20"signing_payload": {21"account_identifier": {22"address": "<SIGNER_ADDRESS>"23},24"hex_bytes": "<SIGNING_PAYLOAD_HEX>",25"signature_type": "ecdsa"26},27"public_key": {28"hex_bytes": "<PUBLIC_KEY_HEX>",29"curve_type": "secp256k1"30},31"signature_type": "ecdsa",32"hex_bytes": "<SIGNATURE_HEX>"33}34]35} )3637प्रतिक्रिया = http . अनुरोध ( अनुरोध )38puts response . read_body
1ज़रूरत होना "उरी"2ज़रूरत होना "जेसन"3ज़रूरत होना "नेट/http"45url = URI("https://docs-demo.stacks-mainnet.quiknode.pro/rosetta/v1/construction/combine")67http = Net::HTTP.new(url.host, url.port)8http . use_ssl = सत्य910अनुरोध = नेट :: एचटीटीपी :: पोस्ट.नया ( यूआरएल )11अनुरोध [ "सामग्री-प्रकार" ] = "एप्लिकेशन/जेसन"12अनुरोध.बॉडी = JSON . डंप ( {13"network_identifier": {14"blockchain": "stacks",15"network": "mainnet"16} ,17"unsigned_transaction": "<UNSIGNED_TRANSACTION_HEX>",18"signatures": [19{20"signing_payload": {21"account_identifier": {22"address": "<SIGNER_ADDRESS>"23},24"hex_bytes": "<SIGNING_PAYLOAD_HEX>",25"signature_type": "ecdsa"26},27"public_key": {28"hex_bytes": "<PUBLIC_KEY_HEX>",29"curve_type": "secp256k1"30},31"signature_type": "ecdsa",32"hex_bytes": "<SIGNATURE_HEX>"33}34]35} )3637प्रतिक्रिया = http . अनुरोध ( अनुरोध )38puts response . read_body
अब तक कोई खाता नहीं है?
कुछ ही सेकंड में अपना क्विकनोड एंडपॉइंट बनाएं और निर्माण शुरू करें।
मुफ़्त में शुरुआत करें