You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was working on integrating albedo in my dapp using the albedo intent library.
But when I create signature using the Albedo Intent tx , it fails due to bad AUTH but when done using the stellar sdk signing using secret keypair , it works fine.
Attaching my code snippet for reference for the functions that I am using -
`// src/services/staking.ts
import { AlbedoWallet } from '@/services/wallets/AlbedoWallet';
import { nativeToScVal, Horizon, rpc, TransactionBuilder, Networks, Contract, Transaction } from 'stellar-sdk';
I was working on integrating albedo in my dapp using the albedo intent library.
But when I create signature using the Albedo Intent tx , it fails due to bad AUTH but when done using the stellar sdk signing using secret keypair , it works fine.
Attaching my code snippet for reference for the functions that I am using -
`// src/services/staking.ts
import { AlbedoWallet } from '@/services/wallets/AlbedoWallet';
import { nativeToScVal, Horizon, rpc, TransactionBuilder, Networks, Contract, Transaction } from 'stellar-sdk';
const STAKING_CONTRACT_ADDRESS = 'CD4NK6ZV6MGJBQZA66LJPTM5NMDFLHYLBUCDMTG5KK223D2DLVULXJ5H';
export const stakeAssets = async (amount: string, wallet: AlbedoWallet) => {
try {
// Ensure the wallet is connected
const address = await wallet.getPublicKey();
if (!address) {
throw new Error("Wallet is not connected");
}
};
`
Albedo Sign Transaction -
`async signTransaction(transaction: Transaction): Promise {
if (!this.publicKey) {
throw new Error('Wallet not connected');
}
}`
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: