worldwide-asset-exchange / waxjs Goto Github PK
View Code? Open in Web Editor NEWJavascript API for integration with the WAX Cloud Wallet.
License: MIT License
Javascript API for integration with the WAX Cloud Wallet.
License: MIT License
There is no logout function . Please add it
how to login by session_token
fetch doesnt supported defaultly, we can just use node-fetch but wax cloud wallet auth thing making it really centralised and i cant open auth page from raw nodejs.
My old version of Wax Bloks is apparently too old, and I was sent in this direction to update app in order to unstake
I am using 0.0.7 version of @waxio/waxjs in js.
I am trying to call the wax.login()
it gives me error Cannot read property 'replace' of undefined
I believe there's an error with the library - wax.js . I have tried running the sdk example as well as the full html example as represented in the docs.
Can anyone help me out on this error ?
Thanks
This package is important to the community, we shouldn't let it die. There are still plenty of things to do:
Since a few days I am getting a ForbiddenTransactionException when trying to broadcast a transaction using wax cloud wallet:
{error: "ForbiddenTransactionException", message: "Malicious website blocked"}
I can't find any documentation on the issue - how to unblock my site or do I need to send some kind of api key / token for the transaction broadcast to go through? Updating to version 1.3.0 doesn't help either..
Is there any function defined that could help get_table_rows
hello, is there a c++ version of the library to use in unreal engine?
Hi, for our iOS hybrid app (cordova) we would like to use Wax blockchain. What's the best way to implement the wax login? I guess it has to be in popup browser (similar to FB login) but I can't find any documentation or iOS SDK. Tried asking on the Discord but got nothing back.
I get this error every time I build my project:
Error: bundles\pages\index.js from UglifyJs
Unexpected token: name (WaxJS)
I tried to shut down UglifyJs, as well as replace it with other minifier and even disable minification at all – nothing of that works. Configuring Babel also doesn't help.
Sometimes it works sometimes throw the following message.
transaction declares authority '{"actor":"myaccountname","permission":"active"}', but does not have signatures for it under a provided delay of 0 ms, provided permissions [], provided keys [], and a delay max limit of 3888000000 ms
I check waxjs in console the object is fine, i enable autologin and do check before transaction but failed
let isAutoLoginAvailable = await wax.isAutoLoginAvailable();
if (!isAutoLoginAvailable) {
await wax.login();
}
let userAccount = wax.userAccount;
try {
let result = await wax.api.transact({
actions: [{
account: 'atomicassets',
name: 'transfer',
authorization: [{
actor: userAccount,
permission: 'active',
}],
data: data,
}]
}, {
blocksBehind: 12,
expireSeconds: 120,
broadcast: true,
sign: true,
}).then((d) => console.log(d)).catch(onErrorCallback)
return result;
} catch (error) {
return onErrorCallback(error)
}
I have no way to redeem my pledged WAX coins. When I apply for redemption, he asked me to go to this website to find a solution. What do I need to do? You will give us a new program
Hello, I want to connect waxjs to test-net instead of using main-net, I tried it by replacing rpc-endpoint, but it didn't works
this.wax = new waxjs.WaxJS('https://testnet.waxsweden.org/', null, null, false);
I have a transaction that requires permission from two users. How to use wax js to sign it with the keys that the user has?
Anchor does this, and wax js returns an error: Error: transaction declares authority '{"actor":"userTwo","permission":"active"}', but does not have signatures for it
.
The webpage https://all-access.wax.io/ does not have any entries to login from Github.
how to login by session_token
Hi, I have an issue when i use the wax sample code of wax ref- https://developer.wax.io/waa/waxjs-demo/
i click the sendToken button for send transaction function to transfer WAX, I got an error (Cannot read property 'length' of undefined) before the window popup .
If anyone know about how to solve this error..!!
Splinterlands Issue with Atomichub.io
https://splinterlands.com/
Hi,
I thought that I would let someone know that there is an issue going on with transferring NFT's from Atomichub.io to Splinterlands.
When I purchase Splinterland NFT's at Atomichub.io, I am not able to transfer the NFT's to a Splinterlands Account because of the issue.
Here is the Error Message that I am receiving below,
"This application is currently utilizing an outdated version of waxjs that is no longer supported.
We kindly request you to contact the application's team to upgrade to the latest waxjs version by following this link.
https://github.com/worldwide-asset-exchange/waxjs"
Thanks,
Mathiew Burkett
Hello, im trying to implement Waxjs into an Angular app, i did an npm i @waxio/waxjs, then i imported with "import * as waxjs from "@waxio/waxjs/dist";" but when i try to call it with " const wax = new waxjs.WaxJS('https://wax.greymass.com/', undefined, undefined, false);
" or new waxjs.WaxJS('https://wax.greymass.com/%27) i have the following issue :
Global is not defined (for the Global.fetch in eosjs-jsonrpc.js line 87)
I searched about webpack problms but didnt found something for solve it ( tryed to manualy require global-fetch ..ect)
If someone could help me pls, thanks
Hi,
I thought that I would let someone know that whenever I try to login to the "Wax.gallery" I am receiving the error message below,
"This application is currently utilizing an outdated version of waxjs that is no longer supported.
We kindly request you to contact the application's team to upgrade to the latest waxjs version"
Thanks,
Matt
how to login by session_token
Please contact me. Already I finished several wax blockchain project.
I can do for sure what you want.
[email protected]
When I try to pass oAuth on my local server, I get this error: "Error:Could not resolve host: api.opskins.com".
And when I try on hosting: "Error:Failed to connect to api.opskins.com port 443: Connection refused".
It seems something is wrong with: "api.opskins.com".
I use signViaEndpoint for auto sign.
But the http response is :
{"errors":[{"error_type":"Unauthorized","message":"Session token invalid or expired","error_code":"0"}]}
How can I whitelist some contracts? It is supposed to be coming from login
(https://github.com/worldwide-asset-exchange/waxjs/blob/develop/src/index.ts#L97). Should it be set in https://wallet.wax.io ? There is something about authorizang DApps, but that does not seems to work
Im update waxjs version because old version alert "You need to update version to use WAX".
After update, Im trying to login to WAX as this:
const wax = new waxjs.WaxJS({
rpcEndpoint: 'https://wax.greymass.com',
userAccount: network.account,
tryAutoLogin: true,
pubKeys: network.keys
})
const userAccount = await wax.login()
but I have 422 error:
XHRGET
https://idm-api.mycloudwallet.com/v1/accounts/auto-accept/login
[HTTP/2 422 215ms]
GET
https://idm-api.mycloudwallet.com/v1/accounts/auto-accept/login
Status
422
Referrer policystrict-origin-when-cross-origin
access-control-allow-credentials
true
access-control-allow-origin
http://localhost:8080
cache-control
no-cache, private
cf-cache-status
DYNAMIC
cf-ray
81828d1ffa2f16db-DME
content-language
ru
content-type
application/json
date
Wed, 18 Oct 2023 17:37:47 GMT
server
cloudflare
vary
Origin
X-Firefox-Spdy
h2
Accept
*/*
Accept-Encoding
gzip, deflate, br
Accept-Language
ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
Connection
keep-alive
Host
idm-api.mycloudwallet.com
Origin
http://localhost:8080
Referer
http://localhost:8080/
Sec-Fetch-Dest
empty
Sec-Fetch-Mode
cors
Sec-Fetch-Site
cross-site
TE
trailers
and responce content:
errors [ {…} ]
0 Object { error_type: "Request validation error", message: "Session token required in header", error_code: "0" }
How to resolve this error?
I see that we can pass the account name and public keys to instantiate the object but I don't know how to find them from this sentence.
If you use the WAX Cloud Wallet OA service to sign a user in, you can use the profile endpoint with the identity_wcw scope to get a user’s WAX Blockchain Account name and public keys.
Hello,
i've been trying to use actions from the contract eosio.msig, it works with anchor, but wax wallet sends the error "Error : Request failed with status code 403, This transaction contains forbidden actions".
It tried also what has been mentionned in this issue
to set 'freeBandwidth' to false in the intialization but doesn't seem to allow WCW to sign a transaction that require authorization from multiple accounts.
Is the error 'This transaction contains forbidden actions' normal using eosio.msig ?
{"actions": [ {"account":"eosio.msig", "name":"propose", "authorization":[ {"actor":"3bhmm.c.wam","permission":"active"} ], "data": { "proposer":"3bhmm.c.wam", "proposal_name":"wjnnomfwv2zw", "requested":[ {"actor":"3bhmm.c.wam","permission":"active"}, {"actor":"hobby1testsc","permission":"active"} ], "trx": { "expiration":"2022-05-15T10:08:58", "ref_block_num":0, "ref_block_prefix":0, "max_net_usage_words":0, "max_cpu_usage_ms":0, "delay_sec":0, "context_free_actions":[], "actions":[ { "account":"starcadiagam", "name":"usemulti", "authorization":[ {"actor":"3bhmm.c.wam","permission":"active"}, {"actor":"hobby1testsc","permission":"active"} ], "data":"02FED86C0E0001000000A4E1000129DB19FBD86C0E000100008070C62A077F0E6DB3000000" } ], "transaction_extensions":[] } } } ]}
same error if i create the proposal with anchor and try to execute the approve action with WCW.
There is no reason that userAccount
is private. Typescript complains when I try to access it on WaxJS
objects so I need to add //@ts-ignore
each time I am using it.
Is there a way to verify a users ownership of wax account via WaxJS? I need to be able to verify from the backend. Having the client pass to me simply an account name is not sufficient.
I can do this with anchor via their IdentityProof after initiating a login, or with eosjs by asking the user to sign an arbitrary message and verifying that. I haven't seen a way to do something like this via WaxJS.
Could someone point me in the write direction? It would be preferable to be able to do this without pushing a transaction on chain.
Any help much appreciated :)
I tried creating an account on behalf of a user. The flow is - The user logs in and gets a temporary account and then on the app he can request for his account to get activated. The problem occurs when a backend service has sent the 5 WAX for the wallet to be activated. The account gets created but the permissions are not set. I have tried doing this many times, but the same happens.
I see many projects use anchor and scatter etc is there any code available for this?
Readme.md points to https://developer.wax.io/waa/waxjs-overview/ which gives a 404 this should now be https://developer.wax.io/docs/wax-cloud-wallet/waxjs/
No where in any examples do I see usage of the password or private key, how does login supposed to work if there is never passed the password or private key?
Hi my friend, you are not working on Electronjs.
how can I logout from client?
I am not able to find a guide/example of how waxjs could be used to transfer NFT.
Trying to implement v1.0 of the waxjs.js library and when I try and create a new instance with
const wax = new waxjs.WaxJS('https://api.waxsweden.org'); it is giving me the error:
TypeError: t is undefined
Previous builds seemed to work ok. Any ideas or am I doing something wrong here?
I'm not sure if this is the right repo to post this issue so please bear with me.
For about three days I'm unable to log into the WAX Cloud Wallet via GitHub authentication.
Upon signing in it quickly shows a redirect window and then sends me back to the login again.
This happens on each site that uses the Cloud Wallet and on the wallet itself.
What I tried so far without success:
According to Reddit there are a couple of other people suffering under the same issue:
https://www.reddit.com/r/AlienWorldsio/comments/n0l1ir/can_not_login_wax_cloud_wallet_with_github/
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.