applyForSR

Create an unsigned transaction to be an FV and this account balance needs to be at least 900vs,it will consume 900vs.

Usage

visionWeb.transactionBuilder.applyForSR(address, url);

Parameters

ParameterDescriptionTypeDefault
addressAccount address.stringDefault account address
urlFV URL link.string-
optionsDescriptions are below.object-

options parameters

ParameterDescriptionTypeDefault
permissionIdThe permission Id,optional, for multi-signature use.number-

Returns

Object

Example

visionWeb.transactionBuilder.applyForSR("VJJKvvPZ1cLkRoeYmswWPYdwi9Y2mkK8c8","www.test.com");
> {
  visible: false,
  txID: 'c353b5e7fcf59c7557c74478989534b9643d4f0b42f200190079f1d51c293467',
  raw_data: {
    contract: [ [Object] ],
    ref_block_bytes: '2a51',
    ref_block_hash: '732a8523aca780cd',
    expiration: 1608444687000,
    timestamp: 1608444628007
  },
  raw_data_hex: '0a022a512208732a8523aca780cd4098e598f6e72e5a5f0805125b0a32747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5769746e657373437265617465436f6e747261637412250a154653cd48c2723cb985679f4e44d99c64d22d89f41d120c7777772e746573742e636f6d70a79895f6e72e'
}