curl --request POST \
--url https://api.sandbox.immutable.com/v1/chains/{chain_name}/orders/bids \
--header 'Content-Type: application/json' \
--data '
{
"account_address": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"order_hash": "0x0821933d9391bc9bf11a6010fe84776c84b203abff0c1ad781fb4881409c8770",
"sell": [
{
"type": "ERC20",
"amount": "9750000000000000000",
"contract_address": "0x0165878A594ca255338adfa4d48449f69242Eb8F"
}
],
"fees": [
{
"type": "MAKER_ECOSYSTEM",
"amount": "2250000000000000000",
"recipient_address": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233"
}
],
"end_at": "2022-03-10T05:00:50.52Z",
"protocol_data": {
"order_type": "FULL_RESTRICTED",
"counter": "1",
"zone_address": "0x12",
"seaport_address": "0x12",
"seaport_version": "1.5"
},
"salt": "12686911856931635052326433555881236148",
"buy": [
{
"type": "ERC721",
"contract_address": "0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E",
"token_id": "1"
}
],
"signature": "0x",
"start_at": "2022-03-09T05:00:50.52Z"
}
'import requests
url = "https://api.sandbox.immutable.com/v1/chains/{chain_name}/orders/bids"
payload = {
"account_address": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"order_hash": "0x0821933d9391bc9bf11a6010fe84776c84b203abff0c1ad781fb4881409c8770",
"sell": [
{
"type": "ERC20",
"amount": "9750000000000000000",
"contract_address": "0x0165878A594ca255338adfa4d48449f69242Eb8F"
}
],
"fees": [
{
"type": "MAKER_ECOSYSTEM",
"amount": "2250000000000000000",
"recipient_address": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233"
}
],
"end_at": "2022-03-10T05:00:50.52Z",
"protocol_data": {
"order_type": "FULL_RESTRICTED",
"counter": "1",
"zone_address": "0x12",
"seaport_address": "0x12",
"seaport_version": "1.5"
},
"salt": "12686911856931635052326433555881236148",
"buy": [
{
"type": "ERC721",
"contract_address": "0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E",
"token_id": "1"
}
],
"signature": "0x",
"start_at": "2022-03-09T05:00:50.52Z"
}
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({
account_address: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266',
order_hash: '0x0821933d9391bc9bf11a6010fe84776c84b203abff0c1ad781fb4881409c8770',
sell: [
{
type: 'ERC20',
amount: '9750000000000000000',
contract_address: '0x0165878A594ca255338adfa4d48449f69242Eb8F'
}
],
fees: [
{
type: 'MAKER_ECOSYSTEM',
amount: '2250000000000000000',
recipient_address: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233'
}
],
end_at: '2022-03-10T05:00:50.52Z',
protocol_data: {
order_type: 'FULL_RESTRICTED',
counter: '1',
zone_address: '0x12',
seaport_address: '0x12',
seaport_version: '1.5'
},
salt: '12686911856931635052326433555881236148',
buy: [
{
type: 'ERC721',
contract_address: '0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E',
token_id: '1'
}
],
signature: '0x',
start_at: '2022-03-09T05:00:50.52Z'
})
};
fetch('https://api.sandbox.immutable.com/v1/chains/{chain_name}/orders/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.sandbox.immutable.com/v1/chains/{chain_name}/orders/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([
'account_address' => '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266',
'order_hash' => '0x0821933d9391bc9bf11a6010fe84776c84b203abff0c1ad781fb4881409c8770',
'sell' => [
[
'type' => 'ERC20',
'amount' => '9750000000000000000',
'contract_address' => '0x0165878A594ca255338adfa4d48449f69242Eb8F'
]
],
'fees' => [
[
'type' => 'MAKER_ECOSYSTEM',
'amount' => '2250000000000000000',
'recipient_address' => '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233'
]
],
'end_at' => '2022-03-10T05:00:50.52Z',
'protocol_data' => [
'order_type' => 'FULL_RESTRICTED',
'counter' => '1',
'zone_address' => '0x12',
'seaport_address' => '0x12',
'seaport_version' => '1.5'
],
'salt' => '12686911856931635052326433555881236148',
'buy' => [
[
'type' => 'ERC721',
'contract_address' => '0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E',
'token_id' => '1'
]
],
'signature' => '0x',
'start_at' => '2022-03-09T05:00:50.52Z'
]),
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.sandbox.immutable.com/v1/chains/{chain_name}/orders/bids"
payload := strings.NewReader("{\n \"account_address\": \"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266\",\n \"order_hash\": \"0x0821933d9391bc9bf11a6010fe84776c84b203abff0c1ad781fb4881409c8770\",\n \"sell\": [\n {\n \"type\": \"ERC20\",\n \"amount\": \"9750000000000000000\",\n \"contract_address\": \"0x0165878A594ca255338adfa4d48449f69242Eb8F\"\n }\n ],\n \"fees\": [\n {\n \"type\": \"MAKER_ECOSYSTEM\",\n \"amount\": \"2250000000000000000\",\n \"recipient_address\": \"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233\"\n }\n ],\n \"end_at\": \"2022-03-10T05:00:50.52Z\",\n \"protocol_data\": {\n \"order_type\": \"FULL_RESTRICTED\",\n \"counter\": \"1\",\n \"zone_address\": \"0x12\",\n \"seaport_address\": \"0x12\",\n \"seaport_version\": \"1.5\"\n },\n \"salt\": \"12686911856931635052326433555881236148\",\n \"buy\": [\n {\n \"type\": \"ERC721\",\n \"contract_address\": \"0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E\",\n \"token_id\": \"1\"\n }\n ],\n \"signature\": \"0x\",\n \"start_at\": \"2022-03-09T05:00:50.52Z\"\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.sandbox.immutable.com/v1/chains/{chain_name}/orders/bids")
.header("Content-Type", "application/json")
.body("{\n \"account_address\": \"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266\",\n \"order_hash\": \"0x0821933d9391bc9bf11a6010fe84776c84b203abff0c1ad781fb4881409c8770\",\n \"sell\": [\n {\n \"type\": \"ERC20\",\n \"amount\": \"9750000000000000000\",\n \"contract_address\": \"0x0165878A594ca255338adfa4d48449f69242Eb8F\"\n }\n ],\n \"fees\": [\n {\n \"type\": \"MAKER_ECOSYSTEM\",\n \"amount\": \"2250000000000000000\",\n \"recipient_address\": \"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233\"\n }\n ],\n \"end_at\": \"2022-03-10T05:00:50.52Z\",\n \"protocol_data\": {\n \"order_type\": \"FULL_RESTRICTED\",\n \"counter\": \"1\",\n \"zone_address\": \"0x12\",\n \"seaport_address\": \"0x12\",\n \"seaport_version\": \"1.5\"\n },\n \"salt\": \"12686911856931635052326433555881236148\",\n \"buy\": [\n {\n \"type\": \"ERC721\",\n \"contract_address\": \"0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E\",\n \"token_id\": \"1\"\n }\n ],\n \"signature\": \"0x\",\n \"start_at\": \"2022-03-09T05:00:50.52Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.immutable.com/v1/chains/{chain_name}/orders/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 \"account_address\": \"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266\",\n \"order_hash\": \"0x0821933d9391bc9bf11a6010fe84776c84b203abff0c1ad781fb4881409c8770\",\n \"sell\": [\n {\n \"type\": \"ERC20\",\n \"amount\": \"9750000000000000000\",\n \"contract_address\": \"0x0165878A594ca255338adfa4d48449f69242Eb8F\"\n }\n ],\n \"fees\": [\n {\n \"type\": \"MAKER_ECOSYSTEM\",\n \"amount\": \"2250000000000000000\",\n \"recipient_address\": \"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233\"\n }\n ],\n \"end_at\": \"2022-03-10T05:00:50.52Z\",\n \"protocol_data\": {\n \"order_type\": \"FULL_RESTRICTED\",\n \"counter\": \"1\",\n \"zone_address\": \"0x12\",\n \"seaport_address\": \"0x12\",\n \"seaport_version\": \"1.5\"\n },\n \"salt\": \"12686911856931635052326433555881236148\",\n \"buy\": [\n {\n \"type\": \"ERC721\",\n \"contract_address\": \"0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E\",\n \"token_id\": \"1\"\n }\n ],\n \"signature\": \"0x\",\n \"start_at\": \"2022-03-09T05:00:50.52Z\"\n}"
response = http.request(request)
puts response.read_body{
"result": {
"account_address": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"sell": [
{
"type": "ERC20",
"amount": "9750000000000000000",
"contract_address": "0x0165878A594ca255338adfa4d48449f69242Eb8F"
}
],
"fees": [],
"chain": {
"id": "eip155:11155111",
"name": "sepolia"
},
"created_at": "2022-03-07T07:20:50.52Z",
"end_at": "2022-03-10T05:00:50.52Z",
"id": "018792C9-4AD7-8EC4-4038-9E05C598534B",
"order_hash": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"protocol_data": {
"order_type": "FULL_RESTRICTED",
"counter": "1",
"zone_address": "0x12",
"seaport_address": "0x12",
"seaport_version": "1.5"
},
"salt": "12686911856931635052326433555881236148",
"buy": [
{
"type": "ERC721",
"contract_address": "0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E",
"token_id": "1"
}
],
"signature": "0x",
"start_at": "2022-03-09T05:00:50.52Z",
"status": {
"name": "EXPIRED"
},
"type": "BID",
"updated_at": "2022-03-07T07:20:50.52Z"
}
}{
"message": "all fields must be provided",
"link": "https://docs.x.immutable.com/reference/#/",
"trace_id": "e47634b79a5cd6894ddc9639ec4aad26",
"code": "VALIDATION_ERROR",
"details": {}
}{
"message": "all fields must be provided",
"link": "https://docs.x.immutable.com/reference/#/",
"trace_id": "e47634b79a5cd6894ddc9639ec4aad26",
"code": "RESOURCE_NOT_FOUND",
"details": {}
}{
"message": "all fields must be provided",
"link": "https://docs.x.immutable.com/reference/#/",
"trace_id": "e47634b79a5cd6894ddc9639ec4aad26",
"code": "INTERNAL_SERVER_ERROR",
"details": {}
}{
"message": "all fields must be provided",
"link": "https://docs.x.immutable.com/reference/#/",
"trace_id": "e47634b79a5cd6894ddc9639ec4aad26",
"code": "NOT_IMPLEMENTED_ERROR",
"details": {}
}{
"message": "all fields must be provided",
"link": "https://docs.x.immutable.com/reference/#/",
"trace_id": "e47634b79a5cd6894ddc9639ec4aad26",
"code": "SERVICE_UNAVAILABLE",
"details": {}
}{
"message": "all fields must be provided",
"link": "https://docs.x.immutable.com/reference/#/",
"trace_id": "e47634b79a5cd6894ddc9639ec4aad26",
"code": "GATEWAY_TIMEOUT",
"details": {}
}Create a bid
Create a bid
curl --request POST \
--url https://api.sandbox.immutable.com/v1/chains/{chain_name}/orders/bids \
--header 'Content-Type: application/json' \
--data '
{
"account_address": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"order_hash": "0x0821933d9391bc9bf11a6010fe84776c84b203abff0c1ad781fb4881409c8770",
"sell": [
{
"type": "ERC20",
"amount": "9750000000000000000",
"contract_address": "0x0165878A594ca255338adfa4d48449f69242Eb8F"
}
],
"fees": [
{
"type": "MAKER_ECOSYSTEM",
"amount": "2250000000000000000",
"recipient_address": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233"
}
],
"end_at": "2022-03-10T05:00:50.52Z",
"protocol_data": {
"order_type": "FULL_RESTRICTED",
"counter": "1",
"zone_address": "0x12",
"seaport_address": "0x12",
"seaport_version": "1.5"
},
"salt": "12686911856931635052326433555881236148",
"buy": [
{
"type": "ERC721",
"contract_address": "0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E",
"token_id": "1"
}
],
"signature": "0x",
"start_at": "2022-03-09T05:00:50.52Z"
}
'import requests
url = "https://api.sandbox.immutable.com/v1/chains/{chain_name}/orders/bids"
payload = {
"account_address": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"order_hash": "0x0821933d9391bc9bf11a6010fe84776c84b203abff0c1ad781fb4881409c8770",
"sell": [
{
"type": "ERC20",
"amount": "9750000000000000000",
"contract_address": "0x0165878A594ca255338adfa4d48449f69242Eb8F"
}
],
"fees": [
{
"type": "MAKER_ECOSYSTEM",
"amount": "2250000000000000000",
"recipient_address": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233"
}
],
"end_at": "2022-03-10T05:00:50.52Z",
"protocol_data": {
"order_type": "FULL_RESTRICTED",
"counter": "1",
"zone_address": "0x12",
"seaport_address": "0x12",
"seaport_version": "1.5"
},
"salt": "12686911856931635052326433555881236148",
"buy": [
{
"type": "ERC721",
"contract_address": "0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E",
"token_id": "1"
}
],
"signature": "0x",
"start_at": "2022-03-09T05:00:50.52Z"
}
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({
account_address: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266',
order_hash: '0x0821933d9391bc9bf11a6010fe84776c84b203abff0c1ad781fb4881409c8770',
sell: [
{
type: 'ERC20',
amount: '9750000000000000000',
contract_address: '0x0165878A594ca255338adfa4d48449f69242Eb8F'
}
],
fees: [
{
type: 'MAKER_ECOSYSTEM',
amount: '2250000000000000000',
recipient_address: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233'
}
],
end_at: '2022-03-10T05:00:50.52Z',
protocol_data: {
order_type: 'FULL_RESTRICTED',
counter: '1',
zone_address: '0x12',
seaport_address: '0x12',
seaport_version: '1.5'
},
salt: '12686911856931635052326433555881236148',
buy: [
{
type: 'ERC721',
contract_address: '0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E',
token_id: '1'
}
],
signature: '0x',
start_at: '2022-03-09T05:00:50.52Z'
})
};
fetch('https://api.sandbox.immutable.com/v1/chains/{chain_name}/orders/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.sandbox.immutable.com/v1/chains/{chain_name}/orders/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([
'account_address' => '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266',
'order_hash' => '0x0821933d9391bc9bf11a6010fe84776c84b203abff0c1ad781fb4881409c8770',
'sell' => [
[
'type' => 'ERC20',
'amount' => '9750000000000000000',
'contract_address' => '0x0165878A594ca255338adfa4d48449f69242Eb8F'
]
],
'fees' => [
[
'type' => 'MAKER_ECOSYSTEM',
'amount' => '2250000000000000000',
'recipient_address' => '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233'
]
],
'end_at' => '2022-03-10T05:00:50.52Z',
'protocol_data' => [
'order_type' => 'FULL_RESTRICTED',
'counter' => '1',
'zone_address' => '0x12',
'seaport_address' => '0x12',
'seaport_version' => '1.5'
],
'salt' => '12686911856931635052326433555881236148',
'buy' => [
[
'type' => 'ERC721',
'contract_address' => '0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E',
'token_id' => '1'
]
],
'signature' => '0x',
'start_at' => '2022-03-09T05:00:50.52Z'
]),
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.sandbox.immutable.com/v1/chains/{chain_name}/orders/bids"
payload := strings.NewReader("{\n \"account_address\": \"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266\",\n \"order_hash\": \"0x0821933d9391bc9bf11a6010fe84776c84b203abff0c1ad781fb4881409c8770\",\n \"sell\": [\n {\n \"type\": \"ERC20\",\n \"amount\": \"9750000000000000000\",\n \"contract_address\": \"0x0165878A594ca255338adfa4d48449f69242Eb8F\"\n }\n ],\n \"fees\": [\n {\n \"type\": \"MAKER_ECOSYSTEM\",\n \"amount\": \"2250000000000000000\",\n \"recipient_address\": \"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233\"\n }\n ],\n \"end_at\": \"2022-03-10T05:00:50.52Z\",\n \"protocol_data\": {\n \"order_type\": \"FULL_RESTRICTED\",\n \"counter\": \"1\",\n \"zone_address\": \"0x12\",\n \"seaport_address\": \"0x12\",\n \"seaport_version\": \"1.5\"\n },\n \"salt\": \"12686911856931635052326433555881236148\",\n \"buy\": [\n {\n \"type\": \"ERC721\",\n \"contract_address\": \"0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E\",\n \"token_id\": \"1\"\n }\n ],\n \"signature\": \"0x\",\n \"start_at\": \"2022-03-09T05:00:50.52Z\"\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.sandbox.immutable.com/v1/chains/{chain_name}/orders/bids")
.header("Content-Type", "application/json")
.body("{\n \"account_address\": \"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266\",\n \"order_hash\": \"0x0821933d9391bc9bf11a6010fe84776c84b203abff0c1ad781fb4881409c8770\",\n \"sell\": [\n {\n \"type\": \"ERC20\",\n \"amount\": \"9750000000000000000\",\n \"contract_address\": \"0x0165878A594ca255338adfa4d48449f69242Eb8F\"\n }\n ],\n \"fees\": [\n {\n \"type\": \"MAKER_ECOSYSTEM\",\n \"amount\": \"2250000000000000000\",\n \"recipient_address\": \"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233\"\n }\n ],\n \"end_at\": \"2022-03-10T05:00:50.52Z\",\n \"protocol_data\": {\n \"order_type\": \"FULL_RESTRICTED\",\n \"counter\": \"1\",\n \"zone_address\": \"0x12\",\n \"seaport_address\": \"0x12\",\n \"seaport_version\": \"1.5\"\n },\n \"salt\": \"12686911856931635052326433555881236148\",\n \"buy\": [\n {\n \"type\": \"ERC721\",\n \"contract_address\": \"0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E\",\n \"token_id\": \"1\"\n }\n ],\n \"signature\": \"0x\",\n \"start_at\": \"2022-03-09T05:00:50.52Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.immutable.com/v1/chains/{chain_name}/orders/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 \"account_address\": \"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266\",\n \"order_hash\": \"0x0821933d9391bc9bf11a6010fe84776c84b203abff0c1ad781fb4881409c8770\",\n \"sell\": [\n {\n \"type\": \"ERC20\",\n \"amount\": \"9750000000000000000\",\n \"contract_address\": \"0x0165878A594ca255338adfa4d48449f69242Eb8F\"\n }\n ],\n \"fees\": [\n {\n \"type\": \"MAKER_ECOSYSTEM\",\n \"amount\": \"2250000000000000000\",\n \"recipient_address\": \"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92233\"\n }\n ],\n \"end_at\": \"2022-03-10T05:00:50.52Z\",\n \"protocol_data\": {\n \"order_type\": \"FULL_RESTRICTED\",\n \"counter\": \"1\",\n \"zone_address\": \"0x12\",\n \"seaport_address\": \"0x12\",\n \"seaport_version\": \"1.5\"\n },\n \"salt\": \"12686911856931635052326433555881236148\",\n \"buy\": [\n {\n \"type\": \"ERC721\",\n \"contract_address\": \"0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E\",\n \"token_id\": \"1\"\n }\n ],\n \"signature\": \"0x\",\n \"start_at\": \"2022-03-09T05:00:50.52Z\"\n}"
response = http.request(request)
puts response.read_body{
"result": {
"account_address": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"sell": [
{
"type": "ERC20",
"amount": "9750000000000000000",
"contract_address": "0x0165878A594ca255338adfa4d48449f69242Eb8F"
}
],
"fees": [],
"chain": {
"id": "eip155:11155111",
"name": "sepolia"
},
"created_at": "2022-03-07T07:20:50.52Z",
"end_at": "2022-03-10T05:00:50.52Z",
"id": "018792C9-4AD7-8EC4-4038-9E05C598534B",
"order_hash": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"protocol_data": {
"order_type": "FULL_RESTRICTED",
"counter": "1",
"zone_address": "0x12",
"seaport_address": "0x12",
"seaport_version": "1.5"
},
"salt": "12686911856931635052326433555881236148",
"buy": [
{
"type": "ERC721",
"contract_address": "0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E",
"token_id": "1"
}
],
"signature": "0x",
"start_at": "2022-03-09T05:00:50.52Z",
"status": {
"name": "EXPIRED"
},
"type": "BID",
"updated_at": "2022-03-07T07:20:50.52Z"
}
}{
"message": "all fields must be provided",
"link": "https://docs.x.immutable.com/reference/#/",
"trace_id": "e47634b79a5cd6894ddc9639ec4aad26",
"code": "VALIDATION_ERROR",
"details": {}
}{
"message": "all fields must be provided",
"link": "https://docs.x.immutable.com/reference/#/",
"trace_id": "e47634b79a5cd6894ddc9639ec4aad26",
"code": "RESOURCE_NOT_FOUND",
"details": {}
}{
"message": "all fields must be provided",
"link": "https://docs.x.immutable.com/reference/#/",
"trace_id": "e47634b79a5cd6894ddc9639ec4aad26",
"code": "INTERNAL_SERVER_ERROR",
"details": {}
}{
"message": "all fields must be provided",
"link": "https://docs.x.immutable.com/reference/#/",
"trace_id": "e47634b79a5cd6894ddc9639ec4aad26",
"code": "NOT_IMPLEMENTED_ERROR",
"details": {}
}{
"message": "all fields must be provided",
"link": "https://docs.x.immutable.com/reference/#/",
"trace_id": "e47634b79a5cd6894ddc9639ec4aad26",
"code": "SERVICE_UNAVAILABLE",
"details": {}
}{
"message": "all fields must be provided",
"link": "https://docs.x.immutable.com/reference/#/",
"trace_id": "e47634b79a5cd6894ddc9639ec4aad26",
"code": "GATEWAY_TIMEOUT",
"details": {}
}Path Parameters
The name of chain
"imtbl-zkevm-testnet"
Body
^0x[a-fA-F0-9]{40}$"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
Buy item for bid should either be ERC721 or ERC1155 item
1 element- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
Show child attributes
Show child attributes
[ { "type": "ERC721", "contract_address": "0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E", "token_id": "1" } ]
Buy fees should only include maker marketplace fees and should be no more than two entries as more entires will incur more gas. It is best practice to have this as few as possible.
2Show child attributes
Show child attributes
[]
Time after which the Order is considered expired
"2022-03-09T05:00:50.52Z"
Show child attributes
Show child attributes
{ "order_type": "FULL_RESTRICTED", "counter": "92315562", "zone_address": "0x12", "seaport_address": "0x12", "seaport_version": "1.5" }
A random value added to the create Order request
"12686911856931635052326433555881236148"
Sell item for bid should be an ERC20 item
1 elementShow child attributes
Show child attributes
[ { "type": "ERC20", "contract_address": "0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E", "amount": "9750000000000000000" } ]
Digital signature generated by the user for the specific Order
"0x"
Time after which Order is considered active
"2022-03-09T05:00:50.52Z"
Response
Created response.
Show child attributes
Show child attributes
{ "account_address": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", "buy": [ { "type": "NATIVE", "amount": "9750000000000000000", "contract_address": "0x0165878A594ca255338adfa4d48449f69242Eb8F" } ], "fees": [], "chain": { "id": "eip155:11155111", "name": "sepolia" }, "created_at": "2022-03-07T07:20:50.52Z", "end_at": "2022-03-10T05:00:50.52Z", "id": "018792C9-4AD7-8EC4-4038-9E05C598534A", "protocol_data": { "order_type": "FULL_RESTRICTED", "counter": "1", "zone_address": "0x12", "seaport_address": "0x12", "seaport_version": "1.4" }, "salt": "12686911856931635052326433555881236148", "sell": [ { "type": "ERC721", "contract_address": "0x692edAd005237c7E737bB2c0F3D8ccCc10D3479E", "token_id": "1" } ], "signature": "0x", "start_at": "2022-03-09T05:00:50.52Z", "status": { "name": "ACTIVE" }, "fill_status": { "numerator": 1, "denominator": 2 }, "type": "LISTING", "updated_at": "2022-03-07T07:20:50.52Z" }
Was this page helpful?