Skip to content

Solidity API

IPropsTokenSplit

Interface for managing token splits associated with specific token IDs. This interface provides functionality to upsert and retrieve split addresses for tokens.

upsertTokenSplit

solidity
function upsertTokenSplit(uint256 _tokenId, address _splitAddress) external

Upserts (inserts or updates) a token split for a given token ID

This function allows setting or updating the split address for a specific token. If a split already exists for the token ID, it will be updated. If not, a new split will be created.

Parameters

NameTypeDescription
_tokenIduint256The ID of the token for which to set the split
_splitAddressaddressThe address of the split contract to be associated with the token

getTokenSplit

solidity
function getTokenSplit(uint256 _tokenId) external view returns (address)

Retrieves the split address for a given token ID

This function allows querying the current split address associated with a specific token.

Parameters

NameTypeDescription
_tokenIduint256The ID of the token for which to retrieve the split address

Return Values

NameTypeDescription
[0]addressThe address of the split contract associated with the given token ID