Skip to main content

API Reference Index

This page provides a comprehensive index of all Shamwari Network API endpoints organized by functionality.

API Tags

Based on APITag.java, endpoints are organized into the following categories:

TagDisplay NameDescription
ACCOUNTSAccountsAccount queries and management
BLOCKSBlocksBlock and chain information
TRANSACTIONSTransactionsTransaction operations
TOKENSTokensToken operations
AEAsset ExchangeTotem creation, transfer, trading
MSBankingMonetary System (currencies)
CONTRACTSContractsSmart contract operations
PHASINGPhasingPhasing and time-locking
SHUFFLINGShufflingPrivacy shuffles
NETWORKNetworkingPeer discovery and management
DEBUGDebugAdministrative functions
UTILSUtilsUtility functions
CERTIFICATECertificatesDigital certificate operations
SUBSCRIPTIONSSubscriptionsSubscription services
AGENT_ATTESTATIONAgentsAgent identity and attestation
MESSAGESMessagesEncrypted messaging
PAYMENTSPaymentsCurrency payment operations
VSVoting And PollingVoting operations
ADDONSAdd-onsAdd-on operations
ACCOUNT_CONTROLAccount CtrlAccount control settings
BETA_CHAIN_CONTROLChain ControlBeta chain control
BIP32Bip32BIP32 key derivation
CREATE_TRANSACTIONTransactionTransaction creation
FORGINGForgingForging operations
INFOServer InfoServer information

Endpoint Catalog

Accounts (ACCOUNTS)

EndpointHTTP MethodDescription
getAccountGETGet account details
getAccountIdGETGet account ID from passphrase
getBalanceGETGet account balance
getEffectiveBalanceGETGet effective balance
getGuaranteedBalanceGETGet guaranteed balance
getAccountLessorsGETGet account lessors
getAccountPublicKeyGETGet account public key
getAccountLedgerGETGet account ledger entries
getAccountLedgerEntryGETGet specific ledger entry
getAccountBlocksGETGet account blocks
getAccountBlockCountGETGet account block count
getAccountBlockIdsGETGet account block IDs
getAccountPropertiesGETGet account properties
setAccountPropertyPOSTSet account property
deleteAccountPropertyPOSTDelete account property
getAccountCurrenciesGETGet account currency holdings
getAccountCurrencyCountGETGet currency count
getAccountTotemsGETGet account totem holdings
getAccountTotemCountGETGet totem count
getAccountCurrencyAccountsGETGet currency payment accounts
getAccountShufflingsGETGet account shufflings
getAccountPhasedTransactionsGETGet phased transactions
getVoterPhasedTransactionsGETGet voter phased transactions
getLinkedPhasedTransactionsGETGet linked phased transactions
getAccountPhasedTransactionCountGETCount phased transactions
getAccountExchangeRequestsGETGet exchange requests
getAccountCurrentAskOrderIdsGETGet current ask order IDs
getAccountCurrentBidOrderIdsGETGet current bid order IDs
getAccountCurrentAskOrdersGETGet current ask orders
getAccountCurrentBidOrdersGETGet current bid orders
getShamwariQKPGETGet ShamwariQKP from passphrase
getAccountPermissionsGETGet account permissions
addAccountPermissionPOSTAdd permission
removeAccountPermissionPOSTRemove permission
registerAccountDomainPOSTRegister account domain
deregisterAccountDomainPOSTDeregister account domain
transferAccountDomainPOSTTransfer account domain
getAccountDomainGETGet account domain
renewAccountDomainPOSTRenew account domain

Blocks (BLOCKS)

EndpointHTTP MethodDescription
getBlockchainStatusGETGet blockchain status
getBlockGETGet block by ID/height
getBlockIdGETGet block ID
getBlocksGETGet blocks by height range
getTimeGETGet server time
getECBlockGETGet EC block
getEpochTimeGETGet epoch time
getStateGETGet node state
getNextBlockGeneratorsGETGet forging schedule

Transactions (TRANSACTIONS, CREATE_TRANSACTION)

