Questions tagged [fa2]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
31 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 ...
user avatar
0 votes
2 answers
56 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 ...
user avatar
  • 129
0 votes
1 answer
85 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) : //...
user avatar
  • 129
0 votes
0 answers
23 views

How minimize storage fee when doing airdrop using smartpy and fa2 template

Hello I try to do a airdrop for my community using FA2 template and smartpy, you can see my smart contract below : import smartpy as sp FA2 = sp.io.import_template("FA2.py") class Token(FA2....
user avatar
0 votes
1 answer
13 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?...
user avatar
  • 1
0 votes
0 answers
31 views

Can I call FA1.2 token's transfer entrypoint & FA2.0 token's transfer entrypoint from the one contract?

I want to call FA1.2 token's transfer entrypoint & FA2.0 token's transfer entrypoint from the one contract using get_entrypoint_opt/get_contract_opt. But, Both interfaces use "Transfer" ...
user avatar
  • 1
0 votes
1 answer
67 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....
user avatar
  • 557
1 vote
1 answer
115 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 ...
user avatar
  • 557
0 votes
2 answers
42 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 ...
user avatar
  • 131
1 vote
1 answer
37 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 ...
user avatar
0 votes
0 answers
21 views

Avoid over-spending by smart-contract with FA2 token ? (update_operators)

Working with FA1.2 and FA2 token, i see that for FA1.2, when a transaction is done by the user, you need to call approve, with an amount, and for FA2, it is update_operators who is called, but without ...
user avatar
  • 1
0 votes
0 answers
33 views

Is there any default FA2 / FA1.2 config to mint non-transferable tokens?

I am working on a requirement that needs a non-transferable token (similar to ERC 1238 requirement). ie the token can be transferred only from token contract/ admin to the user and the user cannot ...
user avatar
0 votes
0 answers
174 views

Mint FA2 NFT when contract is called by purchaser

I'm working on a smart contract which allows a caller to "purchase" an NFT simply by calling the contract and providing payment. I'd like the contract to mint the NFT at the time the ...
user avatar
  • 173
2 votes
1 answer
428 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 ...
user avatar
  • 557
1 vote
1 answer
276 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 ...
user avatar
2 votes
1 answer
80 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 ...
user avatar
2 votes
0 answers
80 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
user avatar
  • 51
1 vote
1 answer
60 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 ...
user avatar
3 votes
1 answer
182 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 ...
user avatar