create
30a24abd
Creates a new blob. It is guaranteed that different users will never receive the same blobId, even before consensus has been reached. This prevents blobId sniping. Consider createWithNonce() if not calling from another contract.
Inputs | 0 | bytes4 | flags | Packed blob settings. |
1 | bytes | contents | Contents of the blob to be stored. | |
Outputs | 0 | bytes20 | blobId |
createNewRevision
a84c5330
Create a new blob revision.
Inputs | 0 | bytes20 | blobId | Id of the blob. |
1 | bytes | contents | Contents of the new revision. | |
Outputs | 0 | uint256 | revisionId |
createWithNonce
6d1da953
Creates a new blob using provided nonce. It is guaranteed that different users will never receive the same blobId, even before consensus has been reached. This prevents blobId sniping. This method is cheaper than create(), especially if multiple blobs from the same account end up in the same block. However, it is not suitable for calling from other contracts because it will throw if a unique nonce is not provided.
Inputs | 0 | bytes32 | flagsNonce | First 4 bytes: Packed blob settings. The parameter as a whole must never have been passed to this function from the same account, or it will throw. |
1 | bytes | contents | Contents of the blob to be stored. | |
Outputs | 0 | bytes20 | blobId |
disown
d6ca8ccb
Disown a blob.
Inputs | 0 | bytes20 | blobId | Id of the blob. |
getAllRevisionBlockNumbers
22057bc7
Get the block numbers for all of a blob's revisions.
Inputs | 0 | bytes20 | blobId | Id of the blob. |
Outputs | 0 | uint256[] | blockNumbers |
getContractId
4788cabf
Get the id for this BlobStore contract.
Outputs | 0 | bytes12 |
getEnforceRevisions
dba1ac3d
Determine if a blob enforces revisions.
Inputs | 0 | bytes20 | blobId | Id of the blob. |
Outputs | 0 | bool | enforceRevisions |
getExists
08b7c13b
Check if a blob exists.
Inputs | 0 | bytes20 | blobId | Id of the blob. |
Outputs | 0 | bool | exists |
getFlags
01fd89a4
Get all a blob's flags.
Inputs | 0 | bytes20 | blobId | Id of the blob. |
Outputs | 0 | bytes4 | flags |
getInfo
ba15e52e
Get info about a blob.
Inputs | 0 | bytes20 | blobId | Id of the blob. |
Outputs | 0 | bytes4 | flags | |
1 | address | owner | ||
2 | uint256 | revisionCount | ||
3 | uint256[] | blockNumbers |
getOwner
e487eb58
Get the owner of a blob.
Inputs | 0 | bytes20 | blobId | Id of the blob. |
Outputs | 0 | address | owner |
getRetractable
3c335b0e
Determine if a blob is retractable.
Inputs | 0 | bytes20 | blobId | Id of the blob. |
Outputs | 0 | bool | retractable |
getRevisionCount
3ef87414
Get the number of revisions a blob has.
Inputs | 0 | bytes20 | blobId | Id of the blob. |
Outputs | 0 | uint256 | revisionCount |
getTransferable
aa5d4719
Determine if a blob is transferable.
Inputs | 0 | bytes20 | blobId | Id of the blob. |
Outputs | 0 | bool | transferable |
getUpdatable
3df91162
Determine if a blob is updatable.
Inputs | 0 | bytes20 | blobId | Id of the blob. |
Outputs | 0 | bool | updatable |
restart
e0a70811
Delete all a blob's revisions and replace it with a new blob.
Inputs | 0 | bytes20 | blobId | Id of the blob. |
1 | bytes | contents | Contents that should be stored. |
retract
cf7315c6
Retract a blob.
Inputs | 0 | bytes20 | blobId | Id of the blob. This blobId can never be used again. |
retractLatestRevision
a7e93e87
Retract a blob's latest revision. Revision 0 cannot be retracted.
Inputs | 0 | bytes20 | blobId | Id of the blob. |
setEnforceRevisions
9243e088
Set a blob to enforce revisions.
Inputs | 0 | bytes20 | blobId | Id of the blob. |
setNotRetractable
976b01c0
Set a blob to not be retractable.
Inputs | 0 | bytes20 | blobId | Id of the blob. |
setNotTransferable
b971b4e5
Set a blob to not be transferable.
Inputs | 0 | bytes20 | blobId | Id of the blob. |
setNotUpdatable
d0c24e93
Set a blob as not updatable.
Inputs | 0 | bytes20 | blobId | Id of the blob. |
transfer
b06df18e
Transfer a blob to a new user.
Inputs | 0 | bytes20 | blobId | Id of the blob. |
1 | address | recipient | Address of the user to transfer to blob to. |
transferDisable
47bdb7f4
Disable transfer of the blob to the current user.
Inputs | 0 | bytes20 | blobId | Id of the blob. |
transferEnable
12511c14
Enable transfer of the blob to the current user.
Inputs | 0 | bytes20 | blobId | Id of the blob. |
updateLatestRevision
9e65c7e5
Update a blob's latest revision.
Inputs | 0 | bytes20 | blobId | Id of the blob. |
1 | bytes | contents | Contents that should replace the latest revision. |