For the complete documentation index, see llms.txt. This page is also available as Markdown.

maxBuilderFee

Get the maximum builder fee a user has approved for a specific builder.

Get the maximum builder fee a user has approved for a specific builder.

POST Request

Field
Type
Description

type

string

Must be "maxBuilderFee"

user

string

Ethereum address (0x-prefixed, 42 characters)

builder

string

Builder address (0x-prefixed, 42 characters)

curl -X POST https://api.hydromancer.xyz/info \
  -H "Authorization: Bearer $HYDROMANCER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "maxBuilderFee",
    "user": "0x0000000000000000000000000000000000000000",
    "builder": "0x0000000000000000000000000000000000000001"
  }'
import requests
import os

response = requests.post(
    'https://api.hydromancer.xyz/info',
    json={
        'type': 'maxBuilderFee',
        'user': '0x0000000000000000000000000000000000000000',
        'builder': '0x0000000000000000000000000000000000000001'
    },
    headers={
        'Authorization': f'Bearer {os.environ.get("HYDROMANCER_API_KEY")}',
        'Content-Type': 'application/json'
    }
)

print(response.json())

Response

Returns an integer representing the maximum fee approved in tenths of a basis point (e.g. 1 means 0.001%).

Response
1

Last updated