Непонятные параметры в запросе.Пример из документации. blockchain Near
Вот пример из документации: https://docs.near.org/tutorials/examples/escrow
вот репозиторий из документации: https://github.com/near-examples/escrow-js.git
Вот полная последовательность действий для запуска примера из файла readme.md:
1. Логинимся
near login
2. Создайте дополнительные учетные записи для развертывания контрактов
near create-account --accountId <your-escrow-testnet-account-id> --masterAccount <your-testnet-account-id> --initialBalance <your-escrow-testnet-account-balance>
near create-account --accountId <your-assets-testnet-account-id> --masterAccount <your-testnet-account-id> --initialBalance <your-assets-testnet-account-balance>
вместо <your-testnet-account-id> вставляю gettherefast.testnet
вместо <your-escrow-testnet-account-id> : escrow.gettherefast.testnet
вместо <your-assets-testnet-account-id> : assets.gettherefast.testnet
3. Deploy the Contracts
near deploy --wasmFile build/escrow.wasm --accountId <your-escrow-testnet-account-id>
near deploy --wasmFile build/assets.wasm --accountId <your-assets-testnet-account-id>
4. Initialize the Assets Contract
near call <your-assets-testnet-account-id> init '{"owner_id": "<your-asset-owner-account-id>", "total_supply": "1000", "escrow_contract_id": "<your-escrow-testnet-account-id>", "asset_price": "100000000000000000000000"}' --accountId <your-assets-testnet-account-id>
Появляется новое действующее лицо, некто:
<your-asset-owner-account-id>
что нужно сюда вставить?
5. Perform a Purchase on Escrow
Дальше появляется:
<your-buyer-account-id>
near call <your-escrow-testnet-account-id> purchase_in_escrow '{"seller_account_id": "<your-asset-owner-account-id>", "asset_contract_id ": "<your-assets-testnet-account-id>"}' --accountId <your-buyer-account-id> --amount 0.11 --gas=300000000000000
6. Check the Balance of the Buyer Account
near view <your-assets-testnet-account-id> get_account_assets '{"account_id": "<your-buyer-account-id>"}'
и еще
<seller-account-id>
near state <seller-account-id>
7. Approve the Purchase
near call <your-escrow-testnet-account-id> approve_purchase '{}' --accountId <your-buyer-account-id>
Вопрос: Что Вставлять на их место:
<your-asset-owner-account-id>
<your-buyer-account-id>
<seller-account-id>