demox-labs / aleo-wallet-adapter Goto Github PK
View Code? Open in Web Editor NEWModular TypeScript wallet adapters and components for Aleo applications.
License: MIT License
Modular TypeScript wallet adapters and components for Aleo applications.
License: MIT License
hello,how can I use requestTransaction in my program,this demo is wrong .
If you can reply , I appreciate it.
Hello team,
I was wondering if there is a way to calculate the Aleo Transaction ID
from the transactionId
returned by the requestTransaction
method.
Thank you and best regards.
Hi team, i have a record like:
{
owner: xxx.private,
minter: xxx.private,
prompt: [xxxu128.private, xxxu128.private, xxxu128.private],
nonce: xxxu128.private,
uri: [xxxu128.private, xxxu128.private, xxxu128.private],
_nonce: xxxgroup.public
}
But when I call requestRecords I got the following error:
Hello, i was studying aleo wallet through aleo-wallet-adapter.
And i found some error on 'Requesting Transactions' Code, which is here.
// The record here is an output from the Requesting Records above
const record = `'{"id":"0f27d86a-1026-4980-9816-bcdce7569aa4","program_id":"credits.aleo","microcredits":"200000","spent":false,"data":{}}'`
// Note that the inputs must be formatted in the same order as the Aleo program function expects, otherwise it will fail
const inputs = [JSON.parse(record), "aleo1kf3dgrz9...", `${amount}u64`];
the way you write record
is javascript string literal because of ' '
, so JSON.Parse() is not working.
So i think it is better to remove ' '
, the result would be
const record2 =
{"id":"0f27d86a-1026-4980-9816-bcdce7569aa4","program_id":"credits.aleo","microcredits":"200000","spent":false,"data":{}};
Thank you!
Record for transaction input may be the same as fee,
and the execution will be fail: "Something went wrong: Found duplicate input IDs in the transaction"
Fee record will be selected from a record that is not an input.
Hello, I am having a problem with the demox-labs/wallet-adapter library on React. The problem is with the 'getExecution' function that I get from the useWallet() hook on the adapter-react library. When I try to execute this code:
getExecution('at1gey3eeu62dtaxu4u6w6tkmuh27kt9kt92kxfzaeh6e9tnhp4rg8qz5adx9')
I get this error message:
Error: Transaction not found.
WalletTransactionError: An unknown error occurred. Please try again or report it.
This happens with any transactionId that I pass. The transaction ids are valid when I verify them with this:
https://vm.aleo.org/api/testnet3/transaction/at1gey3eeu62dtaxu4u6w6tkmuh27kt9kt92kxfzaeh6e9tnhp4rg8qz5adx9
And transactions belong to the wallet address I'm connected with.
Hi team.
If I change the connection permissions for my dapp, do I have to unlock the previous permissions in Leo Wallet?
Is it possible to change connection permissions and then override the previous permissions?
I have a transaction that contains 3 transitions as follow:
and the second transition (index 1) has 4 outputs, include two credits record and two disbursement record.
but the return result of requestRecords('aleo_iou_v2_2.aleo') does not have these records.
meanwhile, i can still find that transaction in the activities.
WalletNotReadyError
at LeoWalletAdapter.connect (adapter.ts:177:72)
at onSubmit (UserIcon.vue:18:6)
at callWithErrorHandling (runtime-core.esm-bundler.js:155:22)
at callWithAsyncErrorHandling (runtime-core.esm-bundler.js:164:21)
at HTMLDivElement.invoker (runtime-dom.esm-bundler.js:339:9)
I encountered an error while running on Vue, 127.0.0.1 was accessed normally, but 192.168.2.7 The above error was reported
Just want to raise/continue the discussion here #7. From the discussion, it seems that the new functionality to return a list of transaction works but this won't work for our use case.
What would be your recommended approach if we want to track the transactions made through our platform only?
Recovery Blockchain portfolio balance are Sand to my portfolio wallet
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.