Skip to main content

ISoulboundIdentity

Methods

balanceOf

function balanceOf(address _owner) external view returns (uint256)

Count all SBTs assigned to an owner

SBTs assigned to the zero address are considered invalid, and this function throws for queries about the zero address.

Parameters

NameTypeDescription
_owneraddressAn address for whom to query the balance

Returns

NameTypeDescription
_0uint256The number of SBTs owned by _owner, possibly zero

getSoulName

function getSoulName() external view returns (contract ISoulName)

Returns

NameTypeDescription
_0contract ISoulNameundefined

mint

function mint(address to) external payable returns (uint256)

Parameters

NameTypeDescription
toaddressundefined

Returns

NameTypeDescription
_0uint256undefined

mint

function mint(address paymentMethod, address to) external payable returns (uint256)

Parameters

NameTypeDescription
paymentMethodaddressundefined
toaddressundefined

Returns

NameTypeDescription
_0uint256undefined

mintIdentityWithName

function mintIdentityWithName(address to, string name, uint256 yearsPeriod, string _tokenURI) external payable returns (uint256)

Parameters

NameTypeDescription
toaddressundefined
namestringundefined
yearsPerioduint256undefined
_tokenURIstringundefined

Returns

NameTypeDescription
_0uint256undefined

mintIdentityWithName

function mintIdentityWithName(address paymentMethod, address to, string name, uint256 yearsPeriod, string _tokenURI) external payable returns (uint256)

Parameters

NameTypeDescription
paymentMethodaddressundefined
toaddressundefined
namestringundefined
yearsPerioduint256undefined
_tokenURIstringundefined

Returns

NameTypeDescription
_0uint256undefined

ownerOf

function ownerOf(uint256 _tokenId) external view returns (address)

Find the owner of an SBT

SBTs assigned to zero address are considered invalid, and queries about them do throw.

Parameters

NameTypeDescription
_tokenIduint256The identifier for an SBT

Returns

NameTypeDescription
_0addressThe address of the owner of the SBT

supportsInterface

function supportsInterface(bytes4 interfaceId) external view returns (bool)

Returns true if this contract implements the interface defined by interfaceId. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.

Parameters

NameTypeDescription
interfaceIdbytes4undefined

Returns

NameTypeDescription
_0boolundefined

tokenOfOwner

function tokenOfOwner(address owner) external view returns (uint256)

Parameters

NameTypeDescription
owneraddressundefined

Returns

NameTypeDescription
_0uint256undefined

Events

Burn

event Burn(address indexed _owner, uint256 indexed _tokenId)

This emits when an SBT is burned This event emits when SBTs are destroyed

Parameters

NameTypeDescription
_owner indexedaddressundefined
_tokenId indexeduint256undefined

Mint

event Mint(address indexed _owner, uint256 indexed _tokenId)

This emits when an SBT is newly minted. This event emits when SBTs are created

Parameters

NameTypeDescription
_owner indexedaddressundefined
_tokenId indexeduint256undefined