/akash/market/v1beta5/leases/info - Akash

Returns a single lease by its full id, plus its escrow payment.

Endpoint

httpGET /akash/market/v1beta5/leases/info

Query Parameters

ParameterTypeDescription
id.ownerstringOwner
id.dseqstringDeployment sequence
id.gseqstringGroup sequence
id.oseqstringOrder sequence
id.providerstringProvider address

Example

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

curl "${AKASH_REST}akash/market/v1beta5/leases/info?id.owner=akash102kdwsssl6jf4frdcz50mua6j0h6d8wdhjh7nq&id.dseq=25880666&id.gseq=1&id.oseq=1&id.provider=akash19zzh7whjt4vfwxd5wtj3tjtyatnpntfhldshd8"

Response

json{
    "lease": {
        "id": {
            "owner": "akash102kdwsssl6jf4frdcz50mua6j0h6d8wdhjh7nq",
            "dseq": "25880666",
            "gseq": 1,
            "oseq": 1,
            "provider": "akash19zzh7whjt4vfwxd5wtj3tjtyatnpntfhldshd8",
            "bseq": 0
        },
        "state": "active",
        "price": {
            "denom": "uact",
            "amount": "4.826603000000000000"
        },
        "created_at": "25880690",
        "closed_on": "0",
        "reason": "lease_closed_invalid",
        "reclamation": null
    },
    "escrow_payment": {
        "id": {
            "aid": {
                "scope": "deployment",
                "xid": "akash102kdwsssl6jf4frdcz50mua6j0h6d8wdhjh7nq/25880666"
            },
            "xid": "1/1/akash19zzh7whjt4vfwxd5wtj3tjtyatnpntfhldshd8"
        },
        "state": {
            "owner": "akash19zzh7whjt4vfwxd5wtj3tjtyatnpntfhldshd8",
            "state": "open",
            "rate": {
                "denom": "uact",
                "amount": "4.826603000000000000"
            },
            "balance": {
                "denom": "uact",
                "amount": "0.000000000000000000"
            },
            "unsettled": {
                "denom": "uact",
                "amount": "0.000000000000000000"
            },
            "withdrawn": {
                "denom": "uact",
                "amount": "13780746"
            }
        }
    }
}

Response Fields

FieldTypeDescription
leaseobjectLease id, state, and price
escrow_paymentobjectEscrow payment for the lease

Use Cases

  • Billing: Read a lease and its payment

Error Handling

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