4.16.1 (Option) Buy Relisted Token

(Option) Buy Relisted Token Step-by-Step test guide

Investor buys tokens from secondary market (relisted). Checks role, accepted payment asset, and token availability. Restricts ownership, calculates price, then processes purchase via buying_token_process. Emits events for successful trade.

Action:

  1. Developer → Extrinsics → pallet marketplacebuyRelistedToken

    • origin: Investor

    • listingId: 1 . The screenshot is illustrative and may not reflect the exact state following the previous steps. The listingId increases after relist action taken. In this example, buy relisted token happened after relisted token, the listingId will increment by 1 to the listed property by the real estate developer at 4.1.1 List Property.

    • amount: 2 . This is amount of token that the investor wants to buy from the 5 relisted token in 4.14.1 (Option) Relist Token.

    • paymentAsset: choose accepted id ( 1337 or 1984 ).

  1. Submit & sign.

Post-checks:

Developer → Chain State

marketplacetokenListings :

  • The result display listingId: 1. The seller still has 3 tokens left after 2 tokens sold above.

realEstateAssetsaccount :

  • u32: 0 - As this is real estate assets pallet, this is not the same as the listed property by the real estate developer at 4.1.1 List Property. The remaining relist token, 3 left, is in the 4th position on the list.

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

Last updated