Wallet API
Both the wallet and server use RPC over same endpoint except that all wallet methods are prefixed with wallet.
Import wallet
walletexport
retrieve the current state of the spaces daemon
Params
Name | Type | Description |
---|---|---|
| string (json) | Same format as export wallet |
Example Response
Export wallet
walletexport
retrieve the current state of the spaces daemon
Params
Name | Type | Description |
---|---|---|
| string | Wallet name |
Example Response
Get Wallet Info
walletgetinfo
retrieve the current state of the spaces daemon
Params
Name | Type | Description |
---|---|---|
| string | Wallet name |
Example Response
Get Balance
walletgetbalance
get the wallet balance
Params
Name | Type | Description |
---|---|---|
| string | Wallet name |
Response
Batch Request Type
Can be passed to walletsendrequest
to create one or multiple transactions
Property | Type | Description |
---|---|---|
| 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. |
| JSON array of WalletRequests | Bundles one or multiple requests |
| number (optional) | Fee rate in sat/kwu. If null, it will attempt to use |
| number (optional) | Custom dust amount to use for auction outputs |
| 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) |
Wallet Request Type
A single wallet request
Property | Type | Description |
---|---|---|
| string | The transaction/request type. Can be |
| string | The space name |
| string | Amount in Satoshis. Required for |
| string | Required for Can be a Bitcoin address or a space name. |
Send Request
walletsendrequest
send one or multiple requests
Params
Name | Type | Description |
---|---|---|
| string | Wallet name |
| JSON | A Batch Request object |
Response
Bump Fee
walletbumpfee
bumps the fee for the given wallet transaction
Params
Name | Type | Description |
---|---|---|
| string | Wallet name |
| string | Transaction id as hex string |
| number | the new fee rate in sat/vb |
List Spaces
walletlistspaces
list all spaces currently owned by the wallet including ones actively in auction
Params
Name | Type | Description |
---|---|---|
| string | Wallet name |
List Unspent
walletlistunspent
list unspent transaction outputs
Params
Name | Type | Description |
---|---|---|
| string | Wallet name |
List Auction Outputs
walletlistauctionouputs
lists all output pairs the can be used during auctions
Params
Name | Type | Description |
---|---|---|
| string | Wallet name |
Last updated