Money Button Documentation

Money Button Documentation

  • Money Button
  • API
  • Examples
  • Paymail
  • bsv

›API v2

Money Button

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

API

  • API Overview
  • Apps
  • Webhooks
  • Tokens
  • Currencies
  • Javascript Client
  • Authentication

    • Authentication Overview
    • OAuth
    • OAuth With JS Client

    API v1

    • Get User Identity
    • Get User Profile
    • Get User Balance
    • Get Payments
    • Get Payment By ID

    API v2

    • Get User Balances
    • Get Payments
    • Get Payment By ID
    • Get Assets
    • Create Asset
    • Modify Asset

Simple Fabriik Protocol for Tokens

  • Protocol Overview
  • Wallets Integration Guide
  • SFP Paymail Extension Build Action
  • SFP Paymail Extension Authorise Action

Examples

  • Examples Overview
  • OP_RETURN Scripts
  • Assets

Paymail

  • Paymail Overview
  • Paymail Video Series
  • Paymail Introduction
  • BRFC Specifications
  • Specification Documents
  • BRFC ID Assignment
  • Service Discovery
  • Host Discovery
  • Capability Discovery
  • Public Key Infrastructure
  • Payment Addressing
  • Payment Addressing (Basic Address Resolution)
  • Payment Addressing (Payer Validation)
  • Payment Addressing (Payee Approvals)
  • Payment Addressing (PayTo Protocol Prefix)
  • Verify Public Key Owner
  • P2P Transactions
  • P2P Payment Destination
  • P2P Payment Destination with Tokens Support
  • Asset Information
  • Recommendations

Bitcoin SV Library (bsv)

  • Bitcoin SV Library (bsv)
  • Big Numbers
  • Points (Elliptic Curves)
  • Hash Functions
  • Base 58
  • Private Keys
  • Public Keys
  • Addresses
  • ECDSA
  • Bitcoin Signed Messages
  • Signatures
  • HD Private Keys (BIP32)
  • HD Public Keys (BIP32)
  • Mnemonics (BIP39)
  • Script

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,
}
← Get AssetsModify Asset →
  • Facts
  • Attributes
    • Body
  • Example Request
  • Example Response
Money Button Documentation
Docs
Money ButtonAPIDesignbsv
Community
redditYoutubeTelegramTwitter
More
BlogInstagramGitHubStar
See an error in our documentation? Issue a pull request to fix it.
Copyright © 2022 Fermatted Drives Limited