Our voucher system is a unique system to transfer funds to a number account for which no private key exists. Who knows the number can redeem the voucher. This is ideal to send funds to organizations which do not have yet a blockchain account. Vouchers can also be used as a top up medium.
Functions are part of the settlement namespace: https://coin.codeb.io/settlement.asmx
CreateVoucher
With the function CreateVoucher you transfer funds to a specific smart contract and linked to a random unique number. The function requires three input parameter:
SenderAddress: Your address.
CoinName: Optional the Coin Name. If not specified the default Coin will be used.
TokenAmount: The amount to be transferred to the voucher.
Password: Password to unlock the account. Must match parameter SenderAddress.
The function returns a comma seperated list of two return values. The first value is the transaction hash and the second Value the unique random VoucherID.
VoucherValue
With the function VoucherValue you can check the value of a given voucher. You have to specify the VoucherID and optionally the CoinName.
RedeemVoucher
With RedeemVoucher you can transfer part or all of the funds of a given voucher to your own account. The function requires two input parameter.
SenderAddress: Your address.
VoucherCode: The VoucherID received from: CreateVoucher
TokenAmount: The amount to be transferred from the voucher to your account. If left empty all funds will be transferred.
CoinName: Optional the Coin Name. If not specified the default Coin will be used.
Password: Password to unlock the account. Must match parameter SenderAddress.
Get Started
It is very easy to get started. All you need are some initial coins. Request them from info@codeb.io or use our test account HERE.