/akash/market/v1beta5/orders/list - Akash

Returns marketplace orders. When a deployment's group is open, the market creates an order that providers bid on.

Endpoint

httpGET /akash/market/v1beta5/orders/list

Query Parameters

ParameterTypeDescription
filters.ownerstringFilter by owner address
filters.statestringopen, matched, or closed
pagination.limitstringMax results

Example

bashexport AKASH_REST=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

curl "${AKASH_REST}akash/market/v1beta5/orders/list?pagination.limit=1"

Response

json{
    "orders": [
        {
            "id": {
                "owner": "akash1000dryw6pj53kxt6fe8admaue5lvjf8jjprqqh",
                "dseq": "20805457",
                "gseq": 1,
                "oseq": 1
            },
            "state": "open",
            "spec": {
                "name": "akash",
                "requirements": {
                    "signed_by": {
                        "all_of": [
                            "akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63"
                        ],
                        "any_of": []
                    },
                    "attributes": [
                        {
                            "key": "console/trials",
                            "value": "true"
                        }
                    ]
                },
                "resources": [
                    {
                        "resource": {
                            "id": 1,
                            "cpu": {
                                "units": {
                                    "val": "2000"
                                },
                                "attributes": []
                            },
                            "memory": {
                                "quantity": {
                                    "val": "12000000000"
                                },
                                "attributes": []
                            },
                            "storage": [
                                {
                                    "name": "default",
                                    "quantity": {
                                        "val": "12884901888"
                                    },
                                    "attributes": []
                                }
                            ],
                            "gpu": {
                                "units": {
                                    "val": "1"
                                },
                                "attributes": [
                                    {
                                        "key": "vendor/nvidia/model/*",
                                        "value": "true"
                                    }
                                ]
                            },
                            "endpoints": [
                                {
                                    "kind": "RANDOM_PORT",
                                    "sequence_number": 0
                                }
                            ]
                        },
                        "count": 1,
                        "price": {
                            "denom": "ibc/170C677610AC31DF0904FFE09CD3B5C657492170E7E52372E48756B71E56F2F1",
                            "amount": "10000.000000000000000000"
                        }
                    }
                ]
            },
            "created_at": "20805459",
            "reclamation": null
        }
    ],
    "pagination": {
        "next_key": "YBnrNwMBAgMBAT1ha2FzaDEwMDBkcnl3NnBqNTNreHQ2ZmU4YWRtYXVlNWx2amY4ampwcnFxaAAAAAAAAT13XwAAAAEAAAAB",
        "total": "1"
    }
}

Response Fields

FieldTypeDescription
ordersarrayOrders with order_id and state
orders[].order_idobjectOwner/dseq/gseq/oseq identifying the order

Use Cases

  • Marketplace: Track open orders
  • Providers: Find orders to bid on
  • Indexing: Ingest order state

Error Handling

ErrorMessageDescription
400 / Bad requestBad requestA parameter was invalid
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect