# SEI act 2 | mission 4 **Published by:** [oxcryptos | web3topia](https://paragraph.com/@oxcryptos/) **Published on:** 2022-08-18 **URL:** https://paragraph.com/@oxcryptos/sei-act-2-mission-4 ## Content Для начала подписываемся =) subscribe:// подразумевается что у вас стоит нода sei (инструкций было много от всех нодерских команд) Mission #4 - Place multiple Long/Short orders in one transaction Задаем переменные SEI_WALLET_ADDRESS=$(seid keys show $WALLET -a) SEI_VALOPER_ADDRESS=$(seid keys show $WALLET --bech val -a) echo 'export SEI_WALLET_ADDRESS='${SEI_WALLET_ADDRESS} >> $HOME/.bash_profile echo 'export SEI_VALOPER_ADDRESS='${SEI_VALOPER_ADDRESS} >> $HOME/.bash_profile source $HOME/.bash_profile Создаем тело транзакции меняем HERE_MUST_BE_UR_ADDRESS на свой адрес (кавычки не трогаем) echo '{ "body": { "messages": [ { "@type": "/seiprotocol.seichain.dex.MsgPlaceOrders", "creator": "HERE_MUST_BE_UR_ADDRESS", "orders": [ { "id": "0", "status": "PLACED", "account": "HERE_MUST_BE_UR_ADDRESS", "contractAddr": "sei14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9sh9m79m", "price": "1.000000000000000000", "quantity": "0.000010000000000000", "priceDenom": "USDC", "assetDenom": "ATOM", "orderType": "LIMIT", "positionDirection": "LONG", "data": "{"position_effect":"Open","leverage":"1"}", "statusDescription": "" } ], "contractAddr": "sei14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9sh9m79m", "funds": [ { "denom": "uusdc", "amount": "10" } ], "autoCalculateDeposit": false }, { "@type": "/seiprotocol.seichain.dex.MsgPlaceOrders", "creator": "HERE_MUST_BE_UR_ADDRESS", "orders": [ { "id": "0", "status": "PLACED", "account": "HERE_MUST_BE_UR_ADDRESS", "contractAddr": "sei14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9sh9m79m", "price": "1.000000000000000000", "quantity": "0.000010000000000000", "priceDenom": "USDC", "assetDenom": "ATOM", "orderType": "LIMIT", "positionDirection": "LONG", "data": "{"position_effect":"Open","leverage":"1"}", "statusDescription": "" } ], "contractAddr": "sei14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9sh9m79m", "funds": [ { "denom": "uusdc", "amount": "10" } ], "autoCalculateDeposit": false } ], "memo": "", "timeout_height": "0", "extension_options": [], "non_critical_extension_options": [] }, "auth_info": { "signer_infos": [], "fee": { "amount": [ { "denom": "usei", "amount": "0" } ], "gas_limit": "0", "payer": "", "granter": "" } }, "signatures": [] }' > $HOME/gen_tx.json Подписываем ACC=$(seid q account $STRIDE_WALLET_ADDRESS -o json | jq -r .account_number) SEQ=$(seid q account $ADDR -o json | jq -r .sequence) seid tx sign $HOME/gen_tx.json -s $SEQ -a $ACC --offline --from $STRIDE_WALLET_ADDRESS --chain-id atlantic-1 --output-document $HOME/txs.json Бродкастим seid tx broadcast $HOME/txs.json Если все хорошо - то видим такой респонс code: 0 codespace: "" data: "" events: [] gas_used: "0" gas_wanted: "0" height: "0" info: "" logs: [] raw_log: '[]' timestamp: "" tx: null txhash: 5BA641A155C054BB51A709AA09D703FF98FBEBF214415A186788B78B048DC29C заполняем форму (отправляем тх и скриншотс вортекса) Оставляем благодарности по кнопке ниже collect:// ## Publication Information - [oxcryptos | web3topia](https://paragraph.com/@oxcryptos/): Publication homepage - [All Posts](https://paragraph.com/@oxcryptos/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@oxcryptos): Subscribe to updates - [Twitter](https://twitter.com/OxCryptos): Follow on Twitter