Questions tagged [javascript]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
18 views

How to interact with SmartPy BigMap in contract?

I would like to setup a smart contract that contains (as defined by smartpy) a BigMap storage. I have the following code: import smartpy as sp class contract(sp.Contract): def __init__(self): ...
2
votes
0answers
15 views

ConseilJS TezosContractIntrospector.generateEntryPointsFromAddress `Uncaught (in promise) TypeError: Cannot read property '0' of undefined`

Trying to retrieve contract entry points using the TezosContractIntrospector The following code: async function entry_points(){ const server={ url:'https://conseil-dev.cryptonomic-infra.tech:...
2
votes
1answer
113 views

How to deploy a smart contract influenced by UI inputs using ConseilJS and SmartPy generated Michelson?

I wish to be able to create a smart contract taking input from a UI to supply parameters pubKey,prvKey,pubHash for the deployment and minAmount and maxTime to influence the Michelson. I have the ...
1
vote
1answer
29 views

Transfer operation using ConseilJS

I'm trying to use ConseilJS to make a transfer to a contract from a webpage. I'm using a keystore object based on my tezos-client wallet. const keystore = { publicKey: '...
1
vote
1answer
18 views

How to ensure that operation was included in a block with taquito

When I inject an operation using the taquito library, how can I have my program wait for a specific number of blocks after my operation is included in the network.
1
vote
1answer
31 views

How to originate a smart contract with Taquito

How can I access my contract after originating it using taquito? If I use taquito like this. Tezos.contract.originate({...contractOptions}) How can I access my new originated address and start using ...
1
vote
1answer
36 views

How can I derive a public key from a known private key?

Edpk from a edsk, programmatically?
3
votes
0answers
11 views

API Ballots not working

The API : https://api6.tzscan.io/v3/ballots/11 is not working, I don't understand why. Tzscan API instructions : https://tzscan.io/api#operation/405
2
votes
1answer
33 views

Is there a TzScan API to find the number of Tezos Node?

I'm looking for an API to get the number of Tezos Node or the number of Bakers.
3
votes
0answers
32 views

Is there a TzScan API to find the total number of delegated Tezos?

I'm looking for an API to get the total number of delegated Tezos. I already found an API to get the number of rolls delegated: https://api6.tzscan.io/v3/rolls_history/...
4
votes
2answers
81 views

Issue with API Request Cycle

I have an issue to request the Cycle Number from this API. I don't understand how to use the map to get the data from the last cycle only. const ul2 = document.getElementById('Cycle'); const url2 =...
4
votes
1answer
165 views

API Access HTML/Javascript problem

I have an issue trying to use javascript to get the circulating supply by requesting data from Tzscan API: HTML code to request the circulating supply: <!DOCTYPE html> <html> <head>...
6
votes
2answers
110 views

Base58 encoding/decoding of addresses in Micheline

who know some javascript library for decoding optimized Micheline representation of an address value? 011cd5f135e80fd8ebb6e43335b24ca6116edeba6900 => KT1BDEn6wobs7tDReKkGheXAhoq278TGaNn5