Skip to content

Plasma OTC Contract Queries

Below is a list of the available queries that can be run to interrogate data from deals conducted on the Plasma OTC contract.

Kujira Testnet Plasma Contract Address: kujira12xtsmfr8x6uv37dvdlxdkhu0egyudnkwvflkw55qv55jjg0spq0s6qm78t

Kujira Mainnet Plasma Contract Address: kujira1daem6pjw74e8sgcp60cxw2l72q43045ge27t7z5q2q2xqkyge44sxlqnf8

escrow

Returns the details of an escrow with the provided escrow id.

Input parameters
id: u64    //Id of the escrow to query
Sample query
{
  "escrow": {"id": 2726}
}
Response
{
"id": 2726,
"otc_type": "PartialFill",
"maker": "kujira1yfatj6nnl06vu3t4k4z39x68mp520ymzy2uplh",
"created_at": 1689207307,
"arbiter": null,
"taker": null,
"title": null,
"description": null,
"end_height": null,
"start_time": null,
"end_time": null,
"maker_balance": {
  "denom": "ibc/31ED168F5E93D988FCF223B1298113ACA818DB7BED8F7B73764C5C9FAC293609",
  "amount": "1000000000000000"
},
"asking_price": {
  "denom": "ibc/47BD209179859CDE4A2806763D7189B6E6FE13A17880FE2B42DE1E6C1E329E23",
  "amount": "2846000000"
},
"taker_balance": null,
"status": "Active",
"vesting_enabled": false,
"vesting_account": null,
"vesting_end_time": null,
"vesting_delayed": null,
"partial_fills_enabled": true,
"partial_fill_minimum": null,
"partial_fill_maximum": null,
"partial_fill_of_id": null,
"partial_fill_count": null,
"partial_fill_taker_total": null,
"partial_fill_maker_total": null,
"collateralized_otc_enabled": null,
"collateral_balance": null,
"collateral_maker_balance_deposited": null,
"collateral_expiry_time": null,
"image_url": null,
"whitelist_enabled": false,
"kyc_enabled": false
}

market_escrow_list

Returns a paginated list of details for all escrows matching the input parameters.

Input parameters
otc_type: Option<EscrowType>  //See enum definition below
start_after: Option<u64>      //Escrow id for pagination
limit: Option<u32>            //No. of items for pagination
sort_asc: Option<bool>

pub enum EscrowType {
  Standard,
  PartialFill,
  AirDrop,
  Burn,
}
Sample query
{
  "market_escrow_list": {"otc_type": "Standard", "limit": 2}
}
Response
{
  "data": [
    {
      "id": 2670,
      "otc_type": "Standard",
      "maker": "kujira1c3u4gpps9sw3w5np2sj6s50gds7cpm2hf6vksc",
      "created_at": 1686950619,
      "arbiter": null,
      "taker": null,
      "title": null,
      "description": null,
      "end_height": null,
      "start_time": null,
      "end_time": null,
      "maker_balance": {
        "denom": "factory/kujira1jwdc6rhj2jqc9kn4jc76denz8jtj00y3nqnutg/ubfit",
        "amount": "100000000"
      },
      "asking_price": {
        "denom": "ukuji",
        "amount": "20000000"
      },
      "taker_balance": null,
      "status": "Active",
      "vesting_enabled": false,
      "vesting_account": null,
      "vesting_end_time": null,
      "vesting_delayed": null,
      "partial_fills_enabled": false,
      "partial_fill_minimum": null,
      "partial_fill_maximum": null,
      "partial_fill_of_id": null,
      "partial_fill_count": null,
      "partial_fill_taker_total": null,
      "partial_fill_maker_total": null,
      "collateralized_otc_enabled": null,
      "collateral_balance": null,
      "collateral_maker_balance_deposited": null,
      "collateral_expiry_time": null,
      "image_url": null,
      "whitelist_enabled": false,
      "kyc_enabled": false
    },
    {
      "id": 2637,
      "otc_type": "Standard",
      "maker": "kujira1mjmsn9k4rn9mr5hgz86ztg0cuj4zmhprjg97f8",
      "created_at": 1685095118,
      "arbiter": null,
      "taker": null,
      "title": null,
      "description": null,
      "end_height": null,
      "start_time": null,
      "end_time": 1685098715,
      "maker_balance": {
        "denom": "ukuji",
        "amount": "2000000"
      },
      "asking_price": {
        "denom": "factory/kujira1643jxg8wasy5cfcn7xm8rd742yeazcksqlg4d7/umnta",
        "amount": "10000000"
      },
      "taker_balance": null,
      "status": "Expired",
      "vesting_enabled": false,
      "vesting_account": null,
      "vesting_end_time": null,
      "vesting_delayed": null,
      "partial_fills_enabled": false,
      "partial_fill_minimum": null,
      "partial_fill_maximum": null,
      "partial_fill_of_id": null,
      "partial_fill_count": null,
      "partial_fill_taker_total": null,
      "partial_fill_maker_total": null,
      "collateralized_otc_enabled": null,
      "collateral_balance": null,
      "collateral_maker_balance_deposited": null,
      "collateral_expiry_time": null,
      "image_url": null,
      "whitelist_enabled": false,
      "kyc_enabled": false
    }
  ],
  "pagination": {
    "next_key": 2637,
    "total": null
  }
}    

market_escrow_active_list

Returns a paginated list of details for active escrows matching the input parameters.

Input parameters
otc_type: Option<EscrowType>  //See enum definition below
start_after: Option<u64>      //Escrow id for pagination
limit: Option<u32>            //No. of items for pagination
sort_asc: Option<bool>

pub enum EscrowType {
  Standard,
  PartialFill,
  AirDrop,
  Burn,
}
Sample query
{
  "market_escrow_active_list": {"otc_type": "PartialFill", "limit": 2}
}
Response
{
  "data": [
    {
      "id": 2702,
      "otc_type": "PartialFill",
      "maker": "kujira16cvlu03q8vv0fyyk6ld7ctthd6v3phekza38g5",
      "created_at": 1688366803,
      "arbiter": null,
      "taker": null,
      "title": null,
      "description": null,
      "end_height": null,
      "start_time": null,
      "end_time": null,
      "maker_balance": {
        "denom": "factory/kujira1jwdc6rhj2jqc9kn4jc76denz8jtj00y3nqnutg/ubfit",
        "amount": "10000000000"
      },
      "asking_price": {
        "denom": "ibc/F2331645B9683116188EF36FC04A809C28BD36B54555E8705A37146D0182F045",
        "amount": "1300000000"
      },
      "taker_balance": null,
      "status": "Active",
      "vesting_enabled": false,
      "vesting_account": null,
      "vesting_end_time": null,
      "vesting_delayed": null,
      "partial_fills_enabled": true,
      "partial_fill_minimum": null,
      "partial_fill_maximum": null,
      "partial_fill_of_id": null,
      "partial_fill_count": null,
      "partial_fill_taker_total": null,
      "partial_fill_maker_total": null,
      "collateralized_otc_enabled": null,
      "collateral_balance": null,
      "collateral_maker_balance_deposited": null,
      "collateral_expiry_time": null,
      "image_url": null,
      "whitelist_enabled": false,
      "kyc_enabled": false
    },
    {
      "id": 2701,
      "otc_type": "PartialFill",
      "maker": "kujira16cvlu03q8vv0fyyk6ld7ctthd6v3phekza38g5",
      "created_at": 1688366729,
      "arbiter": null,
      "taker": null,
      "title": null,
      "description": null,
      "end_height": null,
      "start_time": null,
      "end_time": null,
      "maker_balance": {
        "denom": "factory/kujira1jwdc6rhj2jqc9kn4jc76denz8jtj00y3nqnutg/ubfit",
        "amount": "10000000000"
      },
      "asking_price": {
        "denom": "ibc/295548A78785A1007F232DE286149A6FF512F180AF5657780FC89C009E2C348F",
        "amount": "1300000000"
      },
      "taker_balance": null,
      "status": "Active",
      "vesting_enabled": false,
      "vesting_account": null,
      "vesting_end_time": null,
      "vesting_delayed": null,
      "partial_fills_enabled": true,
      "partial_fill_minimum": null,
      "partial_fill_maximum": null,
      "partial_fill_of_id": null,
      "partial_fill_count": null,
      "partial_fill_taker_total": null,
      "partial_fill_maker_total": null,
      "collateralized_otc_enabled": null,
      "collateral_balance": null,
      "collateral_maker_balance_deposited": null,
      "collateral_expiry_time": null,
      "image_url": null,
      "whitelist_enabled": false,
      "kyc_enabled": false
    }
  ],
  "pagination": {
    "next_key": 2701,
    "total": null
  }
}

market_escrow_active_pairs_count

Returns the pair count for active escrows

Input parameters
None
Sample query
{
  "market_escrow_active_pairs_count": {}
}
Response
{
  "pairs": [
    {
      "denom1": "factory/kujira1643jxg8wasy5cfcn7xm8rd742yeazcksqlg4d7/umnta",
      "denom2": "ukuji",
      "count": 5
    },
    {
      "denom1": "factory/kujira1jwdc6rhj2jqc9kn4jc76denz8jtj00y3nqnutg/ubfit",
      "denom2": "factory/kujira1qk00h5atutpsv900x202pxx42npjr9thg58dnqpa72f2p7m2luase444a7/uusk",
      "count": 1
    },
    {
      "denom1": "factory/kujira1jwdc6rhj2jqc9kn4jc76denz8jtj00y3nqnutg/ubfit",
      "denom2": "ibc/295548A78785A1007F232DE286149A6FF512F180AF5657780FC89C009E2C348F",
      "count": 1
    },
    {
      "denom1": "factory/kujira1jwdc6rhj2jqc9kn4jc76denz8jtj00y3nqnutg/ubfit",
      "denom2": "ibc/F2331645B9683116188EF36FC04A809C28BD36B54555E8705A37146D0182F045",
      "count": 1
    },
    {
      "denom1": "factory/kujira1jwdc6rhj2jqc9kn4jc76denz8jtj00y3nqnutg/ubfit",
      "denom2": "ukuji",
      "count": 1
    },
    {
      "denom1": "ibc/21F041CFE99994E0D027D0C5F72A9EB6224CBCAF5A6AD5DDB75F67A781D46C68",
      "denom2": "ibc/31ED168F5E93D988FCF223B1298113ACA818DB7BED8F7B73764C5C9FAC293609",
      "count": 1
    },
    {
      "denom1": "ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2",
      "denom2": "ibc/31ED168F5E93D988FCF223B1298113ACA818DB7BED8F7B73764C5C9FAC293609",
      "count": 4
    },
    {
      "denom1": "ibc/31ED168F5E93D988FCF223B1298113ACA818DB7BED8F7B73764C5C9FAC293609",
      "denom2": "ibc/3607EB5B5E64DD1C0E12E07F077FF470D5BC4706AFCBC98FE1BA960E5AE4CE07",
      "count": 1
    },
    {
      "denom1": "ibc/31ED168F5E93D988FCF223B1298113ACA818DB7BED8F7B73764C5C9FAC293609",
      "denom2": "ibc/5A3DCF59BC9EC5C0BB7AA0CA0279FC2BB126640CB8B8F704F7BC2DC42495041B",
      "count": 1
    },
    {
      "denom1": "ibc/31ED168F5E93D988FCF223B1298113ACA818DB7BED8F7B73764C5C9FAC293609",
      "denom2": "ibc/D36D2BBE441D3605EEF340EAFAC57D669880597073050A2650B1468F1634A5F5",
      "count": 7
    },
    {
      "denom1": "ibc/31ED168F5E93D988FCF223B1298113ACA818DB7BED8F7B73764C5C9FAC293609",
      "denom2": "ibc/DBF6ABDB5F3D4267C039967515594453F4A31007FD838A566F563A01D2C2FB80",
      "count": 1
    },
    {
      "denom1": "ibc/31ED168F5E93D988FCF223B1298113ACA818DB7BED8F7B73764C5C9FAC293609",
      "denom2": "ibc/E4572F1DEAA76A5A7E1280B6E462176A5B1FB716CD1F445E21D9F32A85DD11A8",
      "count": 1
    },
    {
      "denom1": "ibc/31ED168F5E93D988FCF223B1298113ACA818DB7BED8F7B73764C5C9FAC293609",
      "denom2": "ibc/EFF323CC632EC4F747C61BCE238A758EFDB7699C3226565F7C20DA06509D59A5",
      "count": 1
    },
    {
      "denom1": "ibc/31ED168F5E93D988FCF223B1298113ACA818DB7BED8F7B73764C5C9FAC293609",
      "denom2": "ukuji",
      "count": 1
    },
    {
      "denom1": "ibc/3607EB5B5E64DD1C0E12E07F077FF470D5BC4706AFCBC98FE1BA960E5AE4CE07",
      "denom2": "ibc/C01154C2547F4CB10A985EA78E7CD4BA891C1504360703A37E1D7043F06B5E1F",
      "count": 1
    },
    {
      "denom1": "ibc/3607EB5B5E64DD1C0E12E07F077FF470D5BC4706AFCBC98FE1BA960E5AE4CE07",
      "denom2": "ibc/E4572F1DEAA76A5A7E1280B6E462176A5B1FB716CD1F445E21D9F32A85DD11A8",
      "count": 2
    },
    {
      "denom1": "ibc/53796B3762678CD80784A7DD426EB45B89C024BE3D45224CC83FDE3DED7DA0A1",
      "denom2": "ibc/640E1C3E28FD45F611971DF891AE3DC90C825DF759DF8FAA8F33F7F72B35AD56",
      "count": 1
    },
    {
      "denom1": "ibc/A358D7F19237777AF6D8AD0E0F53268F8B18AE8A53ED318095C14D6D7F3B2DB5",
      "denom2": "ukuji",
      "count": 1
    },
    {
      "denom1": "ibc/BBC45F1B65B6D3C11C3C56A9428D38C3A8D03944473791C52DFB7CD3F8342CBC",
      "denom2": "ukuji",
      "count": 1
    },
    {
      "denom1": "ibc/E4572F1DEAA76A5A7E1280B6E462176A5B1FB716CD1F445E21D9F32A85DD11A8",
      "denom2": "ukuji",
      "count": 1
    },
    {
      "denom1": "factory/kujira13y8hs83sk0la7na2w5g5nzrnjjpnkvmd7e87yd35g8dcph7dn0ksenay2a/ulp",
      "denom2": "ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2",
      "count": 1
    },
    {
      "denom1": "factory/kujira1qk00h5atutpsv900x202pxx42npjr9thg58dnqpa72f2p7m2luase444a7/uusk",
      "denom2": "ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2",
      "count": 1
    },
    {
      "denom1": "factory/kujira1qk00h5atutpsv900x202pxx42npjr9thg58dnqpa72f2p7m2luase444a7/uusk",
      "denom2": "ibc/31ED168F5E93D988FCF223B1298113ACA818DB7BED8F7B73764C5C9FAC293609",
      "count": 2
    },
    {
      "denom1": "factory/kujira1qk00h5atutpsv900x202pxx42npjr9thg58dnqpa72f2p7m2luase444a7/uusk",
      "denom2": "ukuji",
      "count": 1
    },
    {
      "denom1": "factory/kujira1n3fr5f56r2ce0s37wdvwrk98yhhq3unnxgcqus8nzsfxvllk0yxquurqty/ampKUJI",
      "denom2": "ibc/31ED168F5E93D988FCF223B1298113ACA818DB7BED8F7B73764C5C9FAC293609",
      "count": 1
    }
  ]
}  

market_escrow_active_pairs_list

Returns active escrows for a denom pair combination

Input parameters
pair: (String, String)        //Pair denoms
otc_type: Option<EscrowType>  //See enum definition below
start_after: Option<u64>      //Escrow id for pagination
limit: Option<u32>            //No. of items for pagination
sort_asc: Option<bool>

pub enum EscrowType {
  Standard,
  PartialFill,
  AirDrop,
  Burn,
}
Sample query
{
  "market_escrow_active_pairs_list": {"pair": ["factory/kujira1643jxg8wasy5cfcn7xm8rd742yeazcksqlg4d7/umnta", "ukuji"]}
}
Response
{
  "data": [
    {
      "id": 2640,
      "otc_type": "PartialFill",
      "maker": "kujira16snjkmde2dmqd0x7zqn48zu4ew2r4uylat0ncw",
      "created_at": 1685369980,
      "arbiter": null,
      "taker": null,
      "title": null,
      "description": null,
      "end_height": null,
      "start_time": null,
      "end_time": null,
      "maker_balance": {
        "denom": "ukuji",
        "amount": "1000000"
      },
      "asking_price": {
        "denom": "factory/kujira1643jxg8wasy5cfcn7xm8rd742yeazcksqlg4d7/umnta",
        "amount": "15000000"
      },
      "taker_balance": null,
      "status": "Active",
      "vesting_enabled": false,
      "vesting_account": null,
      "vesting_end_time": null,
      "vesting_delayed": null,
      "partial_fills_enabled": true,
      "partial_fill_minimum": null,
      "partial_fill_maximum": null,
      "partial_fill_of_id": null,
      "partial_fill_count": null,
      "partial_fill_taker_total": null,
      "partial_fill_maker_total": null,
      "collateralized_otc_enabled": null,
      "collateral_balance": null,
      "collateral_maker_balance_deposited": null,
      "collateral_expiry_time": null,
      "image_url": null,
      "whitelist_enabled": false,
      "kyc_enabled": false
    },
    {
      "id": 2616,
      "otc_type": "PartialFill",
      "maker": "kujira1l5y0jjwps09zgr7atldrj58utyk95caj38vy3j",
      "created_at": 1684772176,
      "arbiter": null,
      "taker": null,
      "title": null,
      "description": null,
      "end_height": null,
      "start_time": null,
      "end_time": null,
      "maker_balance": {
        "denom": "ukuji",
        "amount": "10000000"
      },
      "asking_price": {
        "denom": "factory/kujira1643jxg8wasy5cfcn7xm8rd742yeazcksqlg4d7/umnta",
        "amount": "100000000000"
      },
      "taker_balance": null,
      "status": "Active",
      "vesting_enabled": false,
      "vesting_account": null,
      "vesting_end_time": null,
      "vesting_delayed": null,
      "partial_fills_enabled": true,
      "partial_fill_minimum": null,
      "partial_fill_maximum": null,
      "partial_fill_of_id": null,
      "partial_fill_count": null,
      "partial_fill_taker_total": null,
      "partial_fill_maker_total": null,
      "collateralized_otc_enabled": null,
      "collateral_balance": null,
      "collateral_maker_balance_deposited": null,
      "collateral_expiry_time": null,
      "image_url": null,
      "whitelist_enabled": false,
      "kyc_enabled": false
    },
    {
      "id": 1661,
      "otc_type": "PartialFill",
      "maker": "kujira1xj050ejzs04q770s23f5qftfs2wn2upjqhz3lc",
      "created_at": 1681823388,
      "arbiter": null,
      "taker": null,
      "title": null,
      "description": null,
      "end_height": null,
      "start_time": null,
      "end_time": null,
      "maker_balance": {
        "denom": "ukuji",
        "amount": "1000000"
      },
      "asking_price": {
        "denom": "factory/kujira1643jxg8wasy5cfcn7xm8rd742yeazcksqlg4d7/umnta",
        "amount": "1000000000"
      },
      "taker_balance": null,
      "status": "Active",
      "vesting_enabled": false,
      "vesting_account": null,
      "vesting_end_time": null,
      "vesting_delayed": null,
      "partial_fills_enabled": true,
      "partial_fill_minimum": null,
      "partial_fill_maximum": null,
      "partial_fill_of_id": null,
      "partial_fill_count": null,
      "partial_fill_taker_total": null,
      "partial_fill_maker_total": null,
      "collateralized_otc_enabled": null,
      "collateral_balance": null,
      "collateral_maker_balance_deposited": null,
      "collateral_expiry_time": null,
      "image_url": null,
      "whitelist_enabled": false,
      "kyc_enabled": false
    },
    {
      "id": 253,
      "otc_type": "Standard",
      "maker": "kujira1xj050ejzs04q770s23f5qftfs2wn2upjqhz3lc",
      "created_at": 1681663310,
      "arbiter": null,
      "taker": null,
      "title": null,
      "description": null,
      "end_height": null,
      "start_time": null,
      "end_time": null,
      "maker_balance": {
        "denom": "ukuji",
        "amount": "1000000"
      },
      "asking_price": {
        "denom": "factory/kujira1643jxg8wasy5cfcn7xm8rd742yeazcksqlg4d7/umnta",
        "amount": "1000000000"
      },
      "taker_balance": null,
      "status": "Active",
      "vesting_enabled": false,
      "vesting_account": null,
      "vesting_end_time": null,
      "vesting_delayed": null,
      "partial_fills_enabled": false,
      "partial_fill_minimum": null,
      "partial_fill_maximum": null,
      "partial_fill_of_id": null,
      "partial_fill_count": null,
      "partial_fill_taker_total": null,
      "partial_fill_maker_total": null,
      "collateralized_otc_enabled": null,
      "collateral_balance": null,
      "collateral_maker_balance_deposited": null,
      "collateral_expiry_time": null,
      "image_url": null,
      "whitelist_enabled": false,
      "kyc_enabled": false
    }
  ],
  "pagination": {
    "next_key": null,
    "total": null
  }
}

