sdk.js
function registerWalletAddress(url, body, options) {
  options = options || {};
  url = resolveURL(url, '/address');

  return new P(function (resolve, reject) {
    request({
      url: url,
      method: options.method || 'POST',
      body: body,
      json: true,
      headers: options.headers
    }, function (err, res, body) {
      if (err) return reject(err);
      return resolve(body);
    });
  });
}
function registerWalletAddress(url, body, options) {
  options = options || {};
  url = resolveURL(url, '/address');

  return new P(function (resolve, reject) {
    request({
      url: url,
      method: options.method || 'POST',
      body: body,
      json: true,
      headers: options.headers
    }, function (err, res, body) {
      if (err) return reject(err);
      return resolve(body);
    });
  });
}
function registerWalletAddress ( url , body , options ) { options = options || { } ; url = resolveURL ( url , '/address' ) ; return new P ( function ( resolve , reject ) { request ( { url : url , method : options . method || 'POST' , body : body , json : true , headers : options . headers } , function ( err , res , body ) { if ( err ) return reject ( err ) ; return resolve ( body ) ; } ) ; } ) ; }
Sends a wallet address registration request to the supplied URL
@param {string} url - The URL of a webwallet server
@param {Object} body - A wallet address registration statement
@param {Object} options - Request parameters such as method and headers
@return {Promise} - Resolves to the response body
Sends a wallet address registration request to the supplied URL