Questions tagged [fa2]
The fa2 tag has no usage guidance.
36
questions
1
vote
1
answer
61
views
FA2 showing as a Token and not NFT on TzKT
I am trying to develop an NFT based on the FA2 standard, but as of now, it is recognized as a Token and not as a NFT inside the balance tab:
https://ghostnet.tzkt.io/...
0
votes
1
answer
15
views
sp.contract can get only explicit string as an entrypoint
I'm trying to call another contract from mine.
It seems like I can't feed sp.contract with an entrypoint string that comes from an argument (it works perfectly fine with an explicit string like "...
1
vote
2
answers
52
views
Creation of a FA2 Token (Fungible) and not an NFT
I created a smart contract to do several interactions with tokens.
With the tutorial on the tezos website: https://tezos.com/developers/tutorials/nft-markeplace
Here is my smart contract: https://...
0
votes
1
answer
7
views
Does anyone have template code calling balance_of entrypoint using JSLigo?
Does anyone have template code calling balance_of entrypoint using JSLigo? I want sth similar to Tezos.get_balance() but getting FA2 token balance instead of tez.
0
votes
1
answer
12
views
Trying to create a FA2 token with Archetype
I’m trying to create a FA2 token, for this I use https://github.com/completium/archetype-fa2/blob/main/contracts/fa2_fungible.arl as an example. When I change line 71 to put my ipfs link in bytes (...
0
votes
1
answer
42
views
Problem for creating smart contract NFT marketplace
I am trying to make an NFT Marketplace using the tutorials given here: https://tezos.com/developers/tutorials/nft-markeplace
The first problem I had was when they give us the smartcontract, the ...
0
votes
1
answer
33
views
calling a FA2 smart contract transfer entrypoint from my contract in smartpy
Hello guys I am trying to call from my contract entry point from FA2 token contract that I have deployed. But I am unable to find anything on the internet.
The only thing I found from the ...
0
votes
0
answers
24
views
Updating baseURI not working in FA2
I have been working on a Worker contract which is the parent of an NFT contract. The NFT contract is used to create dynamic NFTs (by changing their baseURI) in the contract and accessing the tokens ...
0
votes
1
answer
20
views
got HTTPError while imporing
i am getting http error while importing fa2 library. i checked link and it says host error. did it moved to new address?
File "./contracts/src/something.py", line 3, in
FA2 = sp.io....
0
votes
1
answer
25
views
Trying to give a custom metadata but still it is using the default base metadata mentioned in class Common
Hello I am using the template Fa2NFT library. When we add the compilation target we need to give it a metadata parameter. I am trying to give it a custom metadata but still it is using the default ...
2
votes
1
answer
47
views
Smartpy 0.18.0 FA2 template
I am looking for the FA2 template with the new syntax in version 0.18.0 and above in smartpy.
Is there something already available as the token template in the smartpy template are using old version.
...
2
votes
1
answer
30
views
Pytezos: structuring call for FA2
Can you guys help me correctly structure a call to the update_operators in an FA2? I tried everything single combination I can think of, and it still doesn't work
It says the structure should be like ...
0
votes
1
answer
36
views
changing from transfer to NoTransfer on FA2
I have deployed a contract with basic mint and transfer of NFT. I did some transaction on that contract like minting into one address and then transferring the token from one address to another ...
0
votes
1
answer
25
views
interact with FA2.0 Smart Contract
I deployed a FA2.0 Smart Contract and would need to interact with it through Java. I tried to use Tezosj (enter link description here) but it does not support FA2.0 smart contracts...hence, I would ...
0
votes
1
answer
55
views
Default operators with FA2 library in SmartPy
I was wondering if, when using the FA2 library, there is a way to have the contract as a default operator so that users don't have to call update_operators ?
Thank you
1
vote
2
answers
59
views
TzKt not recognising the tokens of my contract
TzKt can recognize the FA1.2 and FA2 tokens like this one:
https://ghostnet.tzkt.io/KT1WkGNtcuGq6Rxh8CPSn9J1z7vgxsupBYps/operations/
Here, it understands that it is a token with GaGe as its symbol. ...
1
vote
1
answer
31
views
Pattern by which you can determine that this is a FA2 contract, and not FA1.2
i want to understand how tzkt indexer works. If there is some pattern by which you can determine that this is a fa2 contract, and not fa1.2? Maybe there is a prefix by which you can determine? I saw ...
0
votes
1
answer
35
views
Is operator support required for standard NFTs?
I'm making my first FA2-based NFT contract and I want to reduce the amount of code by sacking the operator logic. To be clear, I'm still following the FA2 interface, but the entrypoint now looks like ...
0
votes
1
answer
40
views
Call FA2 transfer from another smart-contract with archertype
I’m trying to call a FA2 transfer function from another smart-contract but I’m not sure how to write it in archetype. Here is my code so far
archetype Test(
a_contractToken : address, a_quantity: ...
1
vote
2
answers
114
views
How to retrive parameters from a Michelson function?
I'm developing a Flutter application and used Dartez plugin to transfer token contracts from one wallet to another wallet.
The Dartez package has a function named sendContractInvocationOperation for ...
0
votes
1
answer
66
views
Clarifications on FA2 operator
I am looking for some clarifications around FA2 tokens and the notion of operators, as I’m not sure if I get it right or not.
My first question is:
Is it possible to have multiple operators on a ...
2
votes
1
answer
163
views
How to get the owner of an FA2 token on chain
For an FA2 nft contract, how can I get the address of the owner of token_id 0 from inside another contract?
0
votes
2
answers
68
views
FA2 view not working correctly
I've deployed an FA2 token that is supposed to use a token_metadata view to display the token metadata. The view is works fine if you call it directly, but it doesn't seem to be affecting the token ...
0
votes
2
answers
103
views
How to change the storage to transfer of an NFT?
I would like to be able to change the price of an nft when transferring it, but I can't change it it gives me an error...
(**
Implementation of the FA2 interface for the NFT contract supporting ...
0
votes
1
answer
172
views
I can't import my nft into my temple wallet
I followed the tutorial https://forklog.com/sp/dev-on-tezos/en/nft-issuance/ to be able to create an nft via FA2 but my temple wallet does not recognize it.. .
My Smart Contract (pascaligo) :
//...
0
votes
1
answer
16
views
is it necessary to implement the permissions_descriptor?
With FA2 NFT tokens, is it necessary to implement the permissions_descriptor?
As far as I can see in tzkt, it doesn't look like it's actually being used. Are there any contracts that are actually used?...
0
votes
1
answer
96
views
Is it possible to dynamically generate FA2 token metadata?
For example, I know the code below isn't valid syntax, but would doing something like it be possible to dynamically set metadata content based on the token id? If so, how would that work?
@sp....
1
vote
1
answer
186
views
Is there a "standard" way to load off-chain metadata for all tokens from a single off-chain data source in an FA2 contract?
Let's say I want to create a fixed cap of 10,000 NFTs. I pre-generate the token_metadata and store it on IPFS. The token_ids are only recorded on the FA2 contract when they're bought.
If I don't want ...
0
votes
2
answers
59
views
Do FA2 entrypoints need to be at the top level in order to comply with the spec?
Most of the example FA2 implementations I've found, as well as the deployed contracts I've investigated have the required FA2 entrypoints (transfer, balance_of, update_operators) buried in the second ...
1
vote
1
answer
41
views
Best way to duplicate/sync private database with FA2 contract transactions & balances
If you wanted a private DB to have all of the transactions,balances etc. of a particular FA2 contract deployed on mainnet, what would be the best way of achieving this?
Is it possible to have a ...
2
votes
1
answer
563
views
How to store and load custom FA2 NFT metadata?
First time I'm writing a smart contract. If anything doesn't make sense at all, feel free to call out what specifically doesn't make sense and suggest a better approach. Thanks!
At a high level I just ...
1
vote
1
answer
350
views
Calling contract entrypoint having complex parameters
I am trying to call FA-2.0 transfer entry point using tezos taquito, I have also gone through https://tezostaquito.io/docs/complex_parameters/.
however I get the error below when I try to call ...
2
votes
1
answer
121
views
How to monitor RPC block responses for token transfers?
I am wondering how to effectively monitor for some given address for FA 1.2 and FA 2 token balance updates. Given that the entrypoints to the contract are defined, I'd like to write something which ...
2
votes
0
answers
91
views
how to hook function in smartpy FA2
when calling transfer method, how to call hook method on received smart contract.
I'm using fa2 in smartpy
1
vote
1
answer
93
views
FA2 from/to serialization
In the FA2.0 standard the sender and receiver is send as Bytes (vs. send as string for FA1.2).
Expected result: When decoding the addresses (string) to their public key hash representation I would ...
3
votes
1
answer
211
views
How do I call the FA2 balance_of endpoint through Truffle?
I have written a contract to implement FA2 and I have a Truffle/JavaScript setup to test this contract while running against a sandboxed node. I can test the transfer endpoint and the update_operators ...