Skip to content

Commit

Permalink
feat(walletMethods): wallet method definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Kraszewski committed May 1, 2018
1 parent 9993574 commit bc97309
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- Wallet method definitions.

### Changed
- Rename `RPC._request` to `RPC.request`, as it can be used for not implemented RPC methods.

39 changes: 39 additions & 0 deletions src/walletMethods.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
'use strict';

// Definition of all wallet methods: https://getmonero.org/resources/developer-guides/wallet-rpc.html

export const GET_BALANCE = 'getbalance';
export const GETADDRESS = 'getaddress';
export const GETHEIGHT = 'getheight';
export const TRANSFER = 'transfer';
export const TRANSFER_SPLIT = 'transfer_split';
export const SWEEP_DUST = 'sweep_dust';
export const SWEEP_ALL = 'sweep_all';
export const STORE = 'store';
export const GET_PAYMENTS = 'get_payments';
export const GET_BULK_PAYMENTS = 'get_bulk_payments';
export const GET_TRANSFERS = 'get_transfers';
export const GET_TRANSFER_BY_TXID = 'get_transfer_by_txid';
export const INCOMING_TRANSFERS = 'incoming_transfers';
export const QUERY_KEY = 'query_key';
export const MAKE_INTEGRATED_ADDRESS = 'make_integrated_address';
export const SPLIT_INTEGRATED_ADDRESS = 'split_integrated_address';
export const STOP_WALLET = 'stop_wallet';
export const MAKE_URI = 'make_uri';
export const PARSE_URI = 'parse_uri';
export const RESCAN_BLOCKCHAIN = 'rescan_blockchain';
export const SET_TX_NOTES = 'set_tx_notes';
export const GET_TX_NOTES = 'get_tx_notes';
export const SIGN = 'sign';
export const VERIFY = 'verify';
export const EXPORT_KEY_IMAGES = 'export_key_images';
export const IMPORT_KEY_IMAGES = 'import_key_images';
export const GET_ADDRESS_BOOK = 'get_address_book';
export const ADD_ADDRESS_BOOK = 'add_address_book';
export const DELETE_ADDRESS_BOOK = 'delete_address_book';
export const RESCAN_SPENT = 'rescan_spent';
export const START_MINING = 'start_mining';
export const STOP_MINING = 'stop_mining';
export const GET_LANGUAGES = 'get_languages';
export const CREATE_WALLET = 'create_wallet';
export const OPEN_WALLET = 'open_wallet';

0 comments on commit bc97309

Please sign in to comment.