Skip to main content

sdk.tap.newAddress(assetID, amount)

Parameters:

Creates a new Taproot Asset address for receiving assets.

  • asset_id: The asset ID, hex encoded.
  • amount: (Optional) The amount of the asset. If 0 or undefined, creates a dynamic address where the sender can specify the amount at send time. If non-zero, creates a fixed amount address.

Return Value:
Encoded Taproot Assets Address.