The Contacts Module features the following functions:
$.fn.blockstrap.contacts.get
(id)$.fn.blockstrap.contacts.new
(name, address, blockchain, fields, callback, ignore_errors)
contacts.get
(id) - back to top
This function will return a contact object based upon the provided id
.
If the contact id
is not provided it will instead return an array containing all of the contact objects.
contacts.new
(name, address, blockchain, fields, callback, ignore_errors) - back to top
This function will take the required name
, address
, blockchain
and fields
and create a new contact, then perform the callback
function upon completion. Modal errors messages can be supressed by setting ignore_errors
to true
.