Money Button Documentation

Money Button Documentation

  • Money Button
  • API
  • Examples
  • Paymail
  • bsv

›API v1

Money Button

  • Money Button Overview
  • HTML
  • Javascript
  • React
  • Crypto Operations
  • Invisible Money Button
  • Paymail Signatures
  • Paymail Encryption
  • Simple Fabriik Protocol for Tokens

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

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
  • 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

Get User Profile

Returns profile info for the specified user.

Facts

AttributeValue
urlhttps://www.moneybutton.com/api/v1/users/{userId}/profile
http verbGET
Required scopeusers.profiles:read

Attributes

URL

  • userId: The returned profile belongs to the user specified in this parameter.

Response

{
  "data": {
    "type": "profiles",
    "id": "7",
    "attributes": {
      "created-at": "2019-06-24T17:08:48.201Z",
      "name": "John Doe",
      "default-currency": "USD",
      "default-language": "en",
      "bio": "I looooooooooooooooove Money Button.",
      "primary-paymail": "johndoe@example.com",
      "avatar-url": "https://www.example.com/avatar.png"
    }
  }
}

Using our js api client

const { id: userId } = await mbClient.getIdentity()
const profile = await mbClient.getUserProfile(userId)
console.log(JSON.stringify(profile))
// Output:
// {
//   id: 7,
//   createdAt: "2019-06-24T17:08:48.201Z",
//   name: "John Doe",
//   defaultCurrency: "USD",
//   defaultLanguage: "en",
//   bio: "I looooooooooooooooove Money Button.",
//   primaryPaymail: "johndoe@example.com",
//   avatarUrl: "https://www.example.com/avatar.png"
// }

User Profile Sensitive Data

Returns profile info including sensitive data like email address for the specified user.

Facts

AttributeValue
urlhttps://www.moneybutton.com/api/v1/users/{userId}/profile
http verbGET
Required scopeusers.profiles:read and users.profiles.email:read

Attributes

URL

  • userId: The returned profile belongs to the user specified in this parameter.

Response

{
  "data": {
    "type": "profiles",
    "id": "7",
    "attributes": {
      "created-at": "2019-06-24T17:08:48.201Z",
      "name": "John Doe",
      "default-currency": "USD",
      "default-language": "en",
      "bio": "I looooooooooooooooove Money Button.",
      "primary-paymail": "johndoe@example.com",
      "avatar-url": "https://www.example.com/avatar.png",
      "email": "johndoe@email.com"
    }
  }
}

Using our js api client

const { id: userId } = await mbClient.getIdentity()
const profile = await mbClient.getUserProfile(userId)
console.log(JSON.stringify(profile))
// Output:
// {
//   id: 7,
//   createdAt: "2019-06-24T17:08:48.201Z",
//   name: "John Doe",
//   defaultCurrency: "USD",
//   defaultLanguage: "en",
//   bio: "I looooooooooooooooove Money Button.",
//   primaryPaymail: "johndoe@example.com",
//   avatarUrl: "https://www.example.com/avatar.png",
//   email: "johndoe@email.com"
// }
← Get User IdentityGet User Balance →
  • Facts
  • Attributes
    • URL
  • Response
  • Using our js api client
  • Facts
  • Attributes
    • URL
  • Response
  • Using our js api client
Money Button Documentation
Docs
Money ButtonAPIDesignbsv
Community
redditYoutubeTelegramTwitter
More
BlogInstagramGitHubStar
See an error in our documentation? Issue a pull request to fix it.
Copyright © 2021 Yours Inc.