How to sign and send transfer transaction using waves-transaction JS library?How do I send a cross-domain POST request via JavaScript?How to insert an element after another element in JavaScript without using a library?How can I create that waves smart contracts and assets with JS?How can I sign a transaction with a private key using the REST API Waves?Which type of transactions does waves platform have for smart accounts and smart assets?How to know if my Waves node is on fork or not?How to use Waves Transactions library in testnet?what does this error mean ? Can't process transaction with signature from scripted account. I'm using RIDE on Waves platformHow to set a script for an asset using Waves IDE?There're different types of transactions with different versions in Waves Platform, what is the main difference between them?
Chess software to analyze games
Is there a commercial liquid with refractive index greater than n=2?
What professions does medieval village with a population of 100 need?
iPhone 8 purchased through AT&T change to T-Mobile
Are there reliable, formulaic ways to form chords on the guitar?
Label on a bended arrow
Default camera device to show screen instead of physical camera
Use of vor in this sentence
Starships without computers?
Would it be illegal for Facebook to actively promote a political agenda?
How could China have extradited people for political reason under the extradition law it wanted to pass in Hong Kong?
Can my boss not paying for hours I put in to clean bar after we close?
Why do some academic journals requires a separate "summary" paragraph in addition to an abstract?
Why don't sharp and flat root note chords seem to be present in much guitar music?
Designing a prison for a telekinetic race
How does turbine efficiency compare with internal combustion engines if all the turbine power is converted to mechanical energy?
Why should someone be willing to write a strong recommendation even if that means losing a undergraduate from their lab?
How do I intentionally fragment a SQL Server Index?
Sleeping solo in a double sleeping bag
Writing/buying Seforim rather than Sefer Torah
In xXx, is Xander Cage's 10th vehicle a specific reference to another franchise?
Convert HTML color to OLE
Do predators tend to have vertical slit pupils versus horizontal for prey animals?
Can my Boyfriend, who lives in the UK and has a Polish passport, visit me in the USA?
How to sign and send transfer transaction using waves-transaction JS library?
How do I send a cross-domain POST request via JavaScript?How to insert an element after another element in JavaScript without using a library?How can I create that waves smart contracts and assets with JS?How can I sign a transaction with a private key using the REST API Waves?Which type of transactions does waves platform have for smart accounts and smart assets?How to know if my Waves node is on fork or not?How to use Waves Transactions library in testnet?what does this error mean ? Can't process transaction with signature from scripted account. I'm using RIDE on Waves platformHow to set a script for an asset using Waves IDE?There're different types of transactions with different versions in Waves Platform, what is the main difference between them?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Please help me understand https://testnodes.wavesnodes.com/api-docs/index.html I use this api and this library https://github.com/wavesplatform/waves-transactions
I cannot send a transaction using the manual to the library or directly by POST request for api.
common mistakes:
Error: State check failed. Reason: Script doesn’t exist and proof
Error: State check failed. Reason: Transactions from non-scripted accounts must have exactly 1 proof
A POST request for url / addresses also gives an error. Provided API key is not correct.
Here is my code:
const transfer, broadcast = require("@waves/waves-transactions");
const seed =
"ride flee tenant tuna share buyer work west amateur review time kick";
const signedTranserTx = transfer(
amount: 1,
recipient: "3NBVqYXrapgJP9atQccdBPAgJPwHDKkh6A8"
,
seed
);
const nodeUrl = "http://testnodes.wavesnodes.com";
broadcast(signedTranserTx , nodeUrl)
.then(resp => console.log(resp))
.catch(err => console.error(err));
javascript blockchain wavesplatform
add a comment |
Please help me understand https://testnodes.wavesnodes.com/api-docs/index.html I use this api and this library https://github.com/wavesplatform/waves-transactions
I cannot send a transaction using the manual to the library or directly by POST request for api.
common mistakes:
Error: State check failed. Reason: Script doesn’t exist and proof
Error: State check failed. Reason: Transactions from non-scripted accounts must have exactly 1 proof
A POST request for url / addresses also gives an error. Provided API key is not correct.
Here is my code:
const transfer, broadcast = require("@waves/waves-transactions");
const seed =
"ride flee tenant tuna share buyer work west amateur review time kick";
const signedTranserTx = transfer(
amount: 1,
recipient: "3NBVqYXrapgJP9atQccdBPAgJPwHDKkh6A8"
,
seed
);
const nodeUrl = "http://testnodes.wavesnodes.com";
broadcast(signedTranserTx , nodeUrl)
.then(resp => console.log(resp))
.catch(err => console.error(err));
javascript blockchain wavesplatform
add a comment |
Please help me understand https://testnodes.wavesnodes.com/api-docs/index.html I use this api and this library https://github.com/wavesplatform/waves-transactions
I cannot send a transaction using the manual to the library or directly by POST request for api.
common mistakes:
Error: State check failed. Reason: Script doesn’t exist and proof
Error: State check failed. Reason: Transactions from non-scripted accounts must have exactly 1 proof
A POST request for url / addresses also gives an error. Provided API key is not correct.
Here is my code:
const transfer, broadcast = require("@waves/waves-transactions");
const seed =
"ride flee tenant tuna share buyer work west amateur review time kick";
const signedTranserTx = transfer(
amount: 1,
recipient: "3NBVqYXrapgJP9atQccdBPAgJPwHDKkh6A8"
,
seed
);
const nodeUrl = "http://testnodes.wavesnodes.com";
broadcast(signedTranserTx , nodeUrl)
.then(resp => console.log(resp))
.catch(err => console.error(err));
javascript blockchain wavesplatform
Please help me understand https://testnodes.wavesnodes.com/api-docs/index.html I use this api and this library https://github.com/wavesplatform/waves-transactions
I cannot send a transaction using the manual to the library or directly by POST request for api.
common mistakes:
Error: State check failed. Reason: Script doesn’t exist and proof
Error: State check failed. Reason: Transactions from non-scripted accounts must have exactly 1 proof
A POST request for url / addresses also gives an error. Provided API key is not correct.
Here is my code:
const transfer, broadcast = require("@waves/waves-transactions");
const seed =
"ride flee tenant tuna share buyer work west amateur review time kick";
const signedTranserTx = transfer(
amount: 1,
recipient: "3NBVqYXrapgJP9atQccdBPAgJPwHDKkh6A8"
,
seed
);
const nodeUrl = "http://testnodes.wavesnodes.com";
broadcast(signedTranserTx , nodeUrl)
.then(resp => console.log(resp))
.catch(err => console.error(err));
javascript blockchain wavesplatform
javascript blockchain wavesplatform
asked Mar 27 at 14:50
darnistadarnista
414 bronze badges
414 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
If you use Waves transactions api, the request should be signed already and you can post it to /transactions/broadcast. Then you don't need your own node and you don't need your own API Key.
in your code, I see several mistakes here:
- You're transferring to MAINNET address using testnet node. you
should use TESTNET address instead. in the reciepent change the
address to an address in testnet and let me know if you still get
any errors. you can create new accounts here
https://testnet.ide.wavesplatform.com/ in the tab accounts on the
top right. - Use https instead of http,
const nodeUrl = "https://testnodes.wavesnodes.com/";
- Add the chain id('T' for testnet and 'W' for mainnet)
Here is the code:
const transfer, broadcast = require("@waves/waves-transactions");
const seed =
"ride flee tenant tuna share buyer work west amateur review time kick";
const signedTranserTx = transfer(
amount: 100,
recipient: "3N3pJ8xAnbaSBFdAbnaKe4yu4ZXbYkatMcN"
,
seed
);
const nodeUrl = "https://testnodes.wavesnodes.com";
broadcast( ...signedTranserTx, chainId: "T" , nodeUrl)
.then(resp => console.log(resp))
.catch(err => console.error(err));
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55380158%2fhow-to-sign-and-send-transfer-transaction-using-waves-transaction-js-library%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
If you use Waves transactions api, the request should be signed already and you can post it to /transactions/broadcast. Then you don't need your own node and you don't need your own API Key.
in your code, I see several mistakes here:
- You're transferring to MAINNET address using testnet node. you
should use TESTNET address instead. in the reciepent change the
address to an address in testnet and let me know if you still get
any errors. you can create new accounts here
https://testnet.ide.wavesplatform.com/ in the tab accounts on the
top right. - Use https instead of http,
const nodeUrl = "https://testnodes.wavesnodes.com/";
- Add the chain id('T' for testnet and 'W' for mainnet)
Here is the code:
const transfer, broadcast = require("@waves/waves-transactions");
const seed =
"ride flee tenant tuna share buyer work west amateur review time kick";
const signedTranserTx = transfer(
amount: 100,
recipient: "3N3pJ8xAnbaSBFdAbnaKe4yu4ZXbYkatMcN"
,
seed
);
const nodeUrl = "https://testnodes.wavesnodes.com";
broadcast( ...signedTranserTx, chainId: "T" , nodeUrl)
.then(resp => console.log(resp))
.catch(err => console.error(err));
add a comment |
If you use Waves transactions api, the request should be signed already and you can post it to /transactions/broadcast. Then you don't need your own node and you don't need your own API Key.
in your code, I see several mistakes here:
- You're transferring to MAINNET address using testnet node. you
should use TESTNET address instead. in the reciepent change the
address to an address in testnet and let me know if you still get
any errors. you can create new accounts here
https://testnet.ide.wavesplatform.com/ in the tab accounts on the
top right. - Use https instead of http,
const nodeUrl = "https://testnodes.wavesnodes.com/";
- Add the chain id('T' for testnet and 'W' for mainnet)
Here is the code:
const transfer, broadcast = require("@waves/waves-transactions");
const seed =
"ride flee tenant tuna share buyer work west amateur review time kick";
const signedTranserTx = transfer(
amount: 100,
recipient: "3N3pJ8xAnbaSBFdAbnaKe4yu4ZXbYkatMcN"
,
seed
);
const nodeUrl = "https://testnodes.wavesnodes.com";
broadcast( ...signedTranserTx, chainId: "T" , nodeUrl)
.then(resp => console.log(resp))
.catch(err => console.error(err));
add a comment |
If you use Waves transactions api, the request should be signed already and you can post it to /transactions/broadcast. Then you don't need your own node and you don't need your own API Key.
in your code, I see several mistakes here:
- You're transferring to MAINNET address using testnet node. you
should use TESTNET address instead. in the reciepent change the
address to an address in testnet and let me know if you still get
any errors. you can create new accounts here
https://testnet.ide.wavesplatform.com/ in the tab accounts on the
top right. - Use https instead of http,
const nodeUrl = "https://testnodes.wavesnodes.com/";
- Add the chain id('T' for testnet and 'W' for mainnet)
Here is the code:
const transfer, broadcast = require("@waves/waves-transactions");
const seed =
"ride flee tenant tuna share buyer work west amateur review time kick";
const signedTranserTx = transfer(
amount: 100,
recipient: "3N3pJ8xAnbaSBFdAbnaKe4yu4ZXbYkatMcN"
,
seed
);
const nodeUrl = "https://testnodes.wavesnodes.com";
broadcast( ...signedTranserTx, chainId: "T" , nodeUrl)
.then(resp => console.log(resp))
.catch(err => console.error(err));
If you use Waves transactions api, the request should be signed already and you can post it to /transactions/broadcast. Then you don't need your own node and you don't need your own API Key.
in your code, I see several mistakes here:
- You're transferring to MAINNET address using testnet node. you
should use TESTNET address instead. in the reciepent change the
address to an address in testnet and let me know if you still get
any errors. you can create new accounts here
https://testnet.ide.wavesplatform.com/ in the tab accounts on the
top right. - Use https instead of http,
const nodeUrl = "https://testnodes.wavesnodes.com/";
- Add the chain id('T' for testnet and 'W' for mainnet)
Here is the code:
const transfer, broadcast = require("@waves/waves-transactions");
const seed =
"ride flee tenant tuna share buyer work west amateur review time kick";
const signedTranserTx = transfer(
amount: 100,
recipient: "3N3pJ8xAnbaSBFdAbnaKe4yu4ZXbYkatMcN"
,
seed
);
const nodeUrl = "https://testnodes.wavesnodes.com";
broadcast( ...signedTranserTx, chainId: "T" , nodeUrl)
.then(resp => console.log(resp))
.catch(err => console.error(err));
answered Mar 27 at 14:57
Nazim FaourNazim Faour
6643 silver badges6 bronze badges
6643 silver badges6 bronze badges
add a comment |
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55380158%2fhow-to-sign-and-send-transfer-transaction-using-waves-transaction-js-library%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown