|
| 1 | +--- |
| 2 | +id: blockchain-node |
| 3 | +title: Blockchain Node Migration Guide |
| 4 | +pagination_label: Blockchain Node |
| 5 | +sidebar_label: Blockchain Node |
| 6 | +description: Helium Blockchain Node Migration Documentation |
| 7 | +image: https://docs.helium.com/img/link-image.png |
| 8 | +slug: /solana/migration/blockchain-node |
| 9 | +--- |
| 10 | + |
| 11 | +import useBaseUrl from '@docusaurus/useBaseUrl' |
| 12 | +import LegacyContentBanner from '@site/src/theme/LegacyContentBanner' |
| 13 | + |
| 14 | +<LegacyContentBanner /> |
| 15 | + |
| 16 | +:::warning Updated for Solana Mainnet |
| 17 | + |
| 18 | +The description provided below has been updated to reflect Solana Mainnet. |
| 19 | + |
| 20 | +::: |
| 21 | + |
| 22 | +## Migrating wallet to Solana |
| 23 | + |
| 24 | +As of version [1.1.88](https://github.com/helium/blockchain-node/releases/tag/1.1.88) users can |
| 25 | +migrate their `blockchain-node` wallet to a Solana Paper Compatible Wallet. Follow the below |
| 26 | +instructions to migrate your wallet on mainnet. |
| 27 | + |
| 28 | +1. Unlock wallet. |
| 29 | + |
| 30 | +``` |
| 31 | +% http -b :4467 jsonrpc=2.0 id=1 method=wallet_unlock params:='{"address": "13cQ6QUDvebHAppdmLYu9KXJvNZS9voVQCn8XrMbBemiLJ3r8Z5", "password": "[snipped]"}' |
| 32 | +{"id":"1","jsonrpc":"2.0","result":true} |
| 33 | +``` |
| 34 | + |
| 35 | +2. Export secret. This exports your secret to a solana.json file. |
| 36 | + |
| 37 | +``` |
| 38 | +$ http -b :4467 jsonrpc=2.0 id=1 method=wallet_export_secret params:='{"address": "13cQ6QUDvebHAppdmLYu9KXJvNZS9voVQCn8XrMbBemiLJ3r8Z5", "path": "/var/data/13cQ6QUDvebHAppdmLYu9KXJvNZS9voVQCn8XrMbBemiLJ3r8Z5.solana.json"}' |
| 39 | +{"id":"1","jsonrpc":"2.0","result":true} |
| 40 | +``` |
| 41 | + |
| 42 | +3. Get your Solana address. |
| 43 | + |
| 44 | +``` |
| 45 | +$ http -b https://migration.web.helium.io/helium/13cQ6QUDvebHAppdmLYu9KXJvNZS9voVQCn8XrMbBemiLJ3r8Z5 |
| 46 | +{ |
| 47 | + "solanaAddress": "6ucMsEXv7KLW9V6dfGYAsx5PF4yy2hAB79nURwTuuzgN" |
| 48 | +} |
| 49 | +``` |
| 50 | + |
| 51 | +4. Verify your Solana Public Key. |
| 52 | + |
| 53 | +``` |
| 54 | +$ solana-keygen pubkey /var/data/13cQ6QUDvebHAppdmLYu9KXJvNZS9voVQCn8XrMbBemiLJ3r8Z5.solana.json |
| 55 | +6ucMsEXv7KLW9V6dfGYAsx5PF4yy2hAB79nURwTuuzgN |
| 56 | +``` |
| 57 | + |
| 58 | +5. Get the list of serialized transactions, which should be sent to Solana: |
| 59 | + |
| 60 | +``` |
| 61 | +$ http -b https://migration.web.helium.io/migrate/13cQ6QUDvebHAppdmLYu9KXJvNZS9voVQCn8XrMbBemiLJ3r8Z5?limit=1000&offset=0 |
| 62 | +
|
| 63 | +``` |
| 64 | + |
| 65 | +6. Submit the transactions to Solana. You can see typescript code demonstrating how to use this |
| 66 | + [here](https://github.com/helium/helium-program-library/blob/master/packages/migration-service/src/test-submit.ts#L37). |
| 67 | + |
| 68 | +Alternatively, you can use the |
| 69 | +[Migration Widget](/solana/migration/exchange#mapping-helium-wallets-to-solana-wallets) or |
| 70 | +[command line utility](https://github.com/helium/helium-program-library/releases/tag/v0.0.27-migration-cli) |
| 71 | +for steps 5-6. Example command provided below for the command line utility: |
| 72 | + |
| 73 | +``` |
| 74 | +$ env MIGRATION_SERVICE_URL=https://migration.web.helium.io env SOLANA_URL=https:/api.mainnet-beta.solana.com env SOLANA_WSS_URL=wss://api.mainnet-beta.solana.com ./migration-tx-executor --wallet 6ucMsEXv7KLW9V6dfGYAsx5PF4yy2hAB79nURwTuuzgN |
| 75 | +``` |
| 76 | + |
| 77 | +7. Verify your token balance on devnet using a public explorer. Solana Explorer listed below. |
| 78 | + |
| 79 | +``` |
| 80 | +https://explorer.solana.com/address/6ucMsEXv7KLW9V6dfGYAsx5PF4yy2hAB79nURwTuuzgN |
| 81 | +``` |
0 commit comments