Help with wallet.netfluid.io This API supports JSON and has functions for wallet_accounts ,wallet_action_token ,account_fund ,account_withdrawl ,account_add ,account_balance ,account_spend ,account_statement and sp_api_account_info . To create a new wallet use https://key.netfluid.io . The wallet_action_token function is used as an added layer of security for interacting and preforming actions with wallets. The wallet_accounts function is used to list all the accounts within a wallet. The account_fund function is used to fund an account using a NetFluid voucher. The account_withdrawl function is used to convert funds in a wallet account into a NetFluid voucher. The account_add function is used to create a new account in an existing wallet. The account_balance function is used to retrieve the balance of a specific account in a wallet . The account_spend function is used to transfer funds from one account into any other account of the same currency. The account_statement function is used to retrieve a detailed statement for an account . The sp_api_account_info function is used to retrieve full info for an account. Functions wallet_action_token details The wallet_action_token function is used as an added layer of security for interacting and preforming actions with wallets To get a token call wallet.netfluid.io with a header item and JSON body containing the following variables :
Item
Description
HEADER
bearer-token
The bearer-token received from calling the token function on https://key.netfluid.io
JSON BODY
task
Function to use, in this case it's set to wallet_action_token
wallet_id
The id of the wallet you want the info for.
password
The password of the wallet.
For example : To get a wallet_action_token https://wallet.netfluid.io with the bearer-token in the HEADER and a JSON body containing.
{
"task": "wallet_action_token",
"wallet_id": "2",
"password": "29112F29925892D569D7"
}}
If the call is correct you will receive the following reply :
{
"status": "1",
"msg": "Success",
"wallet_action_token": "7c25d576t5dAa5e677e2"
}
wallet_accounts details The wallet_accounts function is used to list all the accounts within a wallet. To get the account list for a wallet call wallet.netfluid.io with a header item and JSON body containing the following variables :
Item
Description
HEADER
bearer-token
The bearer-token received from calling the token function on https://key.netfluid.io
JSON BODY
task
Function to use, in this case it's set to wallet_accounts
wallet_action_token
The token received from calling the wallet_action_token function.
wallet_id
The id of the wallet you want the info for.
For example : To get info for wallet 2 callhttps://wallet.netfluid.io with the bearer-token in the HEADER and a JSON body containing.
{
"task": "wallet_accounts",
"wallet_action_token": "A6d7d7e27c25d5a5e677",
"wallet_id": "2"
}
If the call is correct you will receive the following reply :
{
"status": "1",
"msg": "Success",
"accounts_list": [
{
"address": "621000000000",
"currency": "XAU",
"commodity": "Gold kg",
"balance": "0.00000000",
"reserved": "0.00000000",
"status": "1",
"status_description": "active",
"read_only": "0"
},
{
"address": "621000000001",
"currency": "ZAR",
"commodity": "Gold kg",
"balance": "0.00000000",
"reserved": "0.00000000",
"status": "1",
"status_description": "active",
"read_only": "0"
}
]
}
account_add details The account_add function is used as an added a new account to a wallets To add a new account call wallet.netfluid.io with a header item and JSON body containing the following variables :
Item
Description
HEADER
bearer-token
The bearer-token received from calling the token function on https://key.netfluid.io
JSON BODY
task
Function to use, in this case it's set to account_add
wallet_action_token
The token received from calling the wallet_action_token function.
currency_id
this is the ID of the currency for the new account. example :1 = ZAR (Rand)
2 = ALGO (Algos)
3 = USD (USD)
4 = FLDS (Netfluids)
5 = BWP (Pula)
6 = EUR (EURO)
commodity_id
this is the ID of the commodity to use for the new account. example :1 = Money
2 = Rewards
3 = Voucher
4 = Stable Coin
5 = Digital Asset
For example : To add a new account to a wallet call https://wallet.netfluid.io with the bearer-token in the HEADER and a JSON body containing.
{
"task": "account_add",
"wallet_action_token": "Aa56d7de677e27c25d57",
"currency_id": "1",
"commodity_id": "1"
}
If the call is correct you will receive the following reply :
{
"status": "1",
"msg": "Success",
"account_address": 611000000000
}
account_fund details The account_fund function is used to fund an account using a voucher. To fund an account call wallet.netfluid.io with a header item and JSON body containing the following variables :
Item
Description
HEADER
bearer-token
The bearer-token received from calling the token function on https://key.netfluid.io
JSON BODY
task
Function to use, in this case it's set to account_fund
wallet_action_token
The token received from calling the wallet_action_token function.
voucher_code
The code of the voucher you want to redeem to fund the account.
account_address
The account address you want to fund.
For example : To fund account 611000000000 https://wallet.netfluid.io with the bearer-token in the HEADER and a JSON body containing.
{
"task": "account_fund",
"wallet_action_token": "dba0C24db848d8268B28",
"voucher_code": "3000-3000-0300-6000",
"account_address": "611000000000"
}
If the call is correct you will receive the following reply :
{
"status": "1",
"msg": "Success",
"payment_id": "1"
}
account_withdrawl details The account_withdrawl function is used to convert funds in an account into a voucher. To convert funds into voucher call wallet.netfluid.io with a header item and JSON body containing the following variables :
Item
Description
HEADER
bearer-token
The bearer-token received from calling the token function on https://key.netfluid.io
JSON BODY
task
Function to use, in this case it's set to account_withdrawl
wallet_action_token
The token received from calling the wallet_action_token function.
account_address
Account to withdraw from.
amount
Amount to withdraw.
For example : To withdraw 50 from account 611000000000 call https://wallet.netfluid.io with the bearer-token in the HEADER and a JSON body containing.
{
"task": "account_withdrawl",
"wallet_action_token": "8c3fd136ACeC1B1BBddd",
"amount": "50",
"account_address": "611000000000"
}
If the call is correct you will receive the following reply :
{
"status": "1",
"msg": "Success",
"payment_id": "2",
"voucher_code": "5000-1000-4000-5000"
}
account_balance details The account_balance function is used to get the balance of an account. To get the balance of an account callwallet.netfluid.io with a header item and JSON body containing the following variables :
Item
Description
HEADER
bearer-token
The bearer-token received from calling the token function on https://key.netfluid.io
JSON BODY
task
Function to use, in this case it's set to account_balance
wallet_action_token
The token received from calling the wallet_action_token function.
account_address
For example : To get the balance of account 611000000000 call https://wallet.netfluid.io with the bearer-token in the HEADER and a JSON body containing.
{
"task": "account_balance",
"wallet_action_token": "8Ce217cB282d1eB31eBe",
"account_address": "611000000000"
}
If the call is correct you will receive the following reply :
{
"status": "1",
"msg": "Success",
"balance": "150.00000000"
}
account_spend details The account_spend function is used to send funds from one account to another account of the same currency. To send funds to another account call wallet.netfluid.io with a header item and JSON body containing the following variables :
Item
Description
HEADER
bearer-token
The bearer-token received from calling the token function on https://key.netfluid.io
JSON BODY
task
Function to use, in this case it's set to account_spend
wallet_action_token
The token received from calling the wallet_action_token function.
from_account
to_accoun
amount
reference
For example : To send 80 from 611000000000 to XAU0000000002XA call https://wallet.netfluid.io with the bearer-token in the HEADER and a JSON body containing.
{
"task": "account_spend",
"wallet_action_token": "B87bf822b0709294f9bF",
"from_account": "611000000000",
"to_accoun": "611000000002",
"amount": "80.00",
"reference": "Test, test and test"
}
If the call is correct you will receive the following reply :
{
"status": "1",
"msg": "Success",
"payment_id": "3"
}
account_statement details The account_statement function is used to pull a statement for a specific account. To get a statment call wallet.netfluid.io with a header item and JSON body containing the following variables :
Item
Description
HEADER
bearer-token
The bearer-token received from calling the token function on https://key.netfluid.io
JSON BODY
task
Function to use, in this case it's set to account_statement
wallet_action_token
The token received from calling the wallet_action_token function.
account_address
The account address you want the statement for.
start_date
the date you want the statement to start on (format is YYYY-MM-DD HH:mm:ss )
limit
(optional) Limit the number of items returned in the statement
For example : Toget a statment for 611000000000 call https://wallet.netfluid.io with the bearer-token in the HEADER and a JSON body containing.
{
"task": "account_statement",
"wallet_action_token": "448CAc4cC584f3Af48Ad",
"account_address": "611000000000",
"start_date": "2021-01-01 10:30"
}
If the call is correct you will receive the following reply :
{
"status": "1",
"msg": "Success",
"statment": [
{
"payment_id": "3",
"date": "2021-01-24 15:34:52",
"amount": "-80.00000000",
"transaction_fee": "0.00000000"
},
{
"payment_id": "2",
"date": "2021-01-23 15:14:18",
"amount": "-50.00000000",
"transaction_fee": "0.00000000"
},
{
"payment_id": "1",
"date": "2021-01-23 14:59:51",
"amount": "90.00000000",
"transaction_fee": "0.00000000"
}
]
}
account_info details The account_info function is used to retrieve detailed info for an account. To info for an account call wallet.netfluid.io with a header item and JSON body containing the following variables :
Item
Description
HEADER
bearer-token
The bearer-token received from calling the token function on https://key.netfluid.io
JSON BODY
task
Function to use, in this case it's set to account_info
wallet_action_token
The token received from calling the wallet_action_token function.
account_address
The account to query.
For example : To get info for account 611000000000 call https://wallet.netfluid.io with the bearer-token in the HEADER and a JSON body containing.
{
"task": "sp_api_account_info",
"wallet_action_token": "7c5E544b947C2D9f4241",
"account_address": "611000000000"
}
If the call is correct you will receive the following reply :
{
"status": "1",
"msg": "Success",
"currency": "Gold",
"ISO": "XAU",
"balance": "20.00000000",
"address": "611000000000",
"wallet": "11"
}