pairs_list

Returns escrows for a pair

Input parameters
pair: (String, String),    //Pair denoms
start_after: Option<u64>,  //Escrow id for pagination
limit: Option<u32>,        //No. of items for pagination
sort_asc: Option<bool>,
status: Option<String>,
Sample query
{
  "pairs_list": {"pair": ["factory/kujira1643jxg8wasy5cfcn7xm8rd742yeazcksqlg4d7/umnta","ukuji"], "limit": 2}
}
Response
{
  "data": [
    {
      "id": 2640,
      "otc_type": "PartialFill",
      "maker": "kujira16snjkmde2dmqd0x7zqn48zu4ew2r4uylat0ncw",
      "created_at": 1685369980,
      "arbiter": null,
      "taker": null,
      "title": null,
      "description": null,
      "end_height": null,
      "start_time": null,
      "end_time": null,
      "maker_balance": {
        "denom": "ukuji",
        "amount": "1000000"
      },
      "asking_price": {
        "denom": "factory/kujira1643jxg8wasy5cfcn7xm8rd742yeazcksqlg4d7/umnta",
        "amount": "15000000"
      },
      "taker_balance": null,
      "status": "Active",
      "vesting_enabled": false,
      "vesting_account": null,
      "vesting_end_time": null,
      "vesting_delayed": null,
      "partial_fills_enabled": true,
      "partial_fill_minimum": null,
      "partial_fill_maximum": null,
      "partial_fill_of_id": null,
      "partial_fill_count": null,
      "partial_fill_taker_total": null,
      "partial_fill_maker_total": null,
      "collateralized_otc_enabled": null,
      "collateral_balance": null,
      "collateral_maker_balance_deposited": null,
      "collateral_expiry_time": null,
      "image_url": null,
      "whitelist_enabled": false,
      "kyc_enabled": false
    },
    {
      "id": 2637,
      "otc_type": "Standard",
      "maker": "kujira1mjmsn9k4rn9mr5hgz86ztg0cuj4zmhprjg97f8",
      "created_at": 1685095118,
      "arbiter": null,
      "taker": null,
      "title": null,
      "description": null,
      "end_height": null,
      "start_time": null,
      "end_time": 1685098715,
      "maker_balance": {
        "denom": "ukuji",
        "amount": "2000000"
      },
      "asking_price": {
        "denom": "factory/kujira1643jxg8wasy5cfcn7xm8rd742yeazcksqlg4d7/umnta",
        "amount": "10000000"
      },
      "taker_balance": null,
      "status": "Expired",
      "vesting_enabled": false,
      "vesting_account": null,
      "vesting_end_time": null,
      "vesting_delayed": null,
      "partial_fills_enabled": false,
      "partial_fill_minimum": null,
      "partial_fill_maximum": null,
      "partial_fill_of_id": null,
      "partial_fill_count": null,
      "partial_fill_taker_total": null,
      "partial_fill_maker_total": null,
      "collateralized_otc_enabled": null,
      "collateral_balance": null,
      "collateral_maker_balance_deposited": null,
      "collateral_expiry_time": null,
      "image_url": null,
      "whitelist_enabled": false,
      "kyc_enabled": false
    }
  ],
  "pagination": {
    "next_key": 2637,
    "total": null
  }
}    

pairs_count

Returns count of pairs

