Solidity API
ISpanningERC721Interface of ERC721 in the Spanning Protocol NOTE: Spanning uses receiverAddress in favor of operatorAddress. This pattern matches the language used to represent approvals elsewhere.
balanceOffunction balanceOf(bytes32 accountAddress) external view returns (uint256)
Copy Returns the number of tokens owned by an account.
Name Type Description accountAddress bytes32 - Address to be queried
Name Type Description [0] uint256 uint256 - Number of tokens owned by an account
ownerOfSpanningfunction ownerOfSpanning(uint256 tokenId) external view returns (bytes32)
Copy Returns the owner of the queried token.
Name Type Description tokenId uint256 - Token to be queried
Name Type Description [0] bytes32 bytes32 - Address of the owner of the queried token
safeTransferFromfunction safeTransferFrom(bytes32 senderAddress, bytes32 receiverAddress, uint256 tokenId, bytes payload) external
Copy Safely moves requested tokens between accounts, including data.
Name Type Description senderAddress bytes32 - Address of the sender receiverAddress bytes32 - Address of the receiver tokenId uint256 - Token to be transferred payload bytes - Additional, unstructured data to be included
safeTransferFromfunction safeTransferFrom(bytes32 senderAddress, bytes32 receiverAddress, uint256 tokenId) external
Copy Safely moves requested tokens between accounts.
Name Type Description senderAddress bytes32 - Address of the sender receiverAddress bytes32 - Address of the receiver tokenId uint256 - Token to be transferred
transferFromfunction transferFrom(bytes32 senderAddress, bytes32 receiverAddress, uint256 tokenId) external
Copy Moves requested tokens between accounts.
Name Type Description senderAddress bytes32 - Address of the sender receiverAddress bytes32 - Address of the receiver tokenId uint256 - Token to be transferred
approvefunction approve(bytes32 receiverAddress, uint256 tokenId) external
Copy Sets a token allowance for a pair of addresses (sender and receiver).
Name Type Description receiverAddress bytes32 - Address of the allowance receiver tokenId uint256 - Token allowance to be approved
setApprovalForAllfunction setApprovalForAll(bytes32 receiverAddress, bool shouldApprove) external
Copy Allows an account to have control over another account's tokens.
Name Type Description receiverAddress bytes32 - Address of the allowance receiver (gains control) shouldApprove bool - Whether to approve or revoke the approval
getApprovedSpanningfunction getApprovedSpanning(uint256 tokenId) external view returns (bytes32)
Copy Returns the account approved for a token.
Name Type Description tokenId uint256 - Token to be queried
Name Type Description [0] bytes32 bytes32 - Address of the account approved for a token
isApprovedForAllfunction isApprovedForAll(bytes32 senderAddress, bytes32 receiverAddress) external view returns (bool)
Copy Indicates if an account has total control over another's assets.
Name Type Description senderAddress bytes32 - Address of the allowance sender (cede control) receiverAddress bytes32 - Address of the allowance receiver (gains control)
Name Type Description [0] bool bool - Indicates whether the account is approved for all
SpanningTransferevent SpanningTransfer(bytes32 senderAddress, bytes32 receiverAddress, uint256 tokenId)
Copy _Emitted tokens are transferred
Note that amount
may be zero._
Name Type Description senderAddress bytes32 - Address initiating the transfer receiverAddress bytes32 - Address receiving the transfer tokenId uint256 - Token under transfer
SpanningApprovalevent SpanningApproval(bytes32 senderAddress, bytes32 receiverAddress, uint256 tokenId)
Copy Emitted when an allowance pair changes.
Name Type Description senderAddress bytes32 - Address of the allowance sender receiverAddress bytes32 - Address of the allowance receiver tokenId uint256 - Token under allowance
SpanningApprovalForAllevent SpanningApprovalForAll(bytes32 senderAddress, bytes32 receiverAddress, bool approved)
Copy Emitted when an account gives control to another account's tokens.
Name Type Description senderAddress bytes32 - Address of the allowance sender (cede control) receiverAddress bytes32 - Address of the allowance receiver (gains control) approved bool - Whether the approval was approved or revoked