Appearance
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) externalUpserts (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
| Name | Type | Description |
|---|---|---|
| _tokenId | uint256 | The ID of the token for which to set the split |
| _splitAddress | address | The 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
| Name | Type | Description |
|---|---|---|
| _tokenId | uint256 | The ID of the token for which to retrieve the split address |
Return Values
| Name | Type | Description |
|---|---|---|
| [0] | address | The address of the split contract associated with the given token ID |