Skip to content

Commit ac3ca95

Browse files
Pushes process so far.
There's a blocked issue here while we wait for JS to address entropyxyz/cli#321.
1 parent c455ca4 commit ac3ca95

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

content/guides/transfer-funds.md

+47
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,50 @@ Here is the process for transfering using the Entropy CLI's interactive text-bas
7575
1. Enter the address that you want to transfer funds _to_.
7676

7777
The transfer should take about 10 seconds.
78+
79+
## Programmatic CLI
80+
81+
Here is the process for transfering using the Entropy CLI's programmatic interface. This method can be use within script.
82+
83+
1. Ensure that the CLI is installed properly:
84+
85+
```shell
86+
entropy --version
87+
```
88+
89+
```output
90+
v0.1.1
91+
```
92+
93+
1. Decide which account you want to send funds _from_. If you only have one account within the Entropy CLI, the CLI will automatically use that account to send funds from.
94+
95+
If you have more than one account within the CLI, you must specify which account to send funds from. You can list your accounts with `entropy account list`. Adding `| jq` is optional, but will make the JSON output easier to read:
96+
97+
```shell
98+
entropy account list | jq
99+
```
100+
101+
```output
102+
[
103+
{
104+
"name": "Andre",
105+
"address": "5D77qPQj7S346ocxgHX7XmYUqtQft4ghXBYBuv8HuznDgDm7",
106+
"verifyingKeys": []
107+
},
108+
{
109+
"name": "Yoel",
110+
"address": "5EJTUTyZnffSdVc7dCVTKKkNmpXUW5MocmtspZXUk7X1CF7M",
111+
"verifyingKeys": []
112+
}
113+
]
114+
```
115+
116+
1. Initiate the transfer by supplying the destination address and amount to `entropy transfer`. If you have multiple accounts and you want to send funds from a specific account, add the `--account` option, followed by the name of the outbound account:
117+
118+
```shell
119+
entropy transfer --account Andre 5EJTUTyZnffSdVc7dCVTKKkNmpXUW5MocmtspZXUk7X1CF7M 1
120+
```
121+
122+
```output
123+
TODO: Receiving an error here. Need to wait for https://github.com/entropyxyz/cli/issues/321 before fixing.
124+
```

0 commit comments

Comments
 (0)