cancelOffer
Cancels an offer.
Cancels an offer.
post
/cancel_offer
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/cancel_offer" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
cancelOffers
Cancels multiple offers.
Cancels multiple offers.
post
/cancel_offers
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/cancel_offers" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
catAssetIdToName
Gets the name and wallet id associated with an asset id.
Gets the name and wallet id associated with an asset id.
post
/cat_asset_id_to_name
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/cat_asset_id_to_name" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
catGetAssetId
Gets the asset id of the CAT wallet.
Gets the asset id of the CAT wallet.
post
/cat_get_asset_id
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/cat_get_asset_id" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
catGetName
Gets the name of the CAT wallet.
Gets the name of the CAT wallet.
post
/cat_get_name
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/cat_get_name" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
catSetName
Sets the name of the CAT wallet.
Sets the name of the CAT wallet.
post
/cat_set_name
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/cat_set_name" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
catSpend
Spends an amount from the given wallet.
Spends an amount from the given wallet.
post
/cat_spend
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/cat_spend" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK response with a transaction record and a transaction id.
checkOfferValidity
Checks the validity of an offer.
Checks the validity of an offer.
post
/check_offer_validity
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/check_offer_validity" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
createOfferForIds
Creates an offer.
Creates an offer for the given set of wallet id and amount pairs.
post
/create_offer_for_ids
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/create_offer_for_ids" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
getAllOffers
Retrieves offers.
Retrieves offers.
post
/get_all_offers
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/get_all_offers" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
getCatList
Retrieves the list of CATs.
Retrieves the list of CATs.
post
/get_cat_list
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/get_cat_list" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
getOffer
Retrieves an offer.
Retrieves an offer.
post
/get_offer
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/get_offer" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
getOfferSummary
Get the summary of a given offer.
Get the summary of a given offer.
post
/get_offer_summary
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/get_offer_summary" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
getOffersCount
Retrieves the number of offers.
Retrieves the number of offers.
post
/get_offers_count
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/get_offers_count" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
getStrayCats
Get a list of all unacknowledged CATs.
Get a list of all unacknowledged CATs.
post
/get_stray_cats
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/get_stray_cats" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
selectCoins
Returns a set of coins that can be used for generating a new transaction.
Returns a set of coins that can be used for generating a new transaction.
post
/select_coins
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/select_coins" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
takeOffer
Takes an offer.
Takes an offer.
post
/take_offer
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/take_offer" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
CRCATs
crcatApprovePending
Moving any "pending approval" CR-CATs into the spendable balance of the wallet.
Moving any "pending approval" CR-CATs into the spendable balance of the wallet.
post
/crcat_approve_pending
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/crcat_approve_pending" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
Coins
getCoinRecords
Retrieves the coins that match given filter criteria.
Retrieves the coins that match given filter criteria
post
/get_coin_records
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/get_coin_records" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
getCoinRecordsByNames
Retrieves the coins for given coin IDs.
Retrieves the coins for given coin IDs, by default returns unspent coins.
post
/get_coin_records_by_names
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/get_coin_records_by_names" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
DAOWallet
daoAddFundsToTreasury
Adds funds to a DAO's treasury.
Adds funds to a DAO's treasury
post
/dao_add_funds_to_treasury
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dao_add_funds_to_treasury" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
daoAdjustFilterLevel
Adjusts the DAO filter level.
Adjusts the DAO filter level
post
/dao_adjust_filter_level
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dao_adjust_filter_level" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
daoCloseProposal
Closes a DAO proposal.
Closes a DAO proposal
post
/dao_close_proposal
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dao_close_proposal" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
daoCreateProposal
Creates a DAO proposal.
Creates a DAO proposal
post
/dao_create_proposal
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dao_create_proposal" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
daoExitLockup
Exits the DAO lockup period.
Exits the DAO lockup period
post
/dao_exit_lockup
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dao_exit_lockup" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
daoFreeCoinsFromFinishedProposals
Frees coins from proposals that are finished.
Frees coins from proposals that are finished
post
/dao_free_coins_from_finished_proposals
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dao_free_coins_from_finished_proposals" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
daoGetProposalState
Retrieves the state of a DAO proposal
Use this to figure out whether a proposal has passed or failed and whether it can be closed Given a proposal_id: - if required yes votes are recorded then proposal passed. - if timelock and attendance are met then proposal can close Returns a dict of passed and closable bools, and the remaining votes/blocks needed Note that a proposal can be in a passed and closable state now, but become failed if a large number of 'no' votes are received before the soft close is reached.
post
/dao_get_proposal_state
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dao_get_proposal_state" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
daoGetProposals
Get all proposals for a given dao wallet.
Get all proposals for a given dao wallet
post
/dao_get_proposals
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dao_get_proposals" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
daoGetRules
Retrieves the rules of a DAO wallet.
Retrieves the rules of a DAO wallet
post
/dao_get_rules
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dao_get_rules" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
daoGetTreasuryBalance
Retrieves the balance of a DAO's treasury.
Retrieves the balance of a DAO's treasury
post
/dao_get_treasury_balance
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dao_get_treasury_balance" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
daoGetTreasuryId
Retrieves the treasury id of a DAO wallet.
Retrieves the treasury id of a DAO wallet
post
/dao_get_treasury_id
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dao_get_treasury_id" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
daoParseProposal
Parses a DAO proposal.
Parses a DAO proposal
post
/dao_parse_proposal
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dao_parse_proposal" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
daoSendToLockup
Sends the DAO to lockup.
Sends the DAO to lockup
post
/dao_send_to_lockup
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dao_send_to_lockup" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
daoVoteOnProposal
Vote on a DAO proposal.
Vote on a DAO proposal
post
/dao_vote_on_proposal
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dao_vote_on_proposal" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
DIDWallet
didCreateAttest
Creates an attestment for the given DID wallet.
Creates an attestment for the given DID wallet.
post
/did_create_attest
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/did_create_attest" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
didCreateBackupFile
Creates a backup file for the given DID wallet.
Creates a backup file for the given DID wallet.
post
/did_create_backup_file
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/did_create_backup_file" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
didFindLostDid
Recover a missing or unspendable DID wallet by a coin id of the DID.
Recover a missing or unspendable DID wallet by a coin id of the DID
post
/did_find_lost_did
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/did_find_lost_did" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
didGetCurrentCoinInfo
Gets information about the DID wallets current coin.
Gets information about the DID wallets current coin.
post
/did_get_current_coin_info
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/did_get_current_coin_info" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
didGetDid
Retrieves the distributed identity for a given wallet.
Retrieves the distributed identity for a given wallet.
post
/did_get_did
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/did_get_did" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
didGetInfo
Retrieves information about a DID.
Retrieves information about a DID
post
/did_get_info
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/did_get_info" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
didGetInformationNeededForRecovery
Retrieves the recovery information needed for the given DID wallet.
Retrieves the recovery information needed for the given DID wallet.
post
/did_get_information_needed_for_recovery
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/did_get_information_needed_for_recovery" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
didGetMetadata
Gets the metadata of a DID wallet.
Gets the metadata of a DID wallet.
post
/did_get_metadata
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/did_get_metadata" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
didGetPubkey
Retrieves the public key for the given DID wallet.
Retrieves the public key for the given DID wallet.
post
/did_get_pubkey
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/did_get_pubkey" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
didGetRecoveryList
Retrieves the recovery list for a given DID wallet.
Retrieves the recovery list for a given DID wallet.
post
/did_get_recovery_list
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/did_get_recovery_list" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
didGetWalletName
Gets the name of a DID wallet.
Gets the name of a DID wallet.
post
/did_get_wallet_name
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/did_get_wallet_name" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
didMessageSpend
Spends a DID message.
Spends a DID message
post
/did_message_spend
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/did_message_spend" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
didRecoverySpend
Spend from the given DID wallet.
Spend from the given DID wallet.
post
/did_recovery_spend
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/did_recovery_spend" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
didSetWalletName
Sets the name of a DID wallet.
Sets the name of a DID wallet.
post
/did_set_wallet_name
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/did_set_wallet_name" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
didTransferDid
Transfer a DID to another owner.
Transfer the given DID wallet to another owner.
post
/did_transfer_did
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/did_transfer_did" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
didUpdateMetadata
Updates the metadata for a DID wallet.
Updates the metadata for a DID wallet.
post
/did_update_metadata
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/did_update_metadata" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
didUpdateRecoveryIds
Updates the recovery ids for a DID wallet.
Updates the recovery ids for a DID wallet.
post
/did_update_recovery_ids
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/did_update_recovery_ids" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
DataLayer
dlVerifyProof
Verifies a proof.
Verify a proof of inclusion for a DL singleton.
post
/dl_verify_proof
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dl_verify_proof" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
DataLayerWallet
createNewDl
Initialize the new data layer wallets.
Initialize the DataLayer Wallet (only one can exist).
post
/create_new_dl
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/create_new_dl" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
dlDeleteMirror
Remove an existing mirror for a specific singleton.
Remove an existing mirror for a specific singleton.
post
/dl_delete_mirror
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dl_delete_mirror" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
dlGetMirrors
Get all of the mirrors for a specific singleton.
Get all of the mirrors for a specific singleton.
post
/dl_get_mirrors
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dl_get_mirrors" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
dlHistory
Get the singleton record for the latest singleton of a launcher ID.
Get the singleton record for the latest singleton of a launcher ID.
post
/dl_history
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dl_history" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
dlLatestSingleton
Get the singleton records that contain the specified root.
Get the singleton records that contain the specified root.
post
/dl_latest_singleton
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dl_latest_singleton" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
dlNewMirror
Add a new on chain message for a specific singleton.
Add a new on chain message for a specific singleton
post
/dl_new_mirror
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dl_new_mirror" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
dlOwnedSingletons
Get all owned singleton records.
Get all owned singleton records.
post
/dl_owned_singletons
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dl_owned_singletons" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
dlSingletonsByRoot
Get the singleton records that contain the specified root.
Get the singleton records that contain the specified root.
post
/dl_singletons_by_root
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dl_singletons_by_root" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
dlStopTracking
Stop tracking the data layer wallets.
Stop tracking the data layer wallet.
post
/dl_stop_tracking
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dl_stop_tracking" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK response without return values
dlTrackNew
Track the new data layer wallet
Track the new data layer wallet.
post
/dl_track_new
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dl_track_new" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK response without return values
dlUpdateMultiple
Update multiple singletons with new merkle roots.
Update multiple singletons with new merkle roots.
post
/dl_update_multiple
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dl_update_multiple" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
dlUpdateRoot
Update a data layer root.
Update a data layer root.
post
/dl_update_root
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/dl_update_root" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
KeyManagement
addKey
Generates a new mnemonic phrase.
Generates a new mnemonic phrase.
post
/add_key
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/add_key" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
checkDeleteKey
Determines if it is safe to delete a private key.
Determines if it is safe to delete a private key. Returns whether it is used for farming, pooling, or has a balance.
post
/check_delete_key
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/check_delete_key" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
deleteKey
Deletes all keys which have the given public key fingerprint.
Deletes all keys which have the given public key fingerprint.
post
/delete_key
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/delete_key" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK response without return values
generateMnemonic
Generates a new mnemonic phrase.
Generates a new mnemonic phrase.
post
/generate_mnemonic
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/generate_mnemonic" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
getLoggedInFingerprint
Retrieves the logged in fingerprint.
Retrieves the logged in fingerprint.
post
/get_logged_in_fingerprint
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/get_logged_in_fingerprint" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
getPrivateKey
Retrieves the private key by fingerprint.
Retrieves the private key by fingerprint.
post
/get_private_key
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/get_private_key" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
getPublicKeys
Retrieves all public keys on the node.
Retrieves all public keys on the node.
post
/get_public_keys
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/get_public_keys" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
logIn
Logs in the wallet with a specific key.
Logs in the wallet with a specific key.
post
/log_in
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/log_in" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
verifySignature
Given a public key, message and signature, verify if it is valid.
Given a public key, message and signature, verify if it is valid.
post
/verify_signature
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/verify_signature" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
walletDeleteAllKeys
Deletes all keys from the keychain.
Deletes all keys from the keychain.
post
/delete_all_keys
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/delete_all_keys" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK response without return values
NFTWallet
nftAddUri
Adds an Uri to an NFT.
Adds a Uri to an NFT.
post
/nft_add_uri
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/nft_add_uri" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
nftCalculateRoyalties
Transfers an NFT to another address.
Transfers an NFT to another address.
post
/nft_calculate_royalties
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/nft_calculate_royalties" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
nftCountNfts
Retrieves the number of NFTs in a wallet.
Retrieves the number of NFTs in a wallet
post
/nft_count_nfts
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/nft_count_nfts" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
nftGetByDid
Gets an NFT wallet by its DID.
Gets an NFT wallet by its DID.
post
/nft_get_by_did
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/nft_get_by_did" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
nftGetInfo
Gets info about an NFT.
Gets info about an NFT.
post
/nft_get_info
Usage
curl -X POST --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://localhost:9256/nft_get_info" \
-d "{}"
Parameters
Name | Description |
---|---|
body * |
Responses
Status: 200 - OK
nftGetNfts
Gets NFTs from a wallet.
Gets NFTs from a wallet.
post
/nft_get_nfts