Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
foundation
scripts
Commits
bf0e7831
Commit
bf0e7831
authored
Apr 8, 2022
by
Baltasar Aroso
Browse files
Options
Downloads
Patches
Plain Diff
add api call to get ss58format
parent
971c2a0e
Branches
Branches containing commit
No related tags found
1 merge request
!2
Feat/accounts json
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+4
-1
4 additions, 1 deletion
.gitignore
accounts-json/backup.json
+0
-1
0 additions, 1 deletion
accounts-json/backup.json
accounts-json/index.js
+1
-1
1 addition, 1 deletion
accounts-json/index.js
accounts-json/mnemonics.txt
+4
-2
4 additions, 2 deletions
accounts-json/mnemonics.txt
with
9 additions
and
5 deletions
.gitignore
+
4
−
1
View file @
bf0e7831
...
...
@@ -17,3 +17,6 @@ localnet/chain.log
# logs
**/logs
# extra files
**/backup.json
\ No newline at end of file
This diff is collapsed.
Click to expand it.
accounts-json/backup.json
deleted
100644 → 0
+
0
−
1
View file @
971c2a0e
{
"encoded"
:
"ALLQecdQhST0wm3lc5CFUi42gWnHpy7Ah6yplAGHdjUAgAAAAQAAAAgAAAATc7jMpHUHDGHCCZL1HhcINuO1QnJKLSbDsbedRTPGjE5HJr/Xt4Zcz1BjT0JNiiQBMtldHU1g31gqp2mLWEj4axDl4Gffc+Xo6FZ73fNvGbmP3yXdJ4gYxtZIOqdgJkEUzNEYjK3k04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m+53u1U0Gk/mBITqkeRxcCFO8x51ykja89J/4VMk2R0d4AMFQCoQ8ERHER6YjpilZqRqq9e3WtkZpb1m/I90y+KLVakgs8zNp1YUz2HtztccocfYy3cuz3OXeBaNoCxI3EY4y1OT5FrNmjJqomFEhbz9zhpudVx1lpsug=="
,
"encoding"
:{
"content"
:[
"batch-pkcs8"
],
"type"
:[
"scrypt"
,
"xsalsa20-poly1305"
],
"version"
:
"3"
},
"accounts"
:[{
"address"
:
"6Zh9bmH3Lx4MpoUu2gUetkPh3N8zGtXJqdWJbKaBQ5NSzcP5"
,
"meta"
:{
"name"
:
"account 1"
,
"whenCreated"
:
1649289257866
}},{
"address"
:
"6VfqRnsA9WLijEJHddAiMb3gVxztynqvEEsops82P4UCF294"
,
"meta"
:{
"name"
:
"account 2"
,
"whenCreated"
:
1649289258184
}}]}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
accounts-json/index.js
+
1
−
1
View file @
bf0e7831
...
...
@@ -97,7 +97,7 @@ async function main() {
// Load Keyring
keyring
.
loadAll
({
genesisHash
:
api
.
genesisHash
,
isDevelopment
:
false
,
ss58Format
:
55
,
type
:
'
sr25519
'
,
genesisHash
:
api
.
genesisHash
,
isDevelopment
:
false
,
ss58Format
:
api
.
consts
.
system
.
ss58Prefix
,
type
:
'
sr25519
'
,
});
// Add mnemonics
...
...
This diff is collapsed.
Click to expand it.
accounts-json/mnemonics.txt
+
4
−
2
View file @
bf0e7831
safe ability snap false nature punch park luxury nasty diary angry giraffe cabbage pulse clog guard couple swap grunt dress caught bar mimic category
seat patient film pair poverty inch defense frost intact dentist toward love arm brisk fade physical slender flash source skirt clip cycle modify burger
\ No newline at end of file
uniform seed believe approve window mammal bronze naive sphere into vacuum kitten excite world garden appear noodle syrup tongue public slogan search sea arctic
basket galaxy awkward photo zero tent around where light define foster battle month remove patient heart honey clinic scare audit reunion problem broccoli eye
return logic scheme cram boy rate kitchen south obvious heart exercise apology roast chaos excite hen bamboo address auction become staff oyster inquiry cute
swing city brief acid sibling canal magic domain pause cage beauty slot issue average reject text donate icon nice expire juice sing until indicate
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment