Wallet API
Last updated
Last updated
Both the wallet and server use RPC over same endpoint except that all wallet methods are prefixed with wallet.
walletexport
retrieve the current state of the spaces daemon
Params
Name | Type | Description |
---|---|---|
Example Response
walletexport
retrieve the current state of the spaces daemon
Params
Name | Type | Description |
---|---|---|
Example Response
walletgetinfo
retrieve the current state of the spaces daemon
Params
Example Response
walletgetbalance
get the wallet balance
Params
Response
Can be passed to walletsendrequest
to create one or multiple transactions
A single wallet request
walletsendrequest
send one or multiple requests
Params
Response
walletbumpfee
bumps the fee for the given wallet transaction
Params
walletlistspaces
list all spaces currently owned by the wallet including ones actively in auction
Params
walletlistunspent
list unspent transaction outputs
Params
walletlistauctionouputs
lists all output pairs the can be used during auctions
Params
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Property | Type | Description |
---|---|---|
Property | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
content
string (json)
Same format as export wallet
name
string
Wallet name
name
string
Wallet name
wallet
string
Wallet name
auction_outputs
number (optional)
Create the specified number of auction outputs. These are output pairs used during bid transactions . If null, it will create the minimum number required to satisfy the requests.
requests
JSON array of WalletRequests
Bundles one or multiple requests
fee_rate
number (optional)
Fee rate in sat/kwu. If null, it will attempt to use estimatesmartfee
instead.
dust
number (optional)
Custom dust amount to use for auction outputs
force
bool (optional)
Forces the transaction to be created even if it will be rejected by the protocol or results in revoking the space (mainly used for testing)
request
string
The transaction/request type. Can be open
, bid
, register
, sendspaces
, or sendcoins
name
string
The space name
amount
string
Amount in Satoshis. Required for open
, bid
and sendcoins
transactions.
to
string
Required for sendspaces
and sendcoins
requests. Optional for register
transactions.
Can be a Bitcoin address or a space name.
wallet
string
Wallet name
body
JSON
A Batch Request object
wallet
string
Wallet name
txid
string
Transaction id as hex string
fee_rate
number
the new fee rate in sat/vb
wallet
string
Wallet name
wallet
string
Wallet name
wallet
string
Wallet name