Altalogy / tari

The Tari protocol
https://tari.com
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

[Wallet] Send transaction #356

Open tomaszantas opened 2 years ago

tomaszantas commented 2 years ago

Add send transaction command

alex1307 commented 2 years ago

At the moment the tauri command transfer accept the following json struct:

{ 
       "paymenents": [ {
              "amount": u64,
              "fee_per_gram": u64 [value could be between 1 and 5]
              "message": String,
              "address": String,
              "payment_type": [0, 1].  STANDARD_MIMBLEWIMBLE = 0; ONE_SIDED = 1;
       }]
}

and returns

{ 
       "paymenents": [{
              "transaction_id": u64,
              "error_message": String,
              "address": String,
              "is_successful": true|false
       }]
}

The response is sent to tari://wallet_transaction as well. Let me know whether the contract is OK or I should make some changes.