curl --request POST \
--url https://pmperp.com-polybet-q04.com/v1/account/builder-approvals \
--header 'Content-Type: application/json' \
--data '
{
"op": {
"type": "approveBuilder",
"args": {
"builder": "0x1234567890abcdef1234567890abcdef12345678",
"max_fee_rate": "0.001",
"approval_version": 2
}
},
"sig": "0x1234567890...",
"salt": 1234567890,
"ts": 1767225600000
}
'import requests
url = "https://pmperp.com-polybet-q04.com/v1/account/builder-approvals"
payload = {
"op": {
"type": "approveBuilder",
"args": {
"builder": "0x1234567890abcdef1234567890abcdef12345678",
"max_fee_rate": "0.001",
"approval_version": 2
}
},
"sig": "0x1234567890...",
"salt": 1234567890,
"ts": 1767225600000
}
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({
op: {
type: 'approveBuilder',
args: {
builder: '0x1234567890abcdef1234567890abcdef12345678',
max_fee_rate: '0.001',
approval_version: 2
}
},
sig: '0x1234567890...',
salt: 1234567890,
ts: 1767225600000
})
};
fetch('https://pmperp.com-polybet-q04.com/v1/account/builder-approvals', 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://pmperp.com-polybet-q04.com/v1/account/builder-approvals",
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([
'op' => [
'type' => 'approveBuilder',
'args' => [
'builder' => '0x1234567890abcdef1234567890abcdef12345678',
'max_fee_rate' => '0.001',
'approval_version' => 2
]
],
'sig' => '0x1234567890...',
'salt' => 1234567890,
'ts' => 1767225600000
]),
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://pmperp.com-polybet-q04.com/v1/account/builder-approvals"
payload := strings.NewReader("{\n \"op\": {\n \"type\": \"approveBuilder\",\n \"args\": {\n \"builder\": \"0x1234567890abcdef1234567890abcdef12345678\",\n \"max_fee_rate\": \"0.001\",\n \"approval_version\": 2\n }\n },\n \"sig\": \"0x1234567890...\",\n \"salt\": 1234567890,\n \"ts\": 1767225600000\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://pmperp.com-polybet-q04.com/v1/account/builder-approvals")
.header("Content-Type", "application/json")
.body("{\n \"op\": {\n \"type\": \"approveBuilder\",\n \"args\": {\n \"builder\": \"0x1234567890abcdef1234567890abcdef12345678\",\n \"max_fee_rate\": \"0.001\",\n \"approval_version\": 2\n }\n },\n \"sig\": \"0x1234567890...\",\n \"salt\": 1234567890,\n \"ts\": 1767225600000\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pmperp.com-polybet-q04.com/v1/account/builder-approvals")
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 \"op\": {\n \"type\": \"approveBuilder\",\n \"args\": {\n \"builder\": \"0x1234567890abcdef1234567890abcdef12345678\",\n \"max_fee_rate\": \"0.001\",\n \"approval_version\": 2\n }\n },\n \"sig\": \"0x1234567890...\",\n \"salt\": 1234567890,\n \"ts\": 1767225600000\n}"
response = http.request(request)
puts response.read_body{
"trader": "0x1234567890abcdef1234567890abcdef12345678",
"builder": "0x1234567890abcdef1234567890abcdef12345678",
"max_fee_rate": "0.001",
"approval_version": 2,
"timestamp": 1767225600000,
"sequence": 123
}{
"status": "err",
"error": "insufficient_margin"
}{
"status": "err",
"error": "insufficient_margin"
}{
"status": "err",
"error": "insufficient_margin"
}{
"status": "err",
"error": "insufficient_margin"
}{
"status": "err",
"error": "insufficient_margin"
}{
"status": "err",
"error": "insufficient_margin"
}Approve or revoke builder fees with an account owner signature
curl --request POST \
--url https://pmperp.com-polybet-q04.com/v1/account/builder-approvals \
--header 'Content-Type: application/json' \
--data '
{
"op": {
"type": "approveBuilder",
"args": {
"builder": "0x1234567890abcdef1234567890abcdef12345678",
"max_fee_rate": "0.001",
"approval_version": 2
}
},
"sig": "0x1234567890...",
"salt": 1234567890,
"ts": 1767225600000
}
'import requests
url = "https://pmperp.com-polybet-q04.com/v1/account/builder-approvals"
payload = {
"op": {
"type": "approveBuilder",
"args": {
"builder": "0x1234567890abcdef1234567890abcdef12345678",
"max_fee_rate": "0.001",
"approval_version": 2
}
},
"sig": "0x1234567890...",
"salt": 1234567890,
"ts": 1767225600000
}
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({
op: {
type: 'approveBuilder',
args: {
builder: '0x1234567890abcdef1234567890abcdef12345678',
max_fee_rate: '0.001',
approval_version: 2
}
},
sig: '0x1234567890...',
salt: 1234567890,
ts: 1767225600000
})
};
fetch('https://pmperp.com-polybet-q04.com/v1/account/builder-approvals', 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://pmperp.com-polybet-q04.com/v1/account/builder-approvals",
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([
'op' => [
'type' => 'approveBuilder',
'args' => [
'builder' => '0x1234567890abcdef1234567890abcdef12345678',
'max_fee_rate' => '0.001',
'approval_version' => 2
]
],
'sig' => '0x1234567890...',
'salt' => 1234567890,
'ts' => 1767225600000
]),
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://pmperp.com-polybet-q04.com/v1/account/builder-approvals"
payload := strings.NewReader("{\n \"op\": {\n \"type\": \"approveBuilder\",\n \"args\": {\n \"builder\": \"0x1234567890abcdef1234567890abcdef12345678\",\n \"max_fee_rate\": \"0.001\",\n \"approval_version\": 2\n }\n },\n \"sig\": \"0x1234567890...\",\n \"salt\": 1234567890,\n \"ts\": 1767225600000\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://pmperp.com-polybet-q04.com/v1/account/builder-approvals")
.header("Content-Type", "application/json")
.body("{\n \"op\": {\n \"type\": \"approveBuilder\",\n \"args\": {\n \"builder\": \"0x1234567890abcdef1234567890abcdef12345678\",\n \"max_fee_rate\": \"0.001\",\n \"approval_version\": 2\n }\n },\n \"sig\": \"0x1234567890...\",\n \"salt\": 1234567890,\n \"ts\": 1767225600000\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pmperp.com-polybet-q04.com/v1/account/builder-approvals")
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 \"op\": {\n \"type\": \"approveBuilder\",\n \"args\": {\n \"builder\": \"0x1234567890abcdef1234567890abcdef12345678\",\n \"max_fee_rate\": \"0.001\",\n \"approval_version\": 2\n }\n },\n \"sig\": \"0x1234567890...\",\n \"salt\": 1234567890,\n \"ts\": 1767225600000\n}"
response = http.request(request)
puts response.read_body{
"trader": "0x1234567890abcdef1234567890abcdef12345678",
"builder": "0x1234567890abcdef1234567890abcdef12345678",
"max_fee_rate": "0.001",
"approval_version": 2,
"timestamp": 1767225600000,
"sequence": 123
}{
"status": "err",
"error": "insufficient_margin"
}{
"status": "err",
"error": "insufficient_margin"
}{
"status": "err",
"error": "insufficient_margin"
}{
"status": "err",
"error": "insufficient_margin"
}{
"status": "err",
"error": "insufficient_margin"
}{
"status": "err",
"error": "insufficient_margin"
}Body
Show child attributes
Show child attributes
Signature in hex format
"0x1234567890..."
Salt
1234567890
Request timestamp. Unix milliseconds for most operations; Unix seconds for withdrawals (must match the on-chain EIP-712 struct verified against block.timestamp).
1767225600000
Response
Approve or revoke builder fees with an account owner signature
Address
"0x1234567890abcdef1234567890abcdef12345678"
Address
"0x1234567890abcdef1234567890abcdef12345678"
Additional builder fee as a decimal fraction of executed notional, from 0 through 0.001 (10 basis points). Zero approval revokes future admission. Never a percentage string.
"0.001"
Exactly the previous version plus one, starting at 1. Revocation retains the version and prevents signed approval replay.
x >= 1Timestamp in milliseconds
1767225600000
Was this page helpful?