Questions tagged [eosjs]

QAs about the JavaScript module eosjs which uses RPC-APIs to interact with an EOS.IO blockchain.

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

tx_cpu_usage_exceeded error transaction [duplicate]

sometimes when i run eosio transactions like this below, i have this error and transaction not complete. These transaction are for save data on smart contract table on a local nodeos. I use eosjs to ...
0 votes
1 answer
29 views

What is the latest version of eosio and what is the new github site?

Why is the official github no longer updated last year? How do I build the latest image?
0 votes
0 answers
24 views

How to call contract via wax.api.transact include eos signatures

i have problem when create transact use wax.js, i get the eos signatures but do not know how to add this signatures transaction declares authority “something”, but does not have signatures for it ...
0 votes
0 answers
13 views

The error was happend on JsSignatureProvider of eosjs on React Native

I'm developing the eos wallet app on react native. But it happens the issues like following. My code is import { Api, JsonRpc, RpcError } from 'eosjs'; import { JsSignatureProvider } from 'eosjs/dist/...
0 votes
1 answer
73 views

What causes this error: Error: Required configuration or TAPOS fields are not present

What causes this error? Error: Required configuration or TAPOS fields are not present I am pushing transactions to a mainnet block producer and I am receiving this error intermittently. Any help would ...
  • 3,405
1 vote
1 answer
30 views

I want to store additional data on the "submit_transaction" using transact on the api object

I am new to the eosio platform. My goal is to store additional data onto the testnet.eos.io and receive a transaction_id which I managed to do. However on searching my transaction_id I see my ...
  • 11
0 votes
0 answers
42 views

How to change endpoint url in an rpc call if the node does not respond

I want to implement a mechanism which is fault tolerance if a node does not responds. Currently i have 2 nodes in a private blockchain. I want to change my "endpoint url" when the first node ...
0 votes
0 answers
29 views

How to make a transaction unique?

I'm constantly getting "duplicate transaction" error when sending a transaction. Besides changing the data, is there any way i can make it unique ?
1 vote
0 answers
30 views

How to catch transaction errors?

I'm trying to send a specific number of transactions per day to a smart contract. Because of low CPU stake I easily get CPU error. My goal is to catch this error and handle it in order to keep trying ...
0 votes
1 answer
73 views

Is there a C++ library just like eosjs?

I want to sign and send transactions (generally trigger any smart contract action) from a c++ external app. How can I do this? If my app was in javascript, that would be easy since I know that I can ...
  • 111
0 votes
0 answers
20 views

How to make the code automatic appove smart contract action?

The environment is like this The user will click the login button to log in to the cloud wallet, so that the code gets the user's login permissions, but when performing certain actions, you still need ...
0 votes
0 answers
41 views

Signing a transaction on an edge device without TAPoS fields and push it separately to the chain

I do have a use case where I need to sign a transaction on an edge device without having connection to the chain (but lets consider chain ID , user and private key are well known on the edge). I am ...
0 votes
2 answers
217 views

How to listen/get on-chain data in real time

I know that I can use eosjs to read/query multi_index table data from the chain. However, my goal is to listen to/on these changes. Specifically, I want to receive a notification whenever something ...
  • 111
0 votes
0 answers
34 views

Is there a small C++ library or a simple gist/function just for signing transactions?

I'm building an app that consists of two services, one service will run on the edge and the other in the cloud. Obviously, I want the service on the edge to be lightweight since It will run on ...
  • 111
0 votes
1 answer
60 views

Smart contract redeem token action - Example

Do you have some example that shows how to design an action for a smart contract that when the user sends a REDEEMCODE action the smart contract will transfer some quantity of a custom token for the ...
0 votes
0 answers
92 views

Serializing EOS transactions offline use eosjs

can anyone suggest any advice into serializing offline eos transactions? We are using the eosjs api serializeTransactionsWithActions method to serialize transactions and we implemented an Offline Abi ...
0 votes
1 answer
49 views

WARN: 10 attempts to find canonical signature

What does this warning mean? WARN: 10 attempts to find canonical signature This is a warning as I understand from eosjs.
  • 3,405