EndpointHTTP MethodDescription
sendCoinPOSTSend MTA
sendMessagePOSTSend message
signTransactionPOSTSign transaction
createTransactionPOSTCreate unsigned transaction
broadcastTransactionPOSTBroadcast transaction
getTransactionGETGet transaction by ID
getTransactionBytesGETGet transaction bytes
parseTransactionGETParse transaction bytes
getUnconfirmedTransactionsGETGet unconfirmed transactions
getUnconfirmedTransactionIdsGETGet unconfirmed transaction IDs
getExpectedTransactionsGETGet expected transactions
calculateFullHashGETCalculate transaction hash
calculateFeeGETCalculate transaction fee
approveTransactionPOSTApprove conditional transaction
getAllBroadcastedTransactionsGETGet all broadcasted transactions
getAllWaitingTransactionsGETGet all waiting transactions

Totems / Asset Exchange (AE, CREATE_TRANSACTION)

EndpointHTTP MethodDescription
issueTotemPOSTIssue new Totem
getTotemGETGet Totem by ID
getTotemsGETGet multiple Totems
getAllTotemsGETGet all Totems
getTotemIdsGETGet Totem IDs
getTotemsByIssuerGETGet Totems by issuer
getTotemAccountsGETGet Totem holders
getTotemAccountCountGETGet Totem holder count
getTotemPropertiesGETGet Totem properties
setTotemPropertyPOSTSet Totem property
deleteTotemPropertyPOSTDelete Totem property
transferTotemPOSTTransfer Totem
increaseTotemSharesPOSTIncrease Totem shares
dividendPaymentPOSTPay Totem dividends
setPhasingTotemControlPOSTSet phasing control
getPhasingTotemControlGETGet phasing control
getTotemPhasedTransactionsGETGet phased transactions
getTotemHistoryGETGet Totem history
getTotemTransfersGETGet Totem transfers
getTotemDividendsGETGet Totem dividends
searchTotemsGETSearch Totems
cancelAskOrderPOSTCancel ask order
cancelBidOrderPOSTCancel bid order
deleteTotemSharesPOSTDelete Totem shares

Totem Approvals

EndpointHTTP MethodDescription
requestTotemApprovalPOSTRequest approval
processTotemApprovalPOSTProcess approval
suspendTotemApprovalPOSTSuspend approval
unsuspendTotemApprovalPOSTUnsuspend approval
getTotemApprovalRequestGETGet approval request
getTotemApprovalStatusGETGet approval status
getTotemApprovalComplianceReportGETGet compliance report
getTotemApprovalAuditTrailGETGet audit trail

Monetary System (MS, AE)

EndpointHTTP MethodDescription
issueCurrencyPOSTIssue new currency
getCurrencyGETGet currency by ID
getCurrenciesGETGet currencies
getAllCurrenciesGETGet all currencies
getCurrenciesByIssuerGETGet currencies by issuer
getCurrencyIdsGETGet currency IDs
getCurrencyAccountsGETGet currency payment accounts
getCurrencyAccountCountGETGet currency account count
transferCurrencyPOSTTransfer currency
currencyBuyPOSTBuy currency on DEX
currencySellPOSTSell currency on DEX
getAskOrdersGETGet ask orders
getBidOrdersGETGet bid orders
getAskOrderGETGet ask order
getBidOrderGETGet bid order
getAskOrderIdsGETGet ask order IDs
getBidOrderIdsGETGet bid order IDs
getAllOpenAskOrdersGETGet all open ask orders
getAllOpenBidOrdersGETGet all open bid orders
getAvailableToBuyGETGet available to buy
getAvailableToSellGETGet available to sell
getBuyOffersGETGet buy offers
getSellOffersGETGet sell offers
getOfferGETGet offer
getExpectedBuyOffersGETGet expected buy offers
getExpectedSellOffersGETGet expected sell offers
getExchangeRequestsGETGet exchange requests
getExchangesGETGet exchanges
getAllExchangesGETGet all exchanges
getLastExchangesGETGet last exchanges
getExchangesByOfferGETGet exchanges by offer
getExchangesByExchangeRequestGETGet exchanges by request
dividendPaymentPOSTPay dividends
currencyMintPOSTMint currency
getMintingTargetGETGet minting target
getTotemDividendsGETGet Totem dividends
currencyPaymentPOSTMake currency payment
getCurrencyPaymentsGETGet currency payments
getExpectedCurrencyPaymentsGETGet expected payments
currencyBulkPaymentPOSTBulk currency payment
setChainTaxRatesPOSTSet tax rates
getCurrencyTaxRecordsGETGet tax records

Contracts (CONTRACTS)

EndpointHTTP MethodDescription
uploadContractFilePOSTUpload contract file
downloadContractFileGETDownload contract file
getContractFileGETGet contract file details
getContractFilesGETSearch contract files
getAllContractFilesGETGet all contract files
getGroupContractFilesGETGet group contract files
getAccountContractFilesGETGet account contract files
setContractReferencePOSTLink contract to account
deleteContractReferencePOSTDelete contract reference
getContractReferencesGETGet contract references
verifyContractGETVerify contract
searchContractFilesGETSearch contract files

Phasing & Voting (PHASING, VS)

EndpointHTTP MethodDescription
setPhasingOnlyControlPOSTSet account phasing control
getPhasingOnlyControlGETGet account phasing control
getAllPhasingOnlyControlsGETGet all phasing controls
parsePhasingParamsGETParse phasing parameters
getPhasingPollGETGet phasing poll
getPhasingPollVotesGETGet poll votes
getPhasingPollVoteGETGet specific vote
getVoterPhasedTransactionsGETGet voter phased transactions
getLinkedPhasedTransactionsGETGet linked transactions
getHashedSecretPhasedTransactionsGETGet hashed secret phasing

Shuffling (SHUFFLING)

EndpointHTTP MethodDescription
shufflingCreatePOSTCreate shuffling
shufflingRegisterPOSTRegister for shuffling
shufflingProcessPOSTProcess shuffling
shufflingVerifyPOSTVerify shuffling
shufflingCancelPOSTCancel shuffling
getShufflingGETGet shuffling info
getShufflingParticipantsGETGet participants
getAllShufflingsGETGet all shufflings
getAccountShufflingsGETGet account shufflings
getAssignedShufflingsGETGet assigned shufflings
getHoldingShufflingsGETGet holding shuffles
startShufflerPOSTStart shuffler
stopShufflerPOSTStop shuffler
getShufflersGETGet all shufflers

Payments (PAYMENTS)

EndpointHTTP MethodDescription
currencyPaymentPOSTMake currency payment
getCurrencyPaymentsGETGet currency payments
getExpectedCurrencyPaymentsGETGet expected payments
currencyBulkPaymentPOSTBulk currency payment

Loans (MS)

EndpointHTTP MethodDescription
loanApplicationPOSTApply for loan
lendCurrencyPOSTLend currency
loanRepaymentPOSTRepay loan
rescueLoanPOSTRescue loan
getLoanGETGet loan details
getLoanApplicationsGETGet loan applications
getOverdueLoansGETGet overdue loans
getPaidLoansGETGet paid loans
getActiveLoansGETGet active loans

Subscriptions (SUBSCRIPTIONS)

EndpointHTTP MethodDescription
createSubscriptionServicePOSTCreate subscription service
subscriptionPaymentPOSTMake subscription payment
updateSubscriptionPlansPOSTUpdate subscription plans
getSubscriptionServicesGETGet subscription services
getSubscriptionServiceGETGet specific service
getSubscriptionPaymentsGETGet subscription payments
getAccountSubscriptionsGETGet account subscriptions
searchSubscriptionServicesGETSearch subscription services

Certificates (CERTIFICATE)

EndpointHTTP MethodDescription
issueDigitalCertificatePOSTIssue certificate
getDigitalCertificateGETGet certificate
getDigitalCertificatesGETGet all certificates
verifyDigitalCertificateGETVerify certificate
downloadCertificateGETDownload certificate

Agent Attestation (AGENT_ATTESTATION)

EndpointHTTP MethodDescription
getAgentCertificateGETGet agent certificate
getActiveAgentCertificateGETGet active certificate
getAgentCertificatesGETGet all certificates
issueAgentAttestationPOSTIssue attestation
verifyAgentAttestationGETVerify attestation
issueAgentTokenPOSTIssue agent token
introspectAgentTokenGETIntrospect token
revokeAgentTokenPOSTRevoke token
revokeCertificatePOSTRevoke certificate
agentOpenIdConfigurationGETGet OpenID config
signDataPOSTSign data

