An Editor can perform view-only queries, add wallets (except for wallets associated with SPL and ASA tokens), connect exchange accounts, create new vault addresses, and cancel transactions.
An Editor can only initiate transfers if you designate a signer for their transactions. Non-Signing Admins and Editors can initiate all transactions except internal exchange transfers.
Also if this is an NCW type transfer you will need an NCW Signer user. API Communication
This error code typically indicates theJWT supplied with the API user’s request was not accepted. API requests to Fireblocks are authenticated using the provided JWT.
Can you confirm if the body of your JWT follows this structure? Authenticate
Hi @remicartier thanks for the update, can you try to create a new API user and test this.
I also wanted to confirm if you are able to use any GET methods or if this error only occurs when creating TX.
The Token was not accepted error is usually an issue with the API user certificate or the JWT is not structured properly. And I understand you are not setting JWT(using Java SDK) So it could be error with the cert used to create that API user.
Given that the highest access user in Sandbox is a “non-signin admin” which says it CANNOT create transactions, Could you at least confirm that creating Transactions is even possible via API in the Sandbox environment?
@Mohammed
thank you for the response.
I tried again, to no avail.
What would you suggest me to try now ?
Do you think the ‘expired’ sandbox thing could be a problem ?
Should I create a new sandbox and try from there ?
thanks.
Hi @remicartier our logs indicated your user with API key 6b91 is Non Signing Admin :A user has failed to authorize Unauthorized: Token was not accepted.
I remember you stated this happened with your Editor user too, who should be able to execute transactions. I checked editor user fiant-dev and they too and I think I have found the solution!
You need to use editor user and when creating tx set xEndUserWalletId = null;
This seems to only occur with the JavaSDK, and I will try to document this,
@Mohammed
Thank you ! it’s working !
(Almost, it says there is not enough on the account to pay the fees, though I am not sure why. Trying to send 0.00001 BTC from 0.000465 BTC wallet. Do you know where I can see the fees it’s asking ?)
Update: I did a test with Solana and everything went well.
So glad we were able to sort this out and thanks for your patience!! @remicartier
I had to do some digging into why this Java SDK required xEndUserWallet set to null even for non NCW transactions. We will be documenting this in the future!