iridium_walletd createAddress method

The createAddress() method creates an additional address in your wallet or imports a wallet from a given spendSecretKey.

back to methods summary

Input:

ArgumentMandatoryDescriptionFormat
spendSecretKey No Private spend key. If spendSecretKey is specified, RPC Wallet creates spend addressstring
spendPublicKey No Public spend key. If spendPublicKey is specified, RPC Wallet creates view addressstring
reset No default true, false to resync from scratch (should have been called noresync)boolean

Note: If none of the above mentioned parameters were specified, RPC Wallet creates spend address with generated spend key. Note: The mentioned parameters can't be both present in a single request

Output:

ArgumentDescriptionFormatExample
addressCreated addressstringir2qzAzr1KfCk2sTsLdEq8BRSRyHnahcKJrPRZg8rHtkRCNBHJiiyNz8vWjwoM6F4PSbPQuNusEgGXc2A4NoDrQr2dH4rbmGs

Input example:

{  
  'params':{  
  },
  'jsonrpc':'2.0',
  'id':'test',
  'method':'createAddress'
}

Output example:

{  
  'jsonrpc':'2.0',
  'id':'test',
  'result':{  
     'address':'ir2qzAzr1KfCk2sTsLdEq8BRSRyHnahcKJrPRZg8rHtkRCNBHJiiyNz8vWjwoM6F4PSbPQuNusEgGXc2A4NoDrQr2dH4rbmGs'
  }
}

back to methods summary