DevelopersDocsHelp Centre
Log In
HomeDevelopersDocsHelp CentreLog In

Docs

The Button

  • Overview
  • HTML
  • JavaScript
  • React
  • Crypto Operations
  • Invisible Money Button
  • Paymail Signatures
  • Paymail Encryption

API

OAuth

API v2

Create Asset

Define a new asset. In order to create tokens, you need first to define the asset using this endpoint. You'll need to do a payment operation later using the asset alias to actually trigger the creation (minting) process for that asset.

Facts

AttributeValue
urlhttps://www.moneybutton.com/api/v2/me/assets
http verbPOST
Required scopeusers.asset:write

Attributes

Body


ParameterRequiredTypeNotes
nameTruestringmin length 5
initialSupplyTruenumbermin value 1
protocolTruestringSupported protocol ID
descriptionFalsestring
avatarFalsestring
paymailAliasFalsestring
paymailDomainFalsestring
urlFalsestring

You can only specify *paymailAlias and paymailDomain parameters if you have a custom domain associated to your account (this feature is currently in a closed beta). We will generate a random alias if no alias is specified.

Example Request

{
  "protocol": "SFP",
  "name": "My First Token",
  "initialSupply": 1000000,
  "description": "My first token description",
  "avatar": "https://mywebsite.com/token-avatar.png",
  "url": "https://mywebsite.com"
}

Example Response

{
  "id": "32",
  "name": "My First Token",
  "initialSupply": "1000000",
  "userId": "5",
  "paymailAlias": "e5045f6a00a2.asset",
  "updatedAt": "2020-12-14T11:51:36.484Z",
  "createdAt": "2020-12-14T11:51:36.484Z",
  "avatar": "https://mywebsite.com/token-avatar.png",
  "url": "https://mywebsite.com",
  "description": "My first token description",
  "paymailDomain": null,
}
HomeMB for DevelopersHelp Centre

Buenos Aires, Argentina - Tel Aviv, Israel - Toronto, Canada

@ 2022 MoneyButton All rights reserved