Totems API
Endpoints for managing Shamwari's native asset type.
Overview
The Totem API provides comprehensive functionality for issuing, transferring, and trading digital assets on the Shamwari Network. Totems represent fungible or non-fungible assets with support for dividend payments, phasing controls, and real-world asset tokenization.
Asset Creation
| Endpoint | Description | Method |
|---|---|---|
| issueTotem | Issue new Totem | POST |
| issueCurrency | Issue currency | POST |
Asset Queries
| Endpoint | Description | Method |
|---|---|---|
| getTotem | Get Totem details | GET |
| getTotems | Get multiple Totems | GET |
| getAllTotems | Get all Totems | GET |
| getTotemIds | Get Totem IDs | GET |
| getTotemsByIssuer | Get Totems by issuer | GET |
| getTotemAccounts | Get Totem holders | GET |
Asset Transfers
| Endpoint | Description | Method |
|---|---|---|
| transferTotem | Transfer Totem | POST |
| increaseTotemShares | Increase Totem shares | POST |
Trading
| Endpoint | Description | Method |
|---|---|---|
| placeAskOrder | Place ask order | POST |
| placeBidOrder | Place bid order | POST |
| getAskOrders | Get ask orders | GET |
| getBidOrders | Get bid orders | GET |
| getAskOrder | Get ask order | GET |
| getBidOrder | Get bid order | GET |
| cancelAskOrder | Cancel ask order | POST |
| cancelBidOrder | Cancel bid order | POST |
Dividends
| Endpoint | Description | Method |
|---|---|---|
| dividendPayment | Pay dividends | POST |
| getTotemDividends | Get dividends | GET |
| getTotemTransfers | Get transfers | GET |
| getTotemHistory | Get history | GET |
Phasing Control
| Endpoint | Description | Method |
|---|---|---|
| setPhasingTotemControl | Set phasing control | POST |
| getPhasingTotemControl | Get phasing control | GET |
| getTotemPhasedTransactions | Get phased transactions | GET |
Totem Properties
| Endpoint | Description | Method |
|---|---|---|
| setTotemProperty | Set property | POST |
| getTotemProperties | Get properties | GET |
| deleteTotemProperty | Delete property | POST |
Totem Approvals
| Endpoint | Description | Method |
|---|---|---|
| requestTotemApproval | Request approval | POST |
| processTotemApproval | Process approval | POST |
| suspendTotemApproval | Suspend approval | POST |
| getTotemApprovalRequest | Get approval request | GET |
| getTotemApprovalStatus | Get approval status | GET |
Search
| Endpoint | Description | Method |
|---|---|---|
| searchTotems | Search Totems | GET |
Totem Types
- NON_FUNGIBLE (0x01): Unique tokens (NFTs)
- NON_SPLITTABLE (0x02): Fixed supply tokens
- SPLITTABLE (0x04): Divisible tokens with supply increase capability