L2 Transactions Examples

An L1 limit order

{
    "token_sell": "0x10",
    "amount_sell": "50",
    "amount_buy": "140",
    "nonce": 1,
    "expiration_timestamp": 623456,
    "eth_address": "0xDABadaBadabADaBadabADabAdabadABadAbadAbA",
    "fee_info": {
        "token_id": "0x10",
        "source_vault_id": 48,
        "fee_limit": "1000"
    },
    "vault_id_sell": 48,
    "vault_id_buy": 64,
    "order_type": 0,
    "token_buy": "0x20",
    "type": "OrderL1Request"
}

A settlement matching an L2 order with an L1 order

{
    "party_b_order": {
        "expiration_timestamp": 623456,
        "eth_address": "0xDABadaBadabADaBadabADabAdabadABadAbadAbA",
        "amount_buy": "140",
        "amount_sell": "50",
        "fee_info": {
            "fee_limit": "2000",
            "token_id": "0x20",
            "source_vault_id": 1
        },
        "order_type": 0,
        "vault_id_sell": 1,
        "nonce": 1,
        "token_sell": "0x20",
        "token_buy": "0x10",
        "vault_id_buy": 2,
        "type": "OrderL1Request"
    },
    "settlement_info": {
        "party_a_sold": "75",
        "party_b_sold": "25",
        "party_b_fee_info": {
            "fee_taken": "15",
            "destination_vault_id": 80,
            "destination_stark_key": "0x60"
        },
        "party_a_fee_info": {
            "fee_taken": "15",
            "destination_vault_id": 80,
            "destination_stark_key": "0x60"
        }
    },
    "party_a_order": {
        "expiration_timestamp": 642956,
        "amount_buy": "40",
        "signature": {
            "s": "0x0",
            "r": "0x0"
        },
        "amount_sell": "150",
        "fee_info": {
            "fee_limit": "1000",
            "token_id": "0x10",
            "source_vault_id": 48
        },
        "order_type": 0,
        "vault_id_sell": 48,
        "nonce": 0,
        "public_key": "0x70",
        "token_sell": "0x10",
        "token_buy": "0x20",
        "vault_id_buy": 64,
        "type": "OrderL2Request"
    },
    "type": "SettlementRequest"
}