🔑 Create Wallet
🚨 Read Before 🚨
New Wallet
- Python3
- Node.js
- Web
from lunespy.wallet import wallet_factory
wallet = wallet_factory()
import lunesjs from "lunesjs"
const wallet = lunesjs.walletFactory({})
👻
From seed
- Python3
- Node.js
- Web
from lunespy.wallet import wallet_factory
wallet = wallet_factory(
seed="scrub guard swim catch range upon dawn ensure segment alpha sentence spend effort bar benefit"
)
import lunesjs from "lunesjs"
const wallet = lunesjs.walletFactory({
seed: "scrub guard swim catch range upon dawn ensure segment alpha sentence spend effort bar benefit"
})
Comming Soon
From private key
- Python3
- Node.js
- Web
from lunespy.wallet import wallet_factory
wallet = wallet_factory(
private_key="BHqy61X4HMNoyJUcvkbZLomqeFqwq7QtYecWUe3hoazX"
)
import lunesjs from "lunesjs"
const wallet = lunesjs.walletFactory({
privateKey: "BHqy61X4HMNoyJUcvkbZLomqeFqwq7QtYecWUe3hoazX"
})
Comming Soon
Full Example
- Python3
- Node.js
- Web
from lunespy.wallet import wallet_factory
wallet = wallet_factory(
# you can create a seed with any string
seed="scrub guard swim catch range upon dawn ensure segment alpha sentence spend effort bar benefit",
# only if it doesn't pass the seed
private_key="BHqy61X4HMNoyJUcvkbZLomqeFqwq7QtYecWUe3hoazX",
# 1 for mainnet, 0 fo testnet
chain=1,
# 0 by default, but can go up to
nonce=0,
# number of words of the seed, only when creating a new seed
seed_len=15,
)
import lunesjs from "lunesjs"
const wallet = wallet_factory({
// you can create a seed with any string
seed: "scrub guard swim catch range upon dawn ensure segment alpha sentence spend effort bar benefit",
// only if it doesn't pass the seed
private_key: "BHqy61X4HMNoyJUcvkbZLomqeFqwq7QtYecWUe3hoazX",
// 1 for mainnet, 0 fo testnet
chain: 1,
// 0 by default, but can go up to
nonce: 0,
// number of words of the seed, only when creating a new seed
seed_len: 15,
})
Comming Soon