Skip to main content

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​

EndpointDescriptionMethod
issueTotemIssue new TotemPOST
issueCurrencyIssue currencyPOST

Asset Queries​

EndpointDescriptionMethod
getTotemGet Totem detailsGET
getTotemsGet multiple TotemsGET
getAllTotemsGet all TotemsGET
getTotemIdsGet Totem IDsGET
getTotemsByIssuerGet Totems by issuerGET
getTotemAccountsGet Totem holdersGET

Asset Transfers​

EndpointDescriptionMethod
transferTotemTransfer TotemPOST
increaseTotemSharesIncrease Totem sharesPOST

Trading​

EndpointDescriptionMethod
placeAskOrderPlace ask orderPOST
placeBidOrderPlace bid orderPOST
getAskOrdersGet ask ordersGET
getBidOrdersGet bid ordersGET
getAskOrderGet ask orderGET
getBidOrderGet bid orderGET
cancelAskOrderCancel ask orderPOST
cancelBidOrderCancel bid orderPOST

Dividends​

EndpointDescriptionMethod
dividendPaymentPay dividendsPOST
getTotemDividendsGet dividendsGET
getTotemTransfersGet transfersGET
getTotemHistoryGet historyGET

Phasing Control​

EndpointDescriptionMethod
setPhasingTotemControlSet phasing controlPOST
getPhasingTotemControlGet phasing controlGET
getTotemPhasedTransactionsGet phased transactionsGET

Totem Properties​

EndpointDescriptionMethod
setTotemPropertySet propertyPOST
getTotemPropertiesGet propertiesGET
deleteTotemPropertyDelete propertyPOST

Totem Approvals​

EndpointDescriptionMethod
requestTotemApprovalRequest approvalPOST
processTotemApprovalProcess approvalPOST
suspendTotemApprovalSuspend approvalPOST
getTotemApprovalRequestGet approval requestGET
getTotemApprovalStatusGet approval statusGET
EndpointDescriptionMethod
searchTotemsSearch TotemsGET

Totem Types​

  • NON_FUNGIBLE (0x01): Unique tokens (NFTs)
  • NON_SPLITTABLE (0x02): Fixed supply tokens
  • SPLITTABLE (0x04): Divisible tokens with supply increase capability