Skip to main content

sdk.tap.decodeAddress(address)

As Taproot Asset addresses contain the amount and asset ID, you should verify the contents before sending to them.

TapDecodedAddress tapDecodeAddress = await joltzSDK.tap.decodeAddress(tap_address);

Parameters:

  • address: The encoded Taproot Asset Address.

Return Value:

{
// The hex-encoded Asset ID.
"assetID": string,
// The amount of assets.
"amount": number
}