Questions tagged [fa2]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
1answer
142 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 ...
2
votes
1answer
270 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 ...
2
votes
1answer
63 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
0answers
67 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
1answer
44 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 ...
1
vote
1answer
27 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 ...
1
vote
1answer
162 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 ...
0
votes
0answers
19 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 ...
0
votes
0answers
19 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 ...
0
votes
0answers
115 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 ...