1Money Network
  • Getting Started
  • Overview
  • Developer Guide
  • Quick Start
  • User Guides
    • Custodians & Centralized Exchanges (CEXs)
    • Issuers
  • Validators
  • Integrations
    • Overview
    • Network Access
    • SDKs
      • Typescript
        • Get Started
        • API Methods
      • Golang
        • Get Started
        • API methods
      • Rust
    • REST APIs
      • Chains
        • Get Chain Id
      • Accounts
        • Get account by token
        • Get account nonce
      • Tokens
        • Issue token
        • Get token metadata
        • Update token metadata
        • Grant authority
        • Mint
        • Burn
        • Managelist
        • Pause/Unpause
      • Checkpoints
        • Get the latest Checkpoint number
        • Get checkpoint by number
        • Get checkpoint by hash
      • Transactions
        • Get transaction by hash
        • Get transaction receipt by hash
        • Submit payment
        • Submit cancellation
        • Estimate fee
    • Websocket
      • Subscribing & Unsubscribing
      • Retrieving Transaction Details
      • Keeping the connection alive
      • Stream | Checkpoints
    • Data Dictionary
      • Transaction Types
        • TokenCreate
        • TokenTransfer
        • TokenGrantAuthority
        • TokenRevokeAuthority
        • TokenBlacklistAccount
        • TokenWhitelistAccount
        • TokenMint
        • TokenBurn
        • TokenCloseAccount
        • TokenPause
        • TokenUnpause
        • TokenUpdateMetadata
          • TokenMetadata Structure
            • MetaDataKeyValuePair
        • Other Transaction Types (WiP)
  • Core Concepts
    • The 1Money Protocol
    • System Components
    • Account Model
    • Token Authority
    • Transactions and Instructions
    • Implementation and usability considerations
    • Security
Powered by GitBook
On this page
  1. Integrations
  2. REST APIs
  3. Tokens

Managelist

PreviousBurnNextPause/Unpause

Last updated 17 days ago

The Managelist feature combines both whitelist and blacklist functionalities. Its specific usage is as follows:

When a Token is issued as a Public Token:

By initial default, all addresses can hold that token.

  • To add an address to the blacklist, use the “Add to Blacklist” function. The address is then unable to send or receive that token.

  • To remove a wallet from the blacklist, use the “Remove from Blacklist” function.

When a Token is issued as a Private Token:

By initial default, all addresses are excluded from holding that token.

  • To add an address to the whitelist, use the “Add to Whitelist” function. The address is then allowed to send and receive that token.

  • To remove an address from the whitelist, use the “Remove from Whitelist” function.

post
Body
all ofOptional
Responses
200Success
application/json
400
Client error
application/json
404
Resource not found
application/json
500
Internal server error
application/json
post
POST /v1/tokens/managelist HTTP/1.1
Host: api.testnet.1money.network
Content-Type: application/json
Accept: */*
Content-Length: 349

{
  "action": "Blacklist",
  "address": "0x9E1E9688A44D058fF181Ed64ddFAFbBE5CC742Ab",
  "chain_id": 1212101,
  "nonce": 0,
  "token": "0x6ADE9688A44D058fF181Ed64ddFAFbBE5CC742Ac",
  "signature": {
    "r": "72956732934625920503481762689501378577921804342307439094906376029324416116949",
    "s": "29902520081700531224291681396692026253288382272435451874524203378285409371412",
    "v": "1"
  }
}
{
  "hash": "0xf55f9525be94633b56f954d3252d52b8ef42f5fd5f9491b243708471c15cc40c"
}