0 votes
1 answer
45 views

Creating an account key pair outside of using eosjs

Hello Guys is there any method through which I can create a valid EOSIO key pair without using EOSJS, If that's not possible can any one explain how does eosjs-ecc create those keys and can I ...
0 votes
1 answer
56 views

Signing and submission of transaction seperately

is there any way where we can have a user sign a transaction using their private key on the front end. And we get the signed transaction transfer it to our server over the internet and push the ...
0 votes
1 answer
911 views

WAX - Signature error : "Message: transaction declares authority, but does not have signatures for it."

I'm trying to send a transaction from my react frontend to local chain, I have signed in wax cloud wallet and made a transaction. But at last I met this signature error. "Message: transaction ...
0 votes
1 answer
110 views

Difference between send and push transaction

So I've been thinking about this from the start but haven't found any resources on how they differ. On the eosio chain api reference, there is a send_transaction method and a push_transaction method. ...
0 votes
1 answer
98 views

Claim rewards system (Something like how alien worlds give rewards to players)

I'm trying to make something similar to alien worlds, how can I transfer tokens from the contract to the user but have the resource costs go to the user using EOSJS?
0 votes
1 answer
63 views

Provided keys, permissions, and delays do not satisfy declared authorizations

I am trying to sign transaction and push manually using eosjs. const signatureProvider = new JsSignatureProvider([privateKey]); const sigResult = await signatureProvider.sign({ chainId: ...
  • 103
0 votes
2 answers
95 views

How to use resource_payer on eosjs

EOSJS added a new feature to their library and now we can specify the resource payer. I wanted to try and use it but their example doesn't work.
1 vote
0 answers
24 views

How can I use nonsecure connection to localhost instead of secure one

I'm pretty new with EOS programming and I'm trying to run simple broadcast transaction. I'm using following code: let transaction = EosioTransaction() transaction.rpcProvider = EosioRpcProvider(...
  • 21
0 votes
1 answer
109 views

How to obtain signatures?

I'm trying to send a transaction by using eos push_transaction, but I don't have signatures. I found some exaples, they have signatures like below, they start with SIG_K1_ I have a transaction object. ...
0 votes
2 answers
296 views

How to call Wax action in PHP

All of the tutorials on building dApps, they use Javascript and then they tell you how NOT to do it by using your PK to create a signature. So I'd like to use PHP on the backend and grab my key from a ...
0 votes
1 answer
34 views

How much RAM saved / latency added from new KV Table

How much RAM do the KV Tables save / how much additional latency does this storage type add to the trx lifecycle? https://github.com/EOSIO/eos/releases/tag/v2.1.0
  • 3,405
1 vote
1 answer
36 views

How to validate data from new return data value feature stored in block header

How would one go about validating the data from the block header of a return data value action? It seems like a cool feature, but you'd need a full history node to validate wouldn't you? https://...
  • 3,405
0 votes
1 answer
84 views

How much RAM to buy?

How can one determine the amount of RAM to buy for a new account and for regular transfer actions? The page here recommends 4K of RAM: https://support.bancor.network/hc/en-us/articles/360018325291-...
  • 13
0 votes
1 answer
61 views

Buyng Ram EOSIO

Hello i want to make api for buying RAM so is there any api available or any library please let me know but im already using eosjs ,eos-api of nodejs please let me know in comment thank you
0 votes
1 answer
37 views

EOSIO retrieve 12 char name from blockchain api

Hello is there any function available from which we can retrieve 12 char name by giving private key ? or you can say api function or eos library for import eos account
0 votes
1 answer
53 views

dApps: Public networks & Messaging

Could you please help me to figure out the following questions? Is it safe if users of a decentralized application use public nodes endpoint via RPC to make transactions to smart contracts? Such as ...
0 votes
1 answer
43 views

dApps: How to run transactions from web app in decentralized way?

I'm thinking about the way how to build truly decentralized web applications. Smart contracts looks like the good idea how to run server logic. To be able to push transactions (actions) from web ...
0 votes
2 answers
95 views

How to get irreversible status in eosjs?

I am currently using api.transact to send the transaction to the eos Blockchain. I want a way to check for irreversile status so that I can confirm that the transaction has happened successfuly. Is ...
  • 125
0 votes
1 answer
78 views

How to get timestamp through eosjs in seconds?

I want to get the timestamp of the block in Seconds but eosjs library returns it in an iso string format. Is there a way to receive timestamp in seconds or convert the string to seconds? Example: What ...
  • 125
1 vote
1 answer
101 views

Code sample to use PowerUp feature

Can someone point me to code samples on how to use PowerUp feature? Also, how can a wallet be setup to use it automatically? Thanks in advance.
  • 13
0 votes
2 answers
146 views

Status of EOS Powerup feature

I have following questions on EOS Powerup: Is the EOS Powerup model optional? When is this expected to go live? The link here mentions April 8 where as https://eosauthority.com/powerup/ mentions that ...
  • 13
0 votes
2 answers
157 views

How to create an EOS account using eosjs without existing account and its private key

I have a question about EOS, eosio and eosjs. I want to create an EOS account using frontend website that I developed. I I recognize that creating an account needs existing account, and needs its ...
  • 1
0 votes
1 answer
58 views

EOSJS get information about a list of the multi-index table rows

Suppose that I have a user table, where each user has a status. TABLE user_info { name username; uint64_t status = 0; auto primary_key() const { return username.value; } }; ...
1 vote
1 answer
63 views

EOSIO Error: 3040006 from api

from this afternoon we receive the error in question from the api, without having changed anything after several months of use. Anyone have an idea why?
  • 11
0 votes
1 answer
64 views

EOSIO unsupported key_type uint64_t

I am using a secondary key to get table rows: static async getItemById(itemId){ try{ const rpc = new JsonRpc(process.env.REACT_APP_EOS_HTTP_ENDPOINT); const result = await rpc....
1 vote
2 answers
106 views

Prometheus exporter for eosio

I am new to Prometheus and Grafana. I need Prometheus eos exporter for the purpose of Eosio private blockchain dashboard. I researched but didn't get any expected results. I need to show the eos node (...
  • 297
2 votes
1 answer
38 views

Is having hashes of document certificates in EOS blockchain for tamper proof a good use case for EOS?

I have a application where I want to store a SHA256 hash of a document in a Blockchain. I want it to have a good life, ie storing the SHA256 hasha as a data in a transaction should bot be deleted ...
  • 125
2 votes
1 answer
57 views

Multinode data with eosjs

I need to prepare eosio dashboard for that I need multi nodes information. I am using eosjs nodejs library to get genesis node chain information. Can I get which other nodes are connected with genesis ...
  • 297
1 vote
1 answer
19 views

Usecase of EOS for DApps

I have watched several tutorials for building DApps with EOS. But, All they did in tutorials was deploying smart contract and storing data in the tables. What is the point of doing that?(storing data ...
  • 11
0 votes
1 answer
30 views

Advantage of storing data in EOS compared to traditional database

I am learning blockchain concept and EOS. From my understanding, data which is stored in blockchain can not be modified. But, data in table in EOS can actually be modified? Then what is difference ...
  • 11
0 votes
1 answer
80 views

EOS 'newaccount' action generates the error Error: missing authority.keys (type=key_weight[])

I have created a MultiNode Setup using the Bios Boot sequence https://developers.eos.io/welcome/latest/tutorials/bios-boot-sequence. And created the accounts as 'eosio' & 'accountnum11'. I am ...
  • 135
0 votes
1 answer
55 views

Name should be less than 13 characters, or less than 14 if last character is between 1-5 or a-j

i am facing this error when i hit my Post API,Basically i am creating this API for propose the Multisig Transaction. And i am follow the documentation of EOSJS from offical website of EOSIO. MY naming ...
0 votes
1 answer
90 views

CORs Error for /v1/chain/push_transactions To Production Block Producer (Not localhost)

All of my other POST calls to a production EOS BP are succeeding no problem. However, when I use push_transactions via ScatterJS I get a 500 CORs error. const networkJson = { blockchain:'eos', ...
  • 101

1
2 3 4 5