SendProcessedBids
curl --request POST \
--url https://api.example.com/v1/provider/send_processed_bids \
--header 'Content-Type: application/json' \
--data '
{
"bidDigest": "9dJinwL+FZ6B1xsIQQo8t8B0ZXJubJwY86l/Yu7yAH159QrPHU0qj2P+YFj+llbuI1ZygdxGsX8+P3byMEA5ig==",
"decayDispatchTimestamp": 1234567890,
"status": "STATUS_ACCEPTED"
}
'import requests
url = "https://api.example.com/v1/provider/send_processed_bids"
payload = {
"bidDigest": "9dJinwL+FZ6B1xsIQQo8t8B0ZXJubJwY86l/Yu7yAH159QrPHU0qj2P+YFj+llbuI1ZygdxGsX8+P3byMEA5ig==",
"decayDispatchTimestamp": 1234567890,
"status": "STATUS_ACCEPTED"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
bidDigest: '9dJinwL+FZ6B1xsIQQo8t8B0ZXJubJwY86l/Yu7yAH159QrPHU0qj2P+YFj+llbuI1ZygdxGsX8+P3byMEA5ig==',
decayDispatchTimestamp: 1234567890,
status: 'STATUS_ACCEPTED'
})
};
fetch('https://api.example.com/v1/provider/send_processed_bids', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/provider/send_processed_bids",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'bidDigest' => '9dJinwL+FZ6B1xsIQQo8t8B0ZXJubJwY86l/Yu7yAH159QrPHU0qj2P+YFj+llbuI1ZygdxGsX8+P3byMEA5ig==',
'decayDispatchTimestamp' => 1234567890,
'status' => 'STATUS_ACCEPTED'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/provider/send_processed_bids"
payload := strings.NewReader("{\n \"bidDigest\": \"9dJinwL+FZ6B1xsIQQo8t8B0ZXJubJwY86l/Yu7yAH159QrPHU0qj2P+YFj+llbuI1ZygdxGsX8+P3byMEA5ig==\",\n \"decayDispatchTimestamp\": 1234567890,\n \"status\": \"STATUS_ACCEPTED\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v1/provider/send_processed_bids")
.header("Content-Type", "application/json")
.body("{\n \"bidDigest\": \"9dJinwL+FZ6B1xsIQQo8t8B0ZXJubJwY86l/Yu7yAH159QrPHU0qj2P+YFj+llbuI1ZygdxGsX8+P3byMEA5ig==\",\n \"decayDispatchTimestamp\": 1234567890,\n \"status\": \"STATUS_ACCEPTED\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/provider/send_processed_bids")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"bidDigest\": \"9dJinwL+FZ6B1xsIQQo8t8B0ZXJubJwY86l/Yu7yAH159QrPHU0qj2P+YFj+llbuI1ZygdxGsX8+P3byMEA5ig==\",\n \"decayDispatchTimestamp\": 1234567890,\n \"status\": \"STATUS_ACCEPTED\"\n}"
response = http.request(request)
puts response.read_body{}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}API Reference
SendProcessedBids
SendProcessedBids is called by the provider to send processed bids to the mev-commit node. The provider will stream processed bids to the mev-commit node.
POST
/
v1
/
provider
/
send_processed_bids
SendProcessedBids
curl --request POST \
--url https://api.example.com/v1/provider/send_processed_bids \
--header 'Content-Type: application/json' \
--data '
{
"bidDigest": "9dJinwL+FZ6B1xsIQQo8t8B0ZXJubJwY86l/Yu7yAH159QrPHU0qj2P+YFj+llbuI1ZygdxGsX8+P3byMEA5ig==",
"decayDispatchTimestamp": 1234567890,
"status": "STATUS_ACCEPTED"
}
'import requests
url = "https://api.example.com/v1/provider/send_processed_bids"
payload = {
"bidDigest": "9dJinwL+FZ6B1xsIQQo8t8B0ZXJubJwY86l/Yu7yAH159QrPHU0qj2P+YFj+llbuI1ZygdxGsX8+P3byMEA5ig==",
"decayDispatchTimestamp": 1234567890,
"status": "STATUS_ACCEPTED"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
bidDigest: '9dJinwL+FZ6B1xsIQQo8t8B0ZXJubJwY86l/Yu7yAH159QrPHU0qj2P+YFj+llbuI1ZygdxGsX8+P3byMEA5ig==',
decayDispatchTimestamp: 1234567890,
status: 'STATUS_ACCEPTED'
})
};
fetch('https://api.example.com/v1/provider/send_processed_bids', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/provider/send_processed_bids",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'bidDigest' => '9dJinwL+FZ6B1xsIQQo8t8B0ZXJubJwY86l/Yu7yAH159QrPHU0qj2P+YFj+llbuI1ZygdxGsX8+P3byMEA5ig==',
'decayDispatchTimestamp' => 1234567890,
'status' => 'STATUS_ACCEPTED'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/provider/send_processed_bids"
payload := strings.NewReader("{\n \"bidDigest\": \"9dJinwL+FZ6B1xsIQQo8t8B0ZXJubJwY86l/Yu7yAH159QrPHU0qj2P+YFj+llbuI1ZygdxGsX8+P3byMEA5ig==\",\n \"decayDispatchTimestamp\": 1234567890,\n \"status\": \"STATUS_ACCEPTED\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v1/provider/send_processed_bids")
.header("Content-Type", "application/json")
.body("{\n \"bidDigest\": \"9dJinwL+FZ6B1xsIQQo8t8B0ZXJubJwY86l/Yu7yAH159QrPHU0qj2P+YFj+llbuI1ZygdxGsX8+P3byMEA5ig==\",\n \"decayDispatchTimestamp\": 1234567890,\n \"status\": \"STATUS_ACCEPTED\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/provider/send_processed_bids")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"bidDigest\": \"9dJinwL+FZ6B1xsIQQo8t8B0ZXJubJwY86l/Yu7yAH159QrPHU0qj2P+YFj+llbuI1ZygdxGsX8+P3byMEA5ig==\",\n \"decayDispatchTimestamp\": 1234567890,\n \"status\": \"STATUS_ACCEPTED\"\n}"
response = http.request(request)
puts response.read_body{}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Body
application/json
Response sent by the provider with the decision on the bid received. (streaming inputs)
Response sent by the provider with the decision on the bid received.
Digest of the bid message signed by the bidder.
Available options:
STATUS_ACCEPTED, STATUS_REJECTED Timestamp at which the commitment is accepted by provider and is used to compute the expected revenue from the preconfirmation
Response
A successful response.
The response is of type object.
⌘I