class CardanoWallet::Byron::Migrations

Byron migrations @see input-output-hk.github.io/cardano-wallet/api/edge/#tag/Byron-Migrations

Public Instance Methods

migrate(wid, passphrase, addresses) click to toggle source

Migrate all funds from Byron wallet. @see input-output-hk.github.io/cardano-wallet/api/edge/#operation/migrateByronWallet @param wid [String] wallet id @param passphrase [String] wallet's passphrase @param [Array] array of addresses

# File lib/cardano_wallet/byron.rb, line 332
def migrate(wid, passphrase, addresses)
  self.class.post("/byron-wallets/#{wid}/migrations",
                  body: { addresses: addresses,
                          passphrase: passphrase }.to_json,
                  headers: { 'Content-Type' => 'application/json' })
end
plan(wid, addresses) click to toggle source

Get migration plan @see input-output-hk.github.io/cardano-wallet/api/edge/#operation/createByronWalletMigrationPlan

# File lib/cardano_wallet/byron.rb, line 321
def plan(wid, addresses)
  self.class.post("/byron-wallets/#{wid}/migrations/plan",
                  body: { addresses: addresses }.to_json,
                  headers: { 'Content-Type' => 'application/json' })
end