4.14.1 (Option) Relist Token

(Option) Relist Token Step-by-Step test guide

Investor resells owned tokens. Requires investor role. Validates price + amount, ensures property finalized, transfers tokens to property account, creates new TokenListingDetails, updates NextListingId, emits TokenRelisted. The listingId will become the NextListingId.

Action:

  1. Developer → Extrinsics → pallet marketplacerelistToken

    • origin: Investor

    • assetId: 0 . The screenshot is illustrative and may not reflect the exact state following the previous steps. The assetId needs to match the listed property by the real estate developer at 4.1.1 List Property.

    • receiver: Investor

    • tokenPrice: 10000000 . This can be any price chosen by the investor. This is the price of a single token.

    • Amount: 5 . This is the amount of token that the investor owned and chosen to relist.

  1. Submit & sign.

Post-checks:

Developer → Chain State

realEstateAssetsaccount :

  • u32: 0 - this should match the assetId above. The relist token is located in the 4th position on the list (in green font).

[ [ [ 0 14E5nqKAp3oAJcmzgZhUD2RcptBeUBScxKHgJKU4HPNcKVf3 ] { balance: 36 status: Liquid reason: Consumer extra: null } ] [ [ 0 15oF4uVJwmo4TdGW7VfQxNLavjCXviqxT9S1MgbjMNHr6Sp5 ] { balance: 31 status: Liquid reason: Consumer extra: null } ] [ [ 0 126TwBzBM4jUEK2gTphmW4oLoBWWnYvPp8hygmduTr4uds57 ] { balance: 28 status: Liquid reason: Consumer extra: null } ] [ [ 0 13UVJyLnbVp8bnHxNWbLyh78torEMtxiF5eHbSn2JZWYVHPH ] { balance: 5 status: Liquid reason: Consumer extra: null } ] ]

The transaction can also be seen in Network → Explorer

Last updated