Set approval for an account (or contract) to transfer any tokens from an SFT collection mapping(address => mapping(address => bool)) private _operatorApprovals;
Namespace:
Copy api.tx.tokenApprovals.erc1155ApprovalForAll
Type:
Copy function erc1155ApprovalForAll (
caller : SeedPrimitivesSignatureAccountId20 ,
operator_account : SeedPrimitivesSignatureAccountId20 ,
collection_uuid : u32 ,
approved : bool
)
Set approval for an account to transfer an amount of tokens on behalf of the caller Mapping from caller to spender and amount mapping(address => mapping(address => uint256)) private _allowances;
Namespace:
Copy api.tx.tokenApprovals.erc20Approval
Type:
Copy function erc20Approval (
caller : SeedPrimitivesSignatureAccountId20 ,
spender : SeedPrimitivesSignatureAccountId20 ,
asset_id : u32 ,
amount : u128
)
Removes an approval over an account and asset_id mapping(address => mapping(address => uint256)) private _allowances;
Namespace:
Copy api.tx.tokenApprovals.erc20UpdateApproval
Type:
Copy function erc20UpdateApproval (
caller : SeedPrimitivesSignatureAccountId20 ,
spender : SeedPrimitivesSignatureAccountId20 ,
asset_id : u32 ,
amount : u128
)
Set approval for a single NFT Mapping from token_id to operator clears approval on transfer mapping(uint256 => address) private _tokenApprovals;
Namespace:
Copy api.tx.tokenApprovals.erc721Approval
Type:
Copy function erc721Approval (
caller : SeedPrimitivesSignatureAccountId20 ,
operator_account : SeedPrimitivesSignatureAccountId20 ,
token_id : (u32 , u32)
)
Set approval for an account (or contract) to transfer any tokens from a collection mapping(address => mapping(address => bool)) private _operatorApprovals;
Namespace:
Copy api.tx.tokenApprovals.erc721ApprovalForAll
Type:
Copy function erc721ApprovalForAll (
caller : SeedPrimitivesSignatureAccountId20 ,
operator_account : SeedPrimitivesSignatureAccountId20 ,
collection_uuid : u32 ,
approved : bool
)
Public method which allows users to remove approvals on a token they own. Can be called outside of the EVM as a Substrate extrinsic.
Namespace:
Copy api.tx.tokenApprovals.erc721RemoveApproval
Type:
Copy function erc721RemoveApproval (
token_id : (u32 , u32)
)
Namespace:
Copy api.query.tokenApprovals.eRC1155ApprovalsForAll
Type:
Copy function eRC1155ApprovalsForAll (
SeedPrimitivesSignatureAccountId20 ,
(u32 , SeedPrimitivesSignatureAccountId20)
) : Option < bool >
Namespace:
Copy api.query.tokenApprovals.eRC20Approvals
Type:
Copy function eRC20Approvals (
(SeedPrimitivesSignatureAccountId20 , u32),
SeedPrimitivesSignatureAccountId20
) : Option < u128 >
Namespace:
Copy api.query.tokenApprovals.eRC721Approvals
Type:
Copy function eRC721Approvals (
(u32 , u32)
) : Option < SeedPrimitivesSignatureAccountId20 >
Copy api.query.tokenApprovals.eRC721ApprovalsForAll
Type:
Copy function eRC721ApprovalsForAll (
SeedPrimitivesSignatureAccountId20 ,
(u32 , SeedPrimitivesSignatureAccountId20)
) : Option < bool >
Address is already approved
Namespace:
Copy api.errors.tokenApprovals.AlreadyApproved
There is no approval set for this token
Namespace:
Copy api.errors.tokenApprovals.ApprovalDoesntExist
The caller is not approved for the requested amount
Namespace:
Copy api.errors.tokenApprovals.ApprovedAmountTooLow
The caller isn't approved for any amount
Namespace:
Copy api.errors.tokenApprovals.CallerNotApproved
The caller account can't be the same as the operator account
Namespace:
Copy api.errors.tokenApprovals.CallerNotOperator
The token doesn't exist
Namespace:
Copy api.errors.tokenApprovals.NoToken
The account is not the owner of the token
Namespace:
Copy api.errors.tokenApprovals.NotTokenOwner
The account is not the owner of the token or an approved account
Namespace:
Copy api.errors.tokenApprovals.NotTokenOwnerOrApproved