Input parameters
status: Option<String>
Sample query
{
  "pairs_count": {"status": "Active"}
}
Response
{
  "pairs": [
    {
      "denom1": "ibc/31ED168F5E93D988FCF223B1298113ACA818DB7BED8F7B73764C5C9FAC293609",
      "denom2": "ibc/DBF6ABDB5F3D4267C039967515594453F4A31007FD838A566F563A01D2C2FB80",
      "count": 1
    },
    {
      "denom1": "ibc/31ED168F5E93D988FCF223B1298113ACA818DB7BED8F7B73764C5C9FAC293609",
      "denom2": "ibc/5A3DCF59BC9EC5C0BB7AA0CA0279FC2BB126640CB8B8F704F7BC2DC42495041B",
      "count": 1
    },
    {
      "denom1": "ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2",
      "denom2": "ibc/31ED168F5E93D988FCF223B1298113ACA818DB7BED8F7B73764C5C9FAC293609",
      "count": 1
    },
    {
      "denom1": "factory/kujira1jwdc6rhj2jqc9kn4jc76denz8jtj00y3nqnutg/ubfit",
      "denom2": "ibc/295548A78785A1007F232DE286149A6FF512F180AF5657780FC89C009E2C348F",
      "count": 1
    },
    {
      "denom1": "ibc/31ED168F5E93D988FCF223B1298113ACA818DB7BED8F7B73764C5C9FAC293609",
      "denom2": "ibc/3607EB5B5E64DD1C0E12E07F077FF470D5BC4706AFCBC98FE1BA960E5AE4CE07",
      "count": 1
    },
    {
      "denom1": "ibc/31ED168F5E93D988FCF223B1298113ACA818DB7BED8F7B73764C5C9FAC293609",
      "denom2": "ibc/E4572F1DEAA76A5A7E1280B6E462176A5B1FB716CD1F445E21D9F32A85DD11A8",
      "count": 1
    },
    {
      "denom1": "ibc/3607EB5B5E64DD1C0E12E07F077FF470D5BC4706AFCBC98FE1BA960E5AE4CE07",
      "denom2": "ibc/C01154C2547F4CB10A985EA78E7CD4BA891C1504360703A37E1D7043F06B5E1F",
      "count": 1
    },
    {
      "denom1": "ibc/E4572F1DEAA76A5A7E1280B6E462176A5B1FB716CD1F445E21D9F32A85DD11A8",
      "denom2": "ukuji",
      "count": 1
    },
    {
      "denom1": "ibc/21F041CFE99994E0D027D0C5F72A9EB6224CBCAF5A6AD5DDB75F67A781D46C68",
      "denom2": "ibc/31ED168F5E93D988FCF223B1298113ACA818DB7BED8F7B73764C5C9FAC293609",
      "count": 1
    },
    {
      "denom1": "factory/kujira1643jxg8wasy5cfcn7xm8rd742yeazcksqlg4d7/umnta",
      "denom2": "ukuji",
      "count": 4
    },
    {
      "denom1": "ibc/31ED168F5E93D988FCF223B1298113ACA818DB7BED8F7B73764C5C9FAC293609",
      "denom2": "ibc/EFF323CC632EC4F747C61BCE238A758EFDB7699C3226565F7C20DA06509D59A5",
      "count": 1
    },
    {
      "denom1": "factory/kujira13y8hs83sk0la7na2w5g5nzrnjjpnkvmd7e87yd35g8dcph7dn0ksenay2a/ulp",
      "denom2": "ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2",
      "count": 1
    },
    {
      "denom1": "factory/kujira1qk00h5atutpsv900x202pxx42npjr9thg58dnqpa72f2p7m2luase444a7/uusk",
      "denom2": "ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2",
      "count": 1
    },
    {
      "denom1": "factory/kujira1qk00h5atutpsv900x202pxx42npjr9thg58dnqpa72f2p7m2luase444a7/uusk",
      "denom2": "ibc/31ED168F5E93D988FCF223B1298113ACA818DB7BED8F7B73764C5C9FAC293609",
      "count": 3
    },
    {
      "denom1": "ibc/A358D7F19237777AF6D8AD0E0F53268F8B18AE8A53ED318095C14D6D7F3B2DB5",
      "denom2": "ukuji",
      "count": 1
    },
    {
      "denom1": "ibc/31ED168F5E93D988FCF223B1298113ACA818DB7BED8F7B73764C5C9FAC293609",
      "denom2": "ibc/D36D2BBE441D3605EEF340EAFAC57D669880597073050A2650B1468F1634A5F5",
      "count": 7
    },
    {
      "denom1": "factory/kujira1n3fr5f56r2ce0s37wdvwrk98yhhq3unnxgcqus8nzsfxvllk0yxquurqty/ampKUJI",
      "denom2": "ibc/31ED168F5E93D988FCF223B1298113ACA818DB7BED8F7B73764C5C9FAC293609",
      "count": 1
    },
    {
      "denom1": "factory/kujira1jwdc6rhj2jqc9kn4jc76denz8jtj00y3nqnutg/ubfit",
      "denom2": "ibc/F2331645B9683116188EF36FC04A809C28BD36B54555E8705A37146D0182F045",
      "count": 1
    },
    {
      "denom1": "ibc/53796B3762678CD80784A7DD426EB45B89C024BE3D45224CC83FDE3DED7DA0A1",
      "denom2": "ibc/640E1C3E28FD45F611971DF891AE3DC90C825DF759DF8FAA8F33F7F72B35AD56",
      "count": 1
    },
    {
      "denom1": "ibc/3607EB5B5E64DD1C0E12E07F077FF470D5BC4706AFCBC98FE1BA960E5AE4CE07",
      "denom2": "ibc/E4572F1DEAA76A5A7E1280B6E462176A5B1FB716CD1F445E21D9F32A85DD11A8",
      "count": 2
    },
    {
      "denom1": "factory/kujira1jwdc6rhj2jqc9kn4jc76denz8jtj00y3nqnutg/ubfit",
      "denom2": "ukuji",
      "count": 1
    },
    {
      "denom1": "factory/kujira1jwdc6rhj2jqc9kn4jc76denz8jtj00y3nqnutg/ubfit",
      "denom2": "factory/kujira1qk00h5atutpsv900x202pxx42npjr9thg58dnqpa72f2p7m2luase444a7/uusk",
      "count": 1
    },
    {
      "denom1": "ibc/BBC45F1B65B6D3C11C3C56A9428D38C3A8D03944473791C52DFB7CD3F8342CBC",
      "denom2": "ukuji",
      "count": 1
    },
    {
      "denom1": "factory/kujira1qk00h5atutpsv900x202pxx42npjr9thg58dnqpa72f2p7m2luase444a7/uusk",
      "denom2": "ukuji",
      "count": 1
    },
    {
      "denom1": "ibc/D36D2BBE441D3605EEF340EAFAC57D669880597073050A2650B1468F1634A5F5",
      "denom2": "ukuji",
      "count": 1
    }
  ]
}    

