|
@@ -1,14 +1,16 @@
|
|
|
# Payments
|
|
# Payments
|
|
|
|
|
|
|
|
Using the tokens we minted, we can make payments to other addresses.
|
|
Using the tokens we minted, we can make payments to other addresses.
|
|
|
-Let's try to send some `WCKD`
|
|
|
|
|
|
|
+Let's try to send some `MLDY`
|
|
|
tokens to `8sRwB7AwBTKEkyTW6oMyRoJWZhJwtqGTf7nyHwuJ74pj`:
|
|
tokens to `8sRwB7AwBTKEkyTW6oMyRoJWZhJwtqGTf7nyHwuJ74pj`:
|
|
|
|
|
|
|
|
```
|
|
```
|
|
|
-$ ./drk transfer 2.69 WCKD \
|
|
|
|
|
|
|
+$ ./drk transfer 2.69 MLDY \
|
|
|
8sRwB7AwBTKEkyTW6oMyRoJWZhJwtqGTf7nyHwuJ74pj > payment_tx
|
|
8sRwB7AwBTKEkyTW6oMyRoJWZhJwtqGTf7nyHwuJ74pj > payment_tx
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
The above command will create a transfer transaction and place it into
|
|
The above command will create a transfer transaction and place it into
|
|
|
the file called `payment_tx`. Then we can broadcast this transaction
|
|
the file called `payment_tx`. Then we can broadcast this transaction
|
|
|
to the network:
|
|
to the network:
|
|
@@ -17,6 +19,8 @@ to the network:
|
|
|
$ ./drk broadcast < payment_tx
|
|
$ ./drk broadcast < payment_tx
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
On success we'll see a transaction ID. Now again the same confirmation
|
|
On success we'll see a transaction ID. Now again the same confirmation
|
|
|
process has to occur and `8sRwB7AwBTKEkyTW6oMyRoJWZhJwtqGTf7nyHwuJ74pj`
|
|
process has to occur and `8sRwB7AwBTKEkyTW6oMyRoJWZhJwtqGTf7nyHwuJ74pj`
|
|
|
will receive the tokens you've sent.
|
|
will receive the tokens you've sent.
|
|
@@ -28,6 +32,7 @@ We can see the spent coin in our wallet.
|
|
|
```
|
|
```
|
|
|
$ ./drk wallet --coins
|
|
$ ./drk wallet --coins
|
|
|
```
|
|
```
|
|
|
|
|
+
|
|
|
|
|
|
|
|
We have to wait until the next block to see our change balance reappear
|
|
We have to wait until the next block to see our change balance reappear
|
|
|
in our wallet.
|
|
in our wallet.
|
|
@@ -36,3 +41,5 @@ in our wallet.
|
|
|
$ ./drk wallet --balance
|
|
$ ./drk wallet --balance
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|