AI prompts
base on Xps mint tool # XrpinalsMintTool
![](https://github.com/xrpinals/XrpinalsMintTool/blob/main/assets/xrpinals.jpg)
### How To Build
* Install Golang Compiler
[How To Install](https://go.dev/doc/install).
It is strongly recommended to install the **Latest** version.
* Build XrpinalsMintTool
```
git clone https://github.com/xrpinals/XrpinalsMintTool.git
cd XrpinalsMintTool
cd utils/x17
cmake .
make
cd ../..
make XrpinalsMintTool_clean
make XrpinalsMintTool
cp conf_example.json conf.json # and update this field "walletRpcUrl" to "http://api.xrpinals.com:1222"
```
### How To Use
* Import Private Key
```
./XrpinalsMintTool import_key -h
Usage of import_key:
-key string
your private key
./XrpinalsMintTool import_key -key 5JBvpSG46ipHruGae4oi7A4gE6sd8JxMXNKT4ZmsyF8Q5Cb6yjT
private key of address mnUbdaJcTiBUARHGMZpQ5dVkrcj1XUMame imported
```
![](https://github.com/xrpinals/XrpinalsMintTool/blob/main/assets/import-key.png)
* Check if the Address is in Storage
```
./XrpinalsMintTool check_address -h
Usage of check_address:
-addr string
address you want to check
./XrpinalsMintTool check_address -addr mnUbdaJcTiBUARHGMZpQ5dVkrcj1XUMame
address mnUbdaJcTiBUARHGMZpQ5dVkrcj1XUMame is in the storage
```
![](https://github.com/xrpinals/XrpinalsMintTool/blob/main/assets/check-address.png)
* Get balance of Address
```
./XrpinalsMintTool get_balance -h
Usage of get_balance:
-addr string
your address
-asset string
asset name you want to query
./XrpinalsMintTool get_balance -addr mfhGJnP5T7A5kYDJNxnHozxrVzC7WKHzKs -asset BTC
balance: 0
```
![](https://github.com/xrpinals/XrpinalsMintTool/blob/main/assets/get-balance.png)
* Get Cross Chain Deposit Address
```
./XrpinalsMintTool get_deposit_address -h
Usage of get_deposit_address:
-addr string
your address
./XrpinalsMintTool get_deposit_address -addr mumtmaYKH3ttGpVaAJRCiiWZsn5zAB9hU
BTC deposit address: 2MvSkSdKtHC253TnDmmBj8uwWjcyeQ5sQkK
```
![](https://github.com/xrpinals/XrpinalsMintTool/blob/main/assets/get-deposit-address.png)
* Mint XPS Asset
```
./XrpinalsMintTool mint -h
Usage of mint:
-addr string
your address
-asset string
asset name you want to mint
./XrpinalsMintTool mint -addr mnUbdaJcTiBUARHGMZpQ5dVkrcj1XUMame -asset XPS
mining success, txHash: 03d8216ce49753cbe6ae7a1a65e08b4fe841d5b6
```
![](https://github.com/xrpinals/XrpinalsMintTool/blob/main/assets/mint.png)
* Transfer BTC/XPS Asset
```
./XrpinalsMintTool transfer -h
Usage of mint:
Usage of transfer:
-from string
sender address (must be imported before)
-to string
receiver address
-amount string
asset amount you want to transfer
-asset string
asset name you want to transfer
./XrpinalsMintTool transfer -from mfhGJnP5T7A5kYDJNxnHozxrVzC7WKHzKs -to mnUbdaJcTiBUARHGMZpQ5dVkrcj1XUMame -asset BTC -amount 0.02
transfer success, txHash: 6eb8918df731f29952cc00a4ae77c0a07e907742
```
![](https://github.com/xrpinals/XrpinalsMintTool/blob/main/assets/transfer.png)
* Query XPS Mint Info
```
./XrpinalsMintTool get_mint_info -h
Usage of get_mint_info:
-addr string
your address
-asset string
asset name you want to query
./XrpinalsMintTool get_mint_info -addr mnUbdaJcTiBUARHGMZpQ5dVkrcj1XUMame -asset XPS
mint info:
mint amount: 0
mint count: 0
last mint time: "2023-12-18T15:30:00"
```
![](https://github.com/xrpinals/XrpinalsMintTool/blob/main/assets/get-mint-info.png)
* Withdraw BTC Asset To layer one
```
./XrpinalsMintTool withdraw -h
Usage of mint:
Usage of transfer:
-fromAddr string
sender address (must be imported before)
-toAddr string
the destination address to which you withdrew your funds
-amount string
your btc withdrawal amount. empty means withdraw all
-memo string
Remarks on Withdrawal Transactions
./XrpinalsMintTool withdraw -fromAddr mfhGJnP5T7A5kYDJNxnHozxrVzC7WKHzKs -toAddr mnUbdaJcTiBUARHGMZpQ5dVkrcj1XUMame -memo test -amount 0.02
transfer success, txHash: 6eb8918df731f29952cc00a4ae77c0a07e907742
```
* Query BTC Withdraw Info
```
./XrpinalsMintTool query_withdraw
This command will list all the pending and in-process withdrawals on the network.
./XrpinalsMintTool query_withdraw
[Info]: Waiting Withdrawal Info
----------------------------------------
[Info]: Processing Withdrawal Info
[Info]: Withdrawal account: mhk8YnXVEe6KdTNyoH4GRsoVYdHUaJLLaL Withdrawal amount: 0.002 Withdrawal to account: mjd8EBD4Q4mQePbTpysVjfYcAjyLzCxbTS
[Info]: Withdrawal account: mhk8YnXVEe6KdTNyoH4GRsoVYdHUaJLLaL Withdrawal amount: 0.002 Withdrawal to account: mjd8EBD4Q4mQePbTpysVjfYcAjyLzCxbTS
[Info]: Withdrawal account: mjd8EBD4Q4mQePbTpysVjfYcAjyLzCxbTS Withdrawal amount: 0.001 Withdrawal to account: mhk8YnXVEe6KdTNyoH4GRsoVYdHUaJLLaL
[Info]: Withdrawal account: mjd8EBD4Q4mQePbTpysVjfYcAjyLzCxbTS Withdrawal amount: 0.0001 Withdrawal to account: mjd8EBD4Q4mQePbTpysVjfYcAjyLzCxbTS
[Info]: Withdrawal account: mjd8EBD4Q4mQePbTpysVjfYcAjyLzCxbTS Withdrawal amount: 0.001 Withdrawal to account: mjd8EBD4Q4mQePbTpysVjfYcAjyLzCxbTS
[Info]: Withdrawal account: mjd8EBD4Q4mQePbTpysVjfYcAjyLzCxbTS Withdrawal amount: 0.001 Withdrawal to account: mjd8EBD4Q4mQePbTpysVjfYcAjyLzCxbTS
```
### How To Use GPU
Change server ip port in config
Change gpu to true in config
```
e.g.
"server":{
"IP": "0.0.0.0",
"Port": "42123"
},
"gpu": true
```
Get GPU tool at https://github.com/xrpinals/XpsMiner", Assign "at most 3 tags" to the expected json: {"id":"6367","tags":[]} "only from the tags list I provide: [{"id":77,"name":"3d"},{"id":89,"name":"agent"},{"id":17,"name":"ai"},{"id":54,"name":"algorithm"},{"id":24,"name":"api"},{"id":44,"name":"authentication"},{"id":3,"name":"aws"},{"id":27,"name":"backend"},{"id":60,"name":"benchmark"},{"id":72,"name":"best-practices"},{"id":39,"name":"bitcoin"},{"id":37,"name":"blockchain"},{"id":1,"name":"blog"},{"id":45,"name":"bundler"},{"id":58,"name":"cache"},{"id":21,"name":"chat"},{"id":49,"name":"cicd"},{"id":4,"name":"cli"},{"id":64,"name":"cloud-native"},{"id":48,"name":"cms"},{"id":61,"name":"compiler"},{"id":68,"name":"containerization"},{"id":92,"name":"crm"},{"id":34,"name":"data"},{"id":47,"name":"database"},{"id":8,"name":"declarative-gui "},{"id":9,"name":"deploy-tool"},{"id":53,"name":"desktop-app"},{"id":6,"name":"dev-exp-lib"},{"id":59,"name":"dev-tool"},{"id":13,"name":"ecommerce"},{"id":26,"name":"editor"},{"id":66,"name":"emulator"},{"id":62,"name":"filesystem"},{"id":80,"name":"finance"},{"id":15,"name":"firmware"},{"id":73,"name":"for-fun"},{"id":2,"name":"framework"},{"id":11,"name":"frontend"},{"id":22,"name":"game"},{"id":81,"name":"game-engine "},{"id":23,"name":"graphql"},{"id":84,"name":"gui"},{"id":91,"name":"http"},{"id":5,"name":"http-client"},{"id":51,"name":"iac"},{"id":30,"name":"ide"},{"id":78,"name":"iot"},{"id":40,"name":"json"},{"id":83,"name":"julian"},{"id":38,"name":"k8s"},{"id":31,"name":"language"},{"id":10,"name":"learning-resource"},{"id":33,"name":"lib"},{"id":41,"name":"linter"},{"id":28,"name":"lms"},{"id":16,"name":"logging"},{"id":76,"name":"low-code"},{"id":90,"name":"message-queue"},{"id":42,"name":"mobile-app"},{"id":18,"name":"monitoring"},{"id":36,"name":"networking"},{"id":7,"name":"node-version"},{"id":55,"name":"nosql"},{"id":57,"name":"observability"},{"id":46,"name":"orm"},{"id":52,"name":"os"},{"id":14,"name":"parser"},{"id":74,"name":"react"},{"id":82,"name":"real-time"},{"id":56,"name":"robot"},{"id":65,"name":"runtime"},{"id":32,"name":"sdk"},{"id":71,"name":"search"},{"id":63,"name":"secrets"},{"id":25,"name":"security"},{"id":85,"name":"server"},{"id":86,"name":"serverless"},{"id":70,"name":"storage"},{"id":75,"name":"system-design"},{"id":79,"name":"terminal"},{"id":29,"name":"testing"},{"id":12,"name":"ui"},{"id":50,"name":"ux"},{"id":88,"name":"video"},{"id":20,"name":"web-app"},{"id":35,"name":"web-server"},{"id":43,"name":"webassembly"},{"id":69,"name":"workflow"},{"id":87,"name":"yaml"}]" returns me the "expected json"