# Buying a membership

# Transaction message

To buy a membership, the following message must be used.

{
  "type": "commercio/MsgBuyMembership",
  "value": {
    "membership_type": "<Membership type identifier>",
    "buyer": "<Your address>"
  }
}
1
2
3
4
5
6
7

# Action type

If you want to list past transactions including this kind of message, you need to use the following message.action value:

buyMembership
1