Messages

EndpointHTTP MethodDescription
sendMessagePOSTSend message
readMessageGETRead message

Network (NETWORK)

EndpointHTTP MethodDescription
getPeersGETGet peer list
getPeerGETGet specific peer
addPeerPOSTAdd peer
blacklistPeerPOSTBlacklist peer
dumpPeersGETDump peer list
managePeersNetworkingPOSTManage networking

Utilities (UTILS)

EndpointHTTP MethodDescription
encryptToPOSTEncrypt message
decryptFromGETDecrypt message
generateTokenGETGenerate token
decodeTokenGETDecode token
generateFileTokenGETGenerate file token
decodeFileTokenGETDecode file token
decodeQRCodeGETDecode QR code
encodeQRCodePOSTEncode QR code
hashGETCalculate hash
fullHashToIdGETConvert hash to ID
rsConvertGETConvert RS address
hexConvertGETConvert hex
longConvertGETConvert long
detectMimeTypeGETDetect MIME type
evaluateExpressionPOSTEvaluate expression
signDataPOSTSign data
verifySignatureGETVerify signature
deriveAccountFromSeedGETDerive account from seed
deriveKeysGETDerive keys
splitSecretPOSTSplit secret
combineSecretGETCombine secret
processVoucherPOSTProcess voucher
calculateFeeGETCalculate fee
calculateFullHashGETCalculate full hash
getTimeGETGet server time
getEpochTimeGETGet epoch time
getMyInfoGETGet node info
getPluginsGETGet plugins
getConfigurationGETGet configuration

Debug & Admin (DEBUG)

EndpointHTTP MethodDescription
setConfigurationPOSTUpdate configuration
getConfigurationGETGet configuration
setLoggingPOSTSet logging level
getLogGETGet log entries
getStackTracesGETGet stack traces
fullResetPOSTFull reset
popOffPOSTPop blocks
scanPOSTScan blockchain
shutdownPOSTShutdown node
luceneReindexPOSTReindex Lucene
clearUnconfirmedTransactionsPOSTClear pending transactions
requeueUnconfirmedTransactionsPOSTRequeue transactions
rebroadcastUnconfirmedTransactionsPOSTRebroadcast transactions
getAllBroadcastedTransactionsGETGet broadcasted transactions
getAllWaitingTransactionsGETGet waiting transactions

Chain Control

EndpointHTTP MethodDescription
setAutonomousAccountControlPOSTSet account control
updateAutonomousAccountControlPOSTUpdate control
getAutonomousAccountControlGETGet account control
setAccountInfoPOSTSet account info
setAccountPropertyPOSTSet account property
deleteAccountPropertyPOSTDelete account property

Binder & Fees (BINDINGS, FEES)

EndpointHTTP MethodDescription
startBinderPOSTStart binder
stopBinderPOSTStop binder
getBindersGETGet binders
bindTransactionsPOSTBind transactions
getBinderRatesGETGet binder rates
getAllBinderRatesGETGet all rates
blacklistBinderPOSTBlacklist binder
addBindingRulePOSTAdd binding rule
getBindingOptionsGETGet binding options

Forging (FORGING)

EndpointHTTP MethodDescription
startForgingPOSTStart forging
stopForgingPOSTStop forging
getForgingGETGet forging status

JSON Response Models

Response data is structured according to JSONData.java:

  • Account responses: Use JSONData.putAccount(), JSONData.balance()
  • Totem responses: Use JSONData.totem(), JSONData.accountTotem()
  • Currency responses: Use JSONData.currency(), JSONData.coin()
  • Transaction responses: Use JSONData.transaction(), JSONData.unconfirmedTransaction()
  • Block responses: Use JSONData.block()
  • Shuffling responses: Use JSONData.shuffling(), JSONData.participant()
  • Phasing responses: Use JSONData.phasingPoll(), JSONData.phasingPollVote()
  • Certificate responses: Use JSONData.certificate()
  • Contract responses: Use JSONData.contractFile(), JSONData.contractReference()