Address
An address on the Tezos blockchain is a string whose suffix is the hash of the public key of an account.
If the account is a smart contract (sometimes known as an originated account), the address starts with
KT1
.If the account is a user account (sometimes known as an implicit account), the address starts with
tz1
,tz2
,tz3
, ortz4
.
For more information about Tezos addresses, see Accounts and addresses on docs.tezos.com.
The address
type represents a well-formed Tezos address.
However, the type being well-formed does not automatically mean that the address is valid and identifies a real account.
Beware of failures if the address is invalid.
To create an address in LIGO, cast a string to the address
type, as in this example:
You can get the address of the contract itself by calling Tezos.get_self_address()
.