4
votes
Accepted
Generating NFT with random attributes?
Tezos doesn't provide any randomness though Michelson currently. PVSS features are expected to come in future proposals which can enable randomness generation.
Currently, the best solution is probably ...
3
votes
Accepted
How to get wallet tokens balance with the help of address and tokens contracts?
The best approach is to use an indexer that is aware of all tokens. Its not scalable to query them one at a time from the RPC, or to maintain the list of tokens.
This API from TZKT:
https://api.tzkt....
2
votes
Accepted
how to calculate the value of a single LQT token for Liquidity Baking?
When you add tezAmount liquidity you deposit tezAmount * tokenPool / xtzPool tokens (with division rounding up) and receive tezAmount * lqtTotal / xtzPool LQT (with division rounding down). When you ...
2
votes
How to correctly implement an interface to an FA1.2 contract, from a programming language?
You are correct. There is not a way to get the value directly. You would have to originate a contract like this. Let's call it getnat.tz. We will use it to create an error message after a dry run call....
2
votes
Accepted
Is it possible to originate/mint NFTs privately with Edo?
You wouldn't get meaningful privacy. It would be the only asset in its own pool, so you would know every time it changes hands, which might as well be achieved by using fresh keys without any zero-...
2
votes
Accepted
General solution for getting fungible token balance off-chain
A better approach would be to use an Indexer. In general wallets only communicate with the chain directly to inject an operation or to do some sort of highly specific task with a single contract. ...
2
votes
Accepted
I can't import my nft into my temple wallet
The entrypoint balance_of does not respect the specification.
Your contract has: (Does not match the specification)
(pair %balance_of
(contract %callback
(list
(pair
...
1
vote
I want to transfer the tokens from one contract to another address
This is happening because both contracts have different parameter schema for the transfer entrypoint.
Goto KT1LkNWZgVYh3zdaRkBb9aNgLEFCjVJwEKu2 TzKt, the arguments should be in the format:
"...
1
vote
I want to retrieve the balance of a smart contract that I own using my wallet address and the address of that smart contract, how can I do that?
You may access rpc package's getBalance function with tezosToolkit like below to get both balances.
(async ()=> {
try {
const tezos = new TezosToolkit(ghostnet)
let kt1 = await tezos.rpc....
1
vote
Accepted
I want to retrieve the balance of a smart contract that I own using my wallet address and the address of that smart contract, how can I do that?
You can get the token balance of your wallet using this TzKt API.
In your case, you will need to add two query parameters. So, the API becomes:
https://api.ghostnet.tzkt.io/v1/tokens/balances?account=...
1
vote
Unable to import NFT in the Temple wallet as collectible
Same problem here with my first contract. Did you found and fix the problem ? I think my metadata files are correct but cannot see any NFTs in the collectibles tab.
Here is the contract https://better-...
1
vote
Accepted
TzKt not recognising the tokens of my contract
In short: in your particular case the tokens will be recognized after the first transfer call.
Why? Your contract doesn't fully implement the FA standard (in particular, according to the standard, you ...
1
vote
Accepted
How to airdrop tokens based on ownership of another token?
You need to understand that tokens are not "sent" to an address. All tokens are simple K/V maps within the storage (bigmap) of a smart contract. Transferring a token from X to Y is simply ...
1
vote
Carthagenet token faucet
As far as I know, there aren't any. What you can do is copy the code of the token that interests you on Mainnet, deploy it on Carthagenet and create some tokens you can then use for your tests :)
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
tokens × 18smart-contracts × 4
nft × 4
taquito × 3
fa1.2 × 3
tezos-client × 2
smartpy × 2
fa2 × 2
tzkt × 2
transactions × 1
wallets × 1
contract × 1
api × 1
transfer × 1
account × 1
javascript × 1
testnet × 1
faucet × 1
privacy × 1
query × 1
carthagenet × 1
random × 1
ticket × 1
temple × 1
rollup × 1