The address prefix.
The format of the address, as defined by the AddressFormat enum.
The payload array containing the address data.
The client instance used to fetch known scripts.
A promise that resolves to an AddressLike object.
Will throw an error if the payload length is insufficient or if the script type is unknown.
const address = await addressFromPayload("ckt", AddressFormat.Full, [/* payload data */], client);
console.log(address.script); // Outputs the script object
console.log(address.prefix); // Outputs the address prefix
Converts an address payload into an address-like object.