Create bridge addresses
curl --request POST \
--url https://bridge.polymarket.com/deposit \
--header 'Content-Type: application/json' \
--data '
{
"address": "0x56687bf447db6ffa42ffe2204a05edaa20f55839"
}
'import requests
url = "https://bridge.polymarket.com/deposit"
payload = { "address": "0x56687bf447db6ffa42ffe2204a05edaa20f55839" }
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({address: '0x56687bf447db6ffa42ffe2204a05edaa20f55839'})
};
fetch('https://bridge.polymarket.com/deposit', 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://bridge.polymarket.com/deposit",
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([
'address' => '0x56687bf447db6ffa42ffe2204a05edaa20f55839'
]),
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://bridge.polymarket.com/deposit"
payload := strings.NewReader("{\n \"address\": \"0x56687bf447db6ffa42ffe2204a05edaa20f55839\"\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://bridge.polymarket.com/deposit")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"0x56687bf447db6ffa42ffe2204a05edaa20f55839\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://bridge.polymarket.com/deposit")
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 \"address\": \"0x56687bf447db6ffa42ffe2204a05edaa20f55839\"\n}"
response = http.request(request)
puts response.read_body{
"address": {
"evm": "0x23566f8b2E82aDfCf01846E54899d110e97AC053",
"svm": "CrvTBvzryYxBHbWu2TiQpcqD5M7Le7iBKzVmEj3f36Jb",
"btc": "bc1q8eau83qffxcj8ht4hsjdza3lha9r3egfqysj3g",
"tron": "<string>"
},
"note": "Only certain chains and tokens are supported. See /supported-assets for details."
}{
"error": "<string>"
}{
"error": "<string>"
}创建跨链桥地址
POST
/
deposit
Create bridge addresses
curl --request POST \
--url https://bridge.polymarket.com/deposit \
--header 'Content-Type: application/json' \
--data '
{
"address": "0x56687bf447db6ffa42ffe2204a05edaa20f55839"
}
'import requests
url = "https://bridge.polymarket.com/deposit"
payload = { "address": "0x56687bf447db6ffa42ffe2204a05edaa20f55839" }
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({address: '0x56687bf447db6ffa42ffe2204a05edaa20f55839'})
};
fetch('https://bridge.polymarket.com/deposit', 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://bridge.polymarket.com/deposit",
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([
'address' => '0x56687bf447db6ffa42ffe2204a05edaa20f55839'
]),
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://bridge.polymarket.com/deposit"
payload := strings.NewReader("{\n \"address\": \"0x56687bf447db6ffa42ffe2204a05edaa20f55839\"\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://bridge.polymarket.com/deposit")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"0x56687bf447db6ffa42ffe2204a05edaa20f55839\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://bridge.polymarket.com/deposit")
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 \"address\": \"0x56687bf447db6ffa42ffe2204a05edaa20f55839\"\n}"
response = http.request(request)
puts response.read_body{
"address": {
"evm": "0x23566f8b2E82aDfCf01846E54899d110e97AC053",
"svm": "CrvTBvzryYxBHbWu2TiQpcqD5M7Le7iBKzVmEj3f36Jb",
"btc": "bc1q8eau83qffxcj8ht4hsjdza3lha9r3egfqysj3g",
"tron": "<string>"
},
"note": "Only certain chains and tokens are supported. See /supported-assets for details."
}{
"error": "<string>"
}{
"error": "<string>"
}请求头
Optional builder code (bytes32 hex) attributing this request to your integration so transfer issues can be traced to your app. Omitting it still succeeds but returns a missing_builder_code warning; a malformed code returns 400. Get your code at https://polymarket.com/settings?tab=builder
Pattern:
^0x[a-fA-F0-9]{64}$示例:
"0x00000000000000000000000000000000000000000000000000000000abcd1234"
请求体
application/json
Your Polymarket wallet address where deposited funds will be credited as pUSD
Pattern:
^0x[a-fA-F0-9]{40}$示例:
"0x56687bf447db6ffa42ffe2204a05edaa20f55839"
此页面对您有帮助吗?
⌘I