Skip to content

TokenApprovals pallet

Derived from live runtime metadata on TRN root (pallet index 19, captured 2026-05-02). For prose-style documentation see TokenApprovals on the curated reference side.

Pallet index
19
Calls
6
Events
0
Errors
8
Storage items
4
Constants
0

Calls (extrinsics)

TokenApprovals.erc721_approval

See [Pallet::erc721_approval].

ts
api.tx.tokenApprovals.erc721_approval(operator_account: [u8;20], token_id: (u32,u32))
ArgumentTypeDoc
operator_account[u8;20]T::AccountId
token_id(u32,u32)TokenId

Call index: 0

TokenApprovals.erc721_remove_approval

See [Pallet::erc721_remove_approval].

ts
api.tx.tokenApprovals.erc721_remove_approval(token_id: (u32,u32))
ArgumentTypeDoc
token_id(u32,u32)TokenId

Call index: 1

TokenApprovals.erc20_approval

See [Pallet::erc20_approval].

ts
api.tx.tokenApprovals.erc20_approval(spender: [u8;20], asset_id: u32, amount: u128)
ArgumentTypeDoc
spender[u8;20]T::AccountId
asset_idu32AssetId
amountu128Balance

Call index: 2

TokenApprovals.erc20_update_approval

See [Pallet::erc20_update_approval].

ts
api.tx.tokenApprovals.erc20_update_approval(spender: [u8;20], asset_id: u32, amount: u128)
ArgumentTypeDoc
spender[u8;20]T::AccountId
asset_idu32AssetId
amountu128Balance

Call index: 3

TokenApprovals.erc721_approval_for_all

See [Pallet::erc721_approval_for_all].

ts
api.tx.tokenApprovals.erc721_approval_for_all(operator_account: [u8;20], collection_uuid: u32, approved: bool)
ArgumentTypeDoc
operator_account[u8;20]T::AccountId
collection_uuidu32CollectionUuid
approvedboolbool

Call index: 4

TokenApprovals.erc1155_approval_for_all

See [Pallet::erc1155_approval_for_all].

ts
api.tx.tokenApprovals.erc1155_approval_for_all(operator_account: [u8;20], collection_uuid: u32, approved: bool)
ArgumentTypeDoc
operator_account[u8;20]T::AccountId
collection_uuidu32CollectionUuid
approvedboolbool

Call index: 5

Errors

TokenApprovals.NoToken

The token doesn't exist

TokenApprovals.NotTokenOwner

The account is not the owner of the token

TokenApprovals.NotTokenOwnerOrApproved

The account is not the owner of the token or an approved account

TokenApprovals.CallerNotOperator

The caller account can't be the same as the operator account

TokenApprovals.ApprovedAmountTooLow

The caller is not approved for the requested amount

TokenApprovals.CallerNotApproved

The caller isn't approved for any amount

TokenApprovals.AlreadyApproved

Address is already approved

TokenApprovals.ApprovalDoesntExist

There is no approval set for this token

Storage

TokenApprovals.ERC721Approvals

ts
await api.query.tokenApprovals.eRC721Approvals(key1)
  • Key: (u32,u32) (hasher: Twox64Concat)
  • Returns: [u8;20]

Modifier: Optional

TokenApprovals.ERC721ApprovalsForAll

ts
await api.query.tokenApprovals.eRC721ApprovalsForAll(key1, key2)
  • Key: (SeedPrimitivesSignatureAccountId20,(u32,SeedPrimitivesSignatureAccountId20)) (hashers: Twox64Concat, Twox64Concat)
  • Returns: bool

Modifier: Optional

TokenApprovals.ERC20Approvals

ts
await api.query.tokenApprovals.eRC20Approvals(key1, key2)
  • Key: ((SeedPrimitivesSignatureAccountId20,u32),SeedPrimitivesSignatureAccountId20) (hashers: Twox64Concat, Twox64Concat)
  • Returns: u128

Modifier: Optional

TokenApprovals.ERC1155ApprovalsForAll

ts
await api.query.tokenApprovals.eRC1155ApprovalsForAll(key1, key2)
  • Key: (SeedPrimitivesSignatureAccountId20,(u32,SeedPrimitivesSignatureAccountId20)) (hashers: Twox64Concat, Twox64Concat)
  • Returns: bool

Modifier: Optional

Source: live chain metadata from wss://root.rootnet.live/archive/ws · captured 2026-05-02

Curated independently by Codeology. Source-attributed reference for The Root Network. Not affiliated with Futureverse / TRN Labs.