maker_escrow_list

Returns a paginated list of all escrows where the wallet address specified in the query is the maker

Input parameters
maker: Addr,                 //Escrow maker wallet address
start_after: Option<u64>,    //Escrow id for pagination
limit: Option<u32>,          //No. of items for pagination
sort_asc: Option<bool>,  
Sample query
{
  "maker_escrow_list": {"maker": "kujira1kfm2cj8z9w5llce7wweugdjjeq26uytuq99n50", "start_after": 2734, "limit": 2}
}
Response
{
  "data": [
    {
      "id": 2663,
      "otc_type": "PartialFill",
      "maker": "kujira1kfm2cj8z9w5llce7wweugdjjeq26uytuq99n50",
      "created_at": 1685595707,
      "arbiter": null,
      "taker": null,
      "title": null,
      "description": null,
      "end_height": null,
      "start_time": null,
      "end_time": null,
      "maker_balance": {
        "denom": "ibc/31ED168F5E93D988FCF223B1298113ACA818DB7BED8F7B73764C5C9FAC293609",
        "amount": "100000000"
      },
      "asking_price": {
        "denom": "ibc/E4572F1DEAA76A5A7E1280B6E462176A5B1FB716CD1F445E21D9F32A85DD11A8",
        "amount": "1000000"
      },
      "taker_balance": null,
      "status": "Active",
      "vesting_enabled": false,
      "vesting_account": null,
      "vesting_end_time": null,
      "vesting_delayed": null,
      "partial_fills_enabled": true,
      "partial_fill_minimum": null,
      "partial_fill_maximum": null,
      "partial_fill_of_id": null,
      "partial_fill_count": null,
      "partial_fill_taker_total": null,
      "partial_fill_maker_total": null,
      "collateralized_otc_enabled": null,
      "collateral_balance": null,
      "collateral_maker_balance_deposited": null,
      "collateral_expiry_time": null,
      "image_url": null,
      "whitelist_enabled": false,
      "kyc_enabled": false
    },
    {
      "id": 2662,
      "otc_type": "PartialFill",
      "maker": "kujira1kfm2cj8z9w5llce7wweugdjjeq26uytuq99n50",
      "created_at": 1685595644,
      "arbiter": null,
      "taker": null,
      "title": null,
      "description": null,
      "end_height": null,
      "start_time": null,
      "end_time": null,
      "maker_balance": {
        "denom": "ibc/3607EB5B5E64DD1C0E12E07F077FF470D5BC4706AFCBC98FE1BA960E5AE4CE07",
        "amount": "50000000"
      },
      "asking_price": {
        "denom": "ibc/E4572F1DEAA76A5A7E1280B6E462176A5B1FB716CD1F445E21D9F32A85DD11A8",
        "amount": "5000000"
      },
      "taker_balance": null,
      "status": "Active",
      "vesting_enabled": false,
      "vesting_account": null,
      "vesting_end_time": null,
      "vesting_delayed": null,
      "partial_fills_enabled": true,
      "partial_fill_minimum": null,
      "partial_fill_maximum": null,
      "partial_fill_of_id": null,
      "partial_fill_count": null,
      "partial_fill_taker_total": null,
      "partial_fill_maker_total": null,
      "collateralized_otc_enabled": null,
      "collateral_balance": null,
      "collateral_maker_balance_deposited": null,
      "collateral_expiry_time": null,
      "image_url": null,
      "whitelist_enabled": false,
      "kyc_enabled": false
    }
  ],
  "pagination": {
    "next_key": 2662,
    "total": null
  }
}    

taker_escrow_list

Returns a paginated list of all escrows where the wallet address specified in the query is the taker

Input parameters
taker: Addr,                 //Escrow taker wallet address
start_after: Option<u64>,    //Escrow id for pagination
limit: Option<u32>,          //No. of items for pagination
sort_asc: Option<bool>,  
Sample query
{
  "taker_escrow_list": {"taker": "kujira1kfm2cj8z9w5llce7wweugdjjeq26uytuq99n50", "limit": 2}
}
Response
{
  "data": [
    {
      "id": 123,
      "otc_type": "PartialFill",
      "maker": "kujira16cvlu03q8vv0fyyk6ld7ctthd6v3phekza38g5",
      "created_at": 1681568672,
      "arbiter": null,
      "taker": "kujira1kfm2cj8z9w5llce7wweugdjjeq26uytuq99n50",
      "title": null,
      "description": null,
      "end_height": null,
      "start_time": null,
      "end_time": null,
      "maker_balance": {
        "denom": "factory/kujira1ltvwg69sw3c5z99c6rr08hal7v0kdzfxz07yj5/demo",
        "amount": "2000000"
      },
      "asking_price": {
        "denom": "ukuji",
        "amount": "1000000"
      },
      "taker_balance": {
        "denom": "ukuji",
        "amount": "1000000"
      },
      "status": "Completed",
      "vesting_enabled": false,
      "vesting_account": null,
      "vesting_end_time": null,
      "vesting_delayed": null,
      "partial_fills_enabled": true,
      "partial_fill_minimum": null,
      "partial_fill_maximum": null,
      "partial_fill_of_id": 623,
      "partial_fill_count": null,
      "partial_fill_taker_total": null,
      "partial_fill_maker_total": null,
      "collateralized_otc_enabled": null,
      "collateral_balance": null,
      "collateral_maker_balance_deposited": null,
      "collateral_expiry_time": null,
      "image_url": null,
      "whitelist_enabled": false,
      "kyc_enabled": false
    },
    {
      "id": 456,
      "otc_type": "PartialFill",
      "maker": "kujira16cvlu03q8vv0fyyk6ld7ctthd6v3phekza38g5",
      "created_at": 1681293765,
      "arbiter": null,
      "taker": "kujira1kfm2cj8z9w5llce7wweugdjjeq26uytuq99n50",
      "title": null,
      "description": null,
      "end_height": null,
      "start_time": null,
      "end_time": null,
      "maker_balance": {
        "denom": "ukuji",
        "amount": "112750000"
      },
      "asking_price": {
        "denom": "factory/kujira1r85reqy6h0lu02vyz0hnzhv5whsns55gdt4w0d7ft87utzk7u0wqr4ssll/uusk",
        "amount": "11000000"
      },
      "taker_balance": {
        "denom": "factory/kujira1r85reqy6h0lu02vyz0hnzhv5whsns55gdt4w0d7ft87utzk7u0wqr4ssll/uusk",
        "amount": "11000000"
      },
      "status": "Completed",
      "vesting_enabled": false,
      "vesting_account": null,
      "vesting_end_time": null,
      "vesting_delayed": null,
      "partial_fills_enabled": true,
      "partial_fill_minimum": null,
      "partial_fill_maximum": null,
      "partial_fill_of_id": 537,
      "partial_fill_count": null,
      "partial_fill_taker_total": null,
      "partial_fill_maker_total": null,
      "collateralized_otc_enabled": null,
      "collateral_balance": null,
      "collateral_maker_balance_deposited": null,
      "collateral_expiry_time": null,
      "image_url": null,
      "whitelist_enabled": false,
      "kyc_enabled": false
    }
  ],
  "pagination": {
    "next_key": 567,
    "total": null
  }
}    

whitelist

Returns a wallet address with it's allocation min and max if the wallet is whitelisted for a particular escrow

Input parameters
address: Addr,    //Wallet address 
id: u64           //Escrow id you wish to check whitelisting for
Sample query
{
  "whitelist": {"address": "kujira1zz424drr3pf44pehamvqug9fdfjlgnhdyc3xce", "id": 274}
}
Response
{
  "address": "kujira1zz424drr3pf44pehamvqug9fdfjlgnhdyc3xce",
  "id": 274,
  "minimum_amount": "0",
  "maximum_amount": "10000000000000"
}    

whitelist_address_list

Returns a paginated list of escrows that are whitelisted for a specified wallet address, with the wallet's min and max allocations

Input parameters
address: Addr,                      //Wallet address 
start_after: Option<(Addr, u64)>,   //Wallet address, escrow id for pagination
limit: Option<u32>,                 //No. of items for pagination
sort_asc: Option<bool>,
Sample query
{
  "whitelist_address_list": {"address": "kujira1t4d3gfc62r6u9q2esxy6p5ymulq2jfu3gkns0r", "limit": 2}
}
Response
{
  "data": [
    {
      "address": "kujira1t4d3gfc62r6u9q2esxy6p5ymulq2jfu3gkns0r",
      "id": 248,
      "minimum_amount": "0",
      "maximum_amount": "10000000000000"
    },
    {
      "address": "kujira1t4d3gfc62r6u9q2esxy6p5ymulq2jfu3gkns0r",
      "id": 240,
      "minimum_amount": "0",
      "maximum_amount": "10000000000"
    }
  ],
  "pagination": {
    "next_key": [
      "kujira1t4d3gfc62r6u9q2esxy6p5ymulq2jfu3gkns0r",
      240
    ],
    "total": null
  }
}   

whitelist_id_list

Returns a paginated list of wallet addresses that are whitelisted for a specified escrow id, with min and max allocations for each wallet

Input parameters
      id: u64,                            //Escrow id 
      start_after: Option<(Addr, u64)>,   //Wallet address, escrow id for pagination
      limit: Option<u32>,                 //No. of items for pagination
      sort_asc: Option<bool>,
Sample query
{
  "whitelist_id_list": {"id": 274, "limit": 4}
}
Response
{
  "data": [
    {
      "address": "kujira1zzys83hr56ve9daufh4dk5w6t2q2vhmtlwcdsr",
      "id": 274,
      "minimum_amount": "0",
      "maximum_amount": "10000000000000"
    },
    {
      "address": "kujira1zzypzvvavvck8nmtupclh4dn5jwydykpfva6gt",
      "id": 274,
      "minimum_amount": "0",
      "maximum_amount": "10000000000000"
    },
    {
      "address": "kujira1zzxd9qw3v8dhh2lds0vcalpd4ldgtkyvjz7wmn",
      "id": 274,
      "minimum_amount": "0",
      "maximum_amount": "10000000000000"
    },
    {
      "address": "kujira1zzx9h2kyukacsr77qrdrd4qxnqgwma4tt79g5u",
      "id": 274,
      "minimum_amount": "0",
      "maximum_amount": "10000000000000"
    }
  ],
  "pagination": {
    "next_key": [
      "kujira1zzx9h2kyukacsr77qrdrd4qxnqgwma4tt79g5u",
      274
    ],
    "total": null
  }
}