curl -X POST "https://{host}/storage/v1/actions/process" \
-H "Content-Type: application/json" \
-d '{
"isNewTx": true,
"isSendWith": true,
"isNoSend": true,
"isDelayed": true,
"reference": "string",
"txid": "string",
"rawTx": [
0
],
"sendWith": [
"string"
]
}' const response = await fetch ( `https://{host}/storage/v1/actions/process` , {
method: 'POST' ,
headers: { 'Content-Type' : 'application/json' },
body: JSON . stringify ({
"isNewTx" : true ,
"isSendWith" : true ,
"isNoSend" : true ,
"isDelayed" : true ,
"reference" : "string" ,
"txid" : "string" ,
"rawTx" : [
0
],
"sendWith" : [
"string"
]
})
});
const data = await response. json (); import requests
response = requests.request(
"POST" ,
"https:// {host} /storage/v1/actions/process" ,
json = {
"isNewTx" : True ,
"isSendWith" : True ,
"isNoSend" : True ,
"isDelayed" : True ,
"reference" : "string" ,
"txid" : "string" ,
"rawTx" : [
0
],
"sendWith" : [
"string"
]
},
)
data = response.json() <? php
$ch = curl_init ();
curl_setopt ($ch, CURLOPT_URL , "https://{host}/storage/v1/actions/process" );
curl_setopt ($ch, CURLOPT_RETURNTRANSFER , true );
curl_setopt ($ch, CURLOPT_CUSTOMREQUEST , "POST" );
curl_setopt ($ch, CURLOPT_HTTPHEADER , [ "Content-Type: application/json" ]);
curl_setopt ($ch, CURLOPT_POSTFIELDS , '{
"isNewTx": true,
"isSendWith": true,
"isNoSend": true,
"isDelayed": true,
"reference": "string",
"txid": "string",
"rawTx": [
0
],
"sendWith": [
"string"
]
}' );
$response = curl_exec ($ch);
curl_close ($ch); package main
import (
" fmt "
" io "
" net/http "
" strings "
)
func main () {
req, _ := http. NewRequest ( "POST" , "https://{host}/storage/v1/actions/process" , strings. NewReader ( `{
"isNewTx": true,
"isSendWith": true,
"isNoSend": true,
"isDelayed": true,
"reference": "string",
"txid": "string",
"rawTx": [
0
],
"sendWith": [
"string"
]
}` ))
req.Header. Set ( "Content-Type" , "application/json" )
resp, err := http.DefaultClient. Do (req)
if err != nil {
panic (err)
}
defer resp.Body. Close ()
data, _ := io. ReadAll (resp.Body)
fmt. Println ( string (data))
} HttpClient client = HttpClient. newHttpClient ();
HttpRequest request = HttpRequest. newBuilder ()
. uri (URI. create ( "https://{host}/storage/v1/actions/process" ))
. header ( "Content-Type" , "application/json" )
. method ( "POST" , HttpRequest.BodyPublishers. ofString ( "{ \n \" isNewTx \" : true, \n \" isSendWith \" : true, \n \" isNoSend \" : true, \n \" isDelayed \" : true, \n \" reference \" : \" string \" , \n \" txid \" : \" string \" , \n \" rawTx \" : [ \n 0 \n ], \n \" sendWith \" : [ \n \" string \"\n ] \n }" ))
. build ();
HttpResponse< String > response = client. send (request, HttpResponse.BodyHandlers. ofString ());
System.out. println (response. body ()); require "net/http"
require "uri"
uri = URI ( "https://{host}/storage/v1/actions/process" )
http = Net :: HTTP . new (uri. host , uri. port )
http. use_ssl = uri. scheme == "https"
request = Net :: HTTP :: Post . new (uri)
request[ "Content-Type" ] = "application/json"
request. body = "{ \n \" isNewTx \" : true, \n \" isSendWith \" : true, \n \" isNoSend \" : true, \n \" isDelayed \" : true, \n \" reference \" : \" string \" , \n \" txid \" : \" string \" , \n \" rawTx \" : [ \n 0 \n ], \n \" sendWith \" : [ \n \" string \"\n ] \n }"
response = http. request (request)
puts response. body ⧉