ABCUtil Class Reference

Inherits from NSObject
Declared in ABCUtil.h

+ encodeStringToQRImage:error:

Encodes a string into a QR code returned as UIImage *

+ (UIImage *)encodeStringToQRImage:(NSString *)string error:(NSError **)error

Parameters

string

NSString* string to encode

error

NSError** May be set to nil

Return Value

UIImage* returned image

Discussion

Encodes a string into a QR code returned as UIImage *

Declared In

ABCUtil.h

+ parseURI:error:

Parses a bitcoin BIP21 URI, Wif private key, or Airbitz hbits private key

+ (ABCParsedURI *)parseURI:(NSString *)uri error:(NSError **)error

Parameters

uri

NSString to parse

error

NSError Pointer to NSError object. (Optional. May be set to nil)

Return Value

ABCParsedURI ABCParsedURI Object with various parameters parsed out

Discussion

Parses a bitcoin BIP21 URI, Wif private key, or Airbitz hbits private key

Declared In

ABCUtil.h

+ encodeURI:amount:label:message:category:ret:

Encodes a BIP21 compatible payment request URI using various paramters

+ (NSString *)encodeURI:(NSString *)address amount:(uint64_t)amount label:(NSString *)label message:(NSString *)message category:(NSString *)category ret:(NSString *)ret

Parameters

address

NSString Bitcoin public address

amount

uint64_t Amount of request in satoshis

label

NSString Name of requestor

message

NSString Misc notes of transaction request

category

NSString Airbitz formatted category in the form “[Category]: [Subcategory]”
ie.
Income:Salary
Expense:Rent
Transfer:Airbitz Wallet
Exchange:Buy Bitcoin

ret

NSString Return URI to send user to after payment is made

Return Value

NSString Complete BIP21 URI

Discussion

Encodes a BIP21 compatible payment request URI using various paramters

Declared In

ABCUtil.h