
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
@lawallet/sdk
Advanced tools
SDK for LaWallet
pnpm add @lawallet/sdk
import { Wallet, createSigner } from '@lawallet/sdk';
const Alice = new Wallet({ signer: createSigner("ALICE_SECRET_KEY") });
const Bob = new Wallet({ signer: createSigner("BOB_SECRET_KEY") });
Alice.fetch().then(({ lnurlpData, nostr }) => {
// returns lnurlpData -> /.well-known/lnurlp/<user> response
console.log('lnurlpData: ', lnurlpData);
// returns nostr profile
console.log('Nostr Profile: ', nostr);
});
// Returns BTC balance in millisatoshis
Alice.getBalance('BTC').then((bal) => {
console.log(`Account BTC Balance: ${bal} milisatoshis ~ ${(bal / 100000000).toFixed(8)} BTC`);
});
// Returns all transactions
Alice.getTransactions().then((transactions) => {
console.log('Total account transactions: ', transactions.length);
});
Alice.addCard('CARD_NONCE');
Alice.getCards().then(async (cards) => {
if (cards.length) {
// Get first card
let firstCard = cards[0];
// Pause first card
await firstCard.disable();
// Add card limit -> 1000 satoshis every 12 hours
await firstCard.addLimit({
tokenId: 'BTC',
limitType: 'hours',
limitTime: 12,
limitAmount: 1000000,
});
// Set card metadata (name, description)
await firstCard.setMetadata({ name: 'card name', description: 'card description' });
// Prepare the event to transfer the card
const transferEvent = await firstCard.createTransferEvent();
// Claim card with another account
await Bob.claimCardTransfer(transferEvent);
}
});
Alice.generateInvoice({ milisatoshis: 1000 }).then((invoice) => {
// Generate payment request of this wallet
console.log(invoice.pr);
});
Alice.createZap({ milisatoshis: 1000, receiverPubkey: Bob.pubkey }).then((invoice) => {
// Generate zap request -> returns payment request of zap request
const { pr: paymentRequest } = invoice;
// Pay invoice
Alice.payInvoice({
paymentRequest,
onSuccess: () => {
console.log('Invoice paid successfully');
},
});
});
// Send transaction
Alice.sendTransaction({
tokenId: 'BTC',
receiver: 'cuervo@lawallet.ar',
amount: 1000,
comment: 'Hello!',
onSuccess: () => {
console.log('Transaction successfully sent');
},
onError: () => {
console.log('An error occurred with the transaction');
},
});
// Send internal transaction
Alice.sendInternalTransaction({
tokenId: 'BTC',
receiver: 'USER_HEX_PUBKEY',
amount: 1000,
comment: 'Hello!',
onSuccess: () => {
console.log('Transaction successfully sent');
},
onError: () => {
console.log('An error occurred with the transaction');
},
});
Project startup (Linters, Typescript, Dependencies)
Federation
Identity
Card
Wallet
Tests coverage
FAQs
LaWallet software dev kit
We found that @lawallet/sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.