{
	"info": {
		"name": "Wallet",
		"_postman_id": "2dab2c7e-1dfd-7825-fff4-586231a4ebae",
		"description": "Requests relating to operations on the wallet",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Create mnemonic",
			"request": {
				"method": "GET",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "http://localhost:37220/api/wallet/mnemonic?language=french&wordcount=24",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "37220",
					"path": [
						"api",
						"wallet",
						"mnemonic"
					],
					"query": [
						{
							"key": "language",
							"value": "french",
							"equals": true
						},
						{
							"key": "wordcount",
							"value": "24",
							"equals": true
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Create wallet - success",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{ \n\t\"password\": \"123456\",\n\t\"name\": \"testwallet\"\n}"
				},
				"url": {
					"raw": "http://localhost:37220/api/wallet/create",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "37220",
					"path": [
						"api",
						"wallet",
						"create"
					]
				}
			},
			"response": []
		},
		{
			"name": "Load wallet",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{ \n\t\"password\": \"123456\",\n\t\"name\": \"myFirstWadllet\"\n}"
				},
				"url": {
					"raw": "http://localhost:37220/api/wallet/load",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "37220",
					"path": [
						"api",
						"wallet",
						"load"
					]
				}
			},
			"response": []
		},
		{
			"name": "Recover wallet",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{ \n\t\"password\": \"123456\",\n\t\"name\": \"myRecoveredWallet\",\n\t\"mnemonic\": \"elbow scale error joke labor page beyond curve indicate exit brass laundry\",\n\t\"creationDate\": \"2016-02-25 16:20:33\"\n}"
				},
				"url": {
					"raw": "http://localhost:37220/api/wallet/recover",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "37220",
					"path": [
						"api",
						"wallet",
						"recover"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get wallet Info",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "http://localhost:37220/api/wallet/general-info?name=restore1",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "37220",
					"path": [
						"api",
						"wallet",
						"general-info"
					],
					"query": [
						{
							"key": "name",
							"value": "restore1",
							"equals": true
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Get Wallet History",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "http://localhost:37220/api/wallet/history?walletname=wallet1",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "37220",
					"path": [
						"api",
						"wallet",
						"history"
					],
					"query": [
						{
							"key": "walletname",
							"value": "wallet1",
							"equals": true
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Get wallet balance",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "http://localhost:37220/api/wallet/balance?walletname=wallet1",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "37220",
					"path": [
						"api",
						"wallet",
						"balance"
					],
					"query": [
						{
							"key": "walletname",
							"value": "wallet1",
							"equals": true
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Build transaction",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\t\"walletName\": \"testwallet\",\r\n\t\"accountName\": \"account 0\",\r\n\t\"password\": \"password\",\r\n\t\"destinationAddress\": \"1FYp9uguYCz7DgSF9jTWDeZF8kdRKQTXPg\",\r\n\t\"amount\": \"0.12\",\r\n\t\"feeType\": \"low\",\r\n\t\"allowUnconfirmed\": \"true\"\r\n}"
				},
				"url": {
					"raw": "http://localhost:37220/api/wallet/build-transaction",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "37220",
					"path": [
						"api",
						"wallet",
						"build-transaction"
					]
				}
			},
			"response": []
		},
		{
			"name": "Send transaction",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n\t\"hex\": \"01000000061b1ca819e76f9131b23335ec905ffc5fc27e36a7843a5b7c6d1b455b904359f7000000006b483045022100c11f78ce7f02b2312b6675d3ad99cec6ede879d446c2b14628ef4f8ce9b3fdc5022073649a14971568a1cd2aa84b5dd404645f29e49882f60a9642850539443872fe012102a41e4348bb233e40cf3a3402e2dc92a31b69ef56090fff242aa7e4bff828929fffffffff1d3c389af5fdd047e307e5d5f87656bb2ef0c40b6ee879d342a59192090d3fbc000000006b483045022100dc7e0445fe98f3e76d68906c640ecca597598a03b48e6b85d72918347b9da7330220340ce9e9533ea84375a1f2122b7868b8ab556da53f1e1af14d1a71b0b123aade012102a41e4348bb233e40cf3a3402e2dc92a31b69ef56090fff242aa7e4bff828929fffffffff1ed624bad3df9d3a7be56dcd5d97c996fccc78164f16f59658b33f8da8859deb000000006b483045022100ba2a55f55a37b6712dd25dbef411aed869190ef60a208b39d4bd8e0ce8635b4d02201976d63489e23205aab651a9def43d6b3a740ba06de2ecabc43504241a71f229012102a41e4348bb233e40cf3a3402e2dc92a31b69ef56090fff242aa7e4bff828929fffffffff24e5cb4893beb0bb60193dbe11a9778d07e127c1cbc939c0a0388b1013ef75d9000000006a47304402203c27eea34db0ba070bee38d625d2cfcec1a0f5d8a9124023c84e9963d37f6145022015f7657cc57be515e6aa43c93c73457f5583b7c90c0af4e8a2f913257df27b0b012102a41e4348bb233e40cf3a3402e2dc92a31b69ef56090fff242aa7e4bff828929fffffffff997e6738c45eaf7af8bed7dc09e258139bffb0d2be8b4167473b6943adc0b28b000000006a47304402202d4c6df39b725d571d67bef14f0c6baa0cf4b93aa54aac2d2a15d3d940510d0602203643162545d5b63c007986627a317ed962f4d5023e4c15e9636a4eede86930c7012102a41e4348bb233e40cf3a3402e2dc92a31b69ef56090fff242aa7e4bff828929fffffffffcff2021b6b0bcd2a8b38583539dc140b98da4f41ae1e4adb089dc2cf3b66d6c6000000006a473044022019d5264c99145c7203e690fb2f57b0e218af2761e024f9ec1b774c703939b96e02204c2430fc4ae0fa43afb19a722f7b5d706bf5f2d5ee85229cbdc7a7b26433f5fd012102a41e4348bb233e40cf3a3402e2dc92a31b69ef56090fff242aa7e4bff828929fffffffff018f73e606000000001976a914ec093b0943ec524769553e1b7261b67ecab47e8688ac00000000\"\n}"
				},
				"url": {
					"raw": "http://localhost:37220/api/wallet/send-transaction",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "37220",
					"path": [
						"api",
						"wallet",
						"send-transaction"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get wallets files",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "http://localhost:37220/api/wallet/files",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "37220",
					"path": [
						"api",
						"wallet",
						"files"
					]
				},
				"description": "Gets all the wallets files stored in the default folder"
			},
			"response": []
		},
		{
			"name": "Get all addresses",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {},
				"url": {
					"raw": "http://localhost:37221/api/wallet/addresses?walletname=FullNodeWallet&accountname=account 0",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "37221",
					"path": [
						"api",
						"wallet",
						"addresses"
					],
					"query": [
						{
							"key": "walletname",
							"value": "FullNodeWallet",
							"equals": true
						},
						{
							"key": "accountname",
							"value": "account 0",
							"equals": true
						}
					]
				},
				"description": ""
			},
			"response": []
		},
		{
			"name": "Get unused account in wallet",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n\t\"walletName\": \"restore1\",\n\t\"password\": \"123456\",\n}"
				},
				"url": {
					"raw": "http://localhost:37220/api/wallet/account",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "37220",
					"path": [
						"api",
						"wallet",
						"account"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get unused address in wallet",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "http://localhost:37220/api/wallet/unusedaddress?walletName=restore1&accountName=account 0",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "37220",
					"path": [
						"api",
						"wallet",
						"unusedaddress"
					],
					"query": [
						{
							"key": "walletName",
							"value": "restore1",
							"equals": true
						},
						{
							"key": "accountName",
							"value": "account 0",
							"equals": true
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Get multiple unused addresses",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "http://localhost:37220/api/wallet/unusedaddresses?walletname=restore1&accountname=account 0&count=5",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "37220",
					"path": [
						"api",
						"wallet",
						"unusedaddresses"
					],
					"query": [
						{
							"key": "walletname",
							"value": "restore1",
							"equals": true
						},
						{
							"key": "accountname",
							"value": "account 0",
							"equals": true
						},
						{
							"key": "count",
							"value": "5",
							"equals": true
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Get maximum spendable balance",
			"request": {
				"method": "GET",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "http://localhost:37220/api/wallet/maxbalance?walletname=restore1&accountname=account 0&feetype=low&allowunconfirmed=true",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "37220",
					"path": [
						"api",
						"wallet",
						"maxbalance"
					],
					"query": [
						{
							"key": "walletname",
							"value": "restore1",
							"equals": true
						},
						{
							"key": "accountname",
							"value": "account 0",
							"equals": true
						},
						{
							"key": "feetype",
							"value": "low",
							"equals": true
						},
						{
							"key": "allowunconfirmed",
							"value": "true",
							"equals": true
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Estimate Transaction Fee",
			"request": {
				"method": "GET",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "http://localhost:37220/api/wallet/estimate-txfee?walletname=restore1&accountname=account 0&destinationaddress=1FYp9uguYCz7DgSF9jTWDeZF8kdRKQTXPg&amount=1&feetype=low&allowunconfirmed=true&shuffleoutputs=true",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "37220",
					"path": [
						"api",
						"wallet",
						"estimate-txfee"
					],
					"query": [
						{
							"key": "walletname",
							"value": "restore1",
							"equals": true
						},
						{
							"key": "accountname",
							"value": "account 0",
							"equals": true
						},
						{
							"key": "destinationaddress",
							"value": "1FYp9uguYCz7DgSF9jTWDeZF8kdRKQTXPg",
							"equals": true
						},
						{
							"key": "amount",
							"value": "1",
							"equals": true
						},
						{
							"key": "feetype",
							"value": "low",
							"equals": true
						},
						{
							"key": "allowunconfirmed",
							"value": "true",
							"equals": true
						},
						{
							"key": "shuffleoutputs",
							"value": "true",
							"equals": true
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Get the extPubKey of an account",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "http://localhost:37220/api/wallet/extpubkey?walletname=restore1&accountname=account 0",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "37220",
					"path": [
						"api",
						"wallet",
						"extpubkey"
					],
					"query": [
						{
							"key": "walletname",
							"value": "restore1",
							"equals": true
						},
						{
							"key": "accountname",
							"value": "account 0",
							"equals": true
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Sync the blockchain from a defined block",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n\t\"hash\": \"8609cc873222a0573615788dc32e377b88bfd6a0015791f627d969ee3a415115\"\n}"
				},
				"url": {
					"raw": "http://localhost:37221/api/wallet/sync",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "37221",
					"path": [
						"api",
						"wallet",
						"sync"
					]
				}
			},
			"response": []
		},
		{
			"name": "Remove transactions",
			"request": {
				"method": "DELETE",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "http://localhost:38221/api/wallet/remove-transactions?ids=d9cf9794611d69c971888bc75a9889ae65e2e6f2ec8ff4948491da4e5e2380f1",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "38221",
					"path": [
						"api",
						"wallet",
						"remove-transactions"
					],
					"query": [
						{
							"key": "ids",
							"value": "d9cf9794611d69c971888bc75a9889ae65e2e6f2ec8ff4948491da4e5e2380f1",
							"equals": true
						}
					]
				},
				"description": ""
			},
			"response": []
		},
		{
			"name": "Remove All transactions",
			"request": {
				"method": "DELETE",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": ""
				},
				"url": {
					"raw": "http://localhost:38221/api/wallet/remove-transactions?walletname=wallet1&ids=ec2d28b474a59c7b4aea2ea3fd517805ddab51579a3a86f2754841c6e4f30f12&resync=true",
					"protocol": "http",
					"host": [
						"localhost"
					],
					"port": "38221",
					"path": [
						"api",
						"wallet",
						"remove-transactions"
					],
					"query": [
						{
							"key": "walletname",
							"value": "wallet1",
							"equals": true
						},
						{
							"key": "ids",
							"value": "ec2d28b474a59c7b4aea2ea3fd517805ddab51579a3a86f2754841c6e4f30f12",
							"equals": true
						},
						{
							"key": "resync",
							"value": "true",
							"equals": true
						}
					]
				},
				"description": ""
			},
			"response": []
		}
	]
}