๐ 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