Reading from NEAR testnet…
Reading from NEAR testnet…
3XkcVBhriNPKaEhrZmCZyMFE1VECQa6wwD9nszSF1Wnb
syi216.testnet to v1.social08.testnet
set()
{
"data": {
"syi216.testnet": {
"widget": {
"EjemploContratoVFT": {
"": "//States for data management\r\nconst [ftData, setFtData] = useState(undefined);\r\nconst [ftName, setftName] = useState(undefined);\r\nconst [ftSymbol, setFtSymbol] = useState(undefined);\r\nconst [ftDecimals, setFtDecimals] = useState(undefined);\r\nconst [ftTotal, setFtTotal] = useState(undefined);\r\nconst [isContract, setIsContract] = useState(false);\r\nconst [contract, setContract] = useState(\"\");\r\nconst [canMint, setCanMint] = useState(false);\r\nconst [balance, setBalance] = useState(undefined);\r\nconst [account, setAccount] = useState(undefined);\r\nconst [inputToken, setInputToken] = useState(0);\r\n\r\n//VFT Extended Contract IDL\r\nconst idl = `\r\nconstructor {\r\n New : (name: str, symbol: str, decimals: u8);\r\n};\r\n\r\nservice Vft {\r\n Burn : (from: actor_id, value: u256) -> bool;\r\n GrantAdminRole : (to: actor_id) -> null;\r\n GrantBurnerRole : (to: actor_id) -> null;\r\n GrantMinterRole : (to: actor_id) -> null;\r\n Mint : (to: actor_id, value: u256) -> bool;\r\n RevokeAdminRole : (from: actor_id) -> null;\r\n RevokeBurnerRole : (from: actor_id) -> null;\r\n RevokeMinterRole : (from: actor_id) -> null;\r\n Approve : (spender: actor_id, value: u256) -> bool;\r\n Transfer : (to: actor_id, value: u256) -> bool;\r\n TransferFrom : (from: actor_id, to: actor_id, value: u256) -> bool;\r\n query Admins : () -> vec actor_id;\r\n query Burners : () -> vec actor_id;\r\n query Minters : () -> vec actor_id;\r\n query Allowance : (owner: actor_id, spender: actor_id) -> u256;\r\n query BalanceOf : (account: actor_id) -> u256;\r\n query Decimals : () -> u8;\r\n query Name : () -> str;\r\n query Symbol : () -> str;\r\n query TotalSupply : () -> u256;\r\n\r\n events {\r\n Minted: struct { to: actor_id, value: u256 };\r\n Burned: struct { from: actor_id, value: u256 };\r\n Approval: struct { owner: actor_id, spender: actor_id, value: u256 };\r\n Transfer: struct { from: actor_id, to: actor_id, value: u256 };\r\n }\r\n};\r\n`;\r\n\r\n//Html tags with pre-applied css styles\r\nconst App = styled.div`\r\n --margin-app: clamp(16px, 4vw, 24px);\r\n --h-footer: 60px;\r\n --bg-card: rgb(25, 25, 25, .9);\r\n --primary: #0fffc7;\r\n --gradient: linear-gradient(to right, #22463d, #00f0b8);\r\n\r\n display: grid;\r\n place-items: center;\r\n place-content: center;\r\n min-height: calc(100dvh - var(--h-footer));\r\n background: linear-gradient(to top right, #fff, #f5f5f7);\r\n\r\n * {\r\n font-family: 'system-ui','Inter', 'Space Grotesk' !important;\r\n }\r\n\r\n .wrapper {\r\n background: var(--bg-card);\r\n border-radius: .3rem;\r\n padding: 40px 30px;\r\n display: flex;\r\n flex-direction: column;\r\n max-width: 500px;\r\n\r\n span {\r\n color: #fff\r\n }\r\n }\r\n\r\n ::-moz-selection { /* Code for Firefox */\r\n background: #ccf0e7;\r\n }\r\n \r\n ::selection {\r\n background: #ccf0e7;\r\n }\r\n\r\n .space-between {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n }\r\n`,\r\n Input = styled.div`\r\n display: flex;\r\n gap: 10px;\r\n border-radius: .75rem;\r\n padding: 5px;\r\n background: #fff;\r\n box-shadow: 0 0 10px -5px rgb(0,0,0,.4);\r\n\r\n input {\r\n background: var(--gradient);\r\n -webkit-background-clip: text;\r\n -webkit-text-fill-color: transparent;\r\n display: inline-block;\r\n border: none;\r\n height: 40px;\r\n font-size: 24px;\r\n font-weight: 500;\r\n padding-right: 0;\r\n margin: 5px;\r\n \r\n &::placeholder {\r\n font-size: 24px;\r\n }\r\n \r\n &:focus {\r\n box-shadow: none;\r\n }\r\n }\r\n `,\r\n Btn = styled.button`\r\n display: inlin-block;\r\n background: var(--primary);\r\n border: none;\r\n border-radius: .7rem;\r\n font-weight: 600;\r\n padding-inline: 10px;\r\n min-height: 45px;\r\n\r\n :hover {\r\n opacity: .9;\r\n filter: grayscale(0.5);\r\n }\r\n `,\r\n Footer = styled.div`\r\n position: absolute;\r\n bottom: 50px;\r\n left: 0;\r\n right: 0;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n height: var(--h-footer);\r\n padding-inline: var(--margin-app);\r\n padding-block: 5px;\r\n background: var(--primary);\r\n\r\n a {\r\n color: #000;\r\n background: #fff;\r\n padding: 10px 30px;\r\n border-radius: .75rem;\r\n translate: 0 -20px;\r\n box-shadow: 0 0 10px -5px rgb(0,0,0,.4);\r\n }\r\n \r\n #vara-icon {\r\n width: 50px;\r\n height: 50px;\r\n }\r\n`;\r\n\r\nreturn (\r\n <VaraNetwork.Wrapper>\r\n <App>\r\n {account ? (\r\n isContract ? (\r\n <>\r\n <div className=\"wrapper\">\r\n <h3 className=\"text-center mb-4 text-light fw-bold\">\r\n Mint Fungible Token\r\n </h3>\r\n <div className=\"mb-4 d-flex flex-row gap-2 align-items-center\">\r\n <p className=\"text-light m-0\">Account:</p>\r\n <VaraNetwork.Identicon size={30} />\r\n <p className=\"text-light m-0 fw-semibold\">\r\n {account.meta.name}\r\n </p>\r\n </div>\r\n <Input>\r\n <input\r\n value={inputToken}\r\n type=\"number\"\r\n onChange={(e) => setInputToken(e.target.value)}\r\n />\r\n </Input>\r\n\r\n {balance ? (\r\n <>\r\n <div className=\"space-between mt-2\" style={{ gap: \"10px\" }}>\r\n <span>My balance:</span>\r\n <span className=\"fw-bold\">\r\n {balance} {ftSymbol}\r\n </span>\r\n </div>\r\n </>\r\n ) : (\r\n <>\r\n <span className=\"fw-bold\">You have no balance</span>\r\n </>\r\n )}\r\n <div className=\"space-between mt-2\" style={{ gap: \"10px\" }}>\r\n <span>Total supply:</span>\r\n <span className=\"fw-bold\">\r\n {ftTotal} {ftSymbol}\r\n </span>\r\n </div>\r\n {canMint ? (\r\n <VaraNetwork.SailsInteraction\r\n trigger={({ signTransaction, sendQuery }) => (\r\n <>\r\n <Btn\r\n className=\"mt-4\"\r\n onClick={() => {\r\n const data = {\r\n contractId: contract,\r\n idl: idl,\r\n serviceName: \"Vft\",\r\n methodName: \"Mint\",\r\n args: [\r\n account.decodedAddress,\r\n parseInt(inputToken),\r\n ],\r\n };\r\n const tr = signTransaction(data);\r\n tr.then((res) => {\r\n if (res) {\r\n const data = {\r\n contractId: contract,\r\n idl: idl,\r\n serviceName: \"Vft\",\r\n };\r\n const infoTotal = sendQuery({\r\n methodName: \"TotalSupply\",\r\n ...data,\r\n });\r\n infoTotal.then((res) => {\r\n setFtTotal(parseInt(res));\r\n });\r\n const infoBalance = sendQuery({\r\n methodName: \"BalanceOf\",\r\n args: [account.decodedAddress],\r\n ...data,\r\n });\r\n infoBalance.then((res) => {\r\n setBalance(parseInt(res));\r\n });\r\n }\r\n });\r\n }}\r\n >\r\n Submit\r\n </Btn>\r\n </>\r\n )}\r\n />\r\n ) : (\r\n <h4 className=\"text-center text-white my-2\">\r\n You do not have Mint permissions within this contract\r\n </h4>\r\n )}\r\n </div>\r\n </>\r\n ) : (\r\n <div className=\"wrapper\">\r\n <h3 className=\"text-center text-white mb-5\">\r\n The contract you wrote is not VFT Extended try again\r\n </h3>\r\n <Btn onClick={() => setAccount(undefined)}>Go Back</Btn>\r\n </div>\r\n )\r\n ) : (\r\n <div className=\"wrapper\">\r\n <h3 className=\"text-center text-white mb-5\">\r\n Welcome to the example of interaction with a VFT Extended contract\r\n in VARA Network\r\n </h3>\r\n <h5 className=\"text-center text-white mb-2\">\r\n Write the address of your VFT Extended contract\r\n </h5>\r\n <Input className=\"mb-3\">\r\n <input\r\n onChange={(e) => setContract(e.target.value)}\r\n value={contract}\r\n type=\"text\"\r\n />\r\n </Input>\r\n <VaraNetwork.SailsInteraction\r\n trigger={({ sendQuery, getAccountInfo }) => (\r\n <>\r\n <Btn\r\n onClick={() => {\r\n let varaAccount = getAccountInfo();\r\n setAccount(varaAccount);\r\n const data = {\r\n contractId: contract,\r\n idl: idl,\r\n serviceName: \"Vft\",\r\n };\r\n const infoName = sendQuery({\r\n methodName: \"Name\",\r\n ...data,\r\n });\r\n infoName\r\n .then((res) => {\r\n setftName(res);\r\n })\r\n .catch((e) => {\r\n setIsContract(false);\r\n return;\r\n });\r\n const infoSymbol = sendQuery({\r\n methodName: \"Symbol\",\r\n ...data,\r\n });\r\n infoSymbol.then((res) => {\r\n setFtSymbol(res);\r\n });\r\n const infoDecimals = sendQuery({\r\n methodName: \"Decimals\",\r\n ...data,\r\n });\r\n infoDecimals.then((res) => {\r\n setFtDecimals(res);\r\n });\r\n const infoTotal = sendQuery({\r\n methodName: \"TotalSupply\",\r\n ...data,\r\n });\r\n infoTotal.then((res) => {\r\n setFtTotal(parseInt(res));\r\n });\r\n const infoMinters = sendQuery({\r\n methodName: \"Minters\",\r\n ...data,\r\n });\r\n infoMinters.then((res) => {\r\n console.log(\"Minters\", res);\r\n setCanMint(res.includes(varaAccount.decodedAddress));\r\n });\r\n const infoBalance = sendQuery({\r\n methodName: \"BalanceOf\",\r\n args: [varaAccount.decodedAddress],\r\n ...data,\r\n });\r\n infoBalance.then((res) => {\r\n setBalance(parseInt(res));\r\n });\r\n setIsContract(true);\r\n }}\r\n >\r\n Start widget\r\n </Btn>\r\n </>\r\n )}\r\n />\r\n </div>\r\n )}\r\n <Footer>\r\n <a\r\n href=\"https://vara.network/\"\r\n className=\"fw-bold\"\r\n target=\"_blank\"\r\n title=\"vara network\"\r\n >\r\n Powered by\r\n <img\r\n height=\"50px\"\r\n src={`https://ipfs.near.social/ipfs/bafkreibjwxaoctoxglepnln5hgos3pvwaih3eidwrupjlmffoivfgarwfa`}\r\n alt=\"uploaded\"\r\n />\r\n </a>\r\n </Footer>\r\n </App>\r\n </VaraNetwork.Wrapper>\r\n);\r\n",
"metadata": {
"image": {},
"fork_of": "syi216.testnet/widget/EjemploContratoVFT@182938480"
}
}
}
}
}
}1 automatic refund step from the network not shown.
This page reads FastNEAR's public transaction index and stores nothing. This command asks a NEAR archival node for the same transaction and needs no keys.
curl -s https://archival-rpc.testnet.fastnear.com -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"tx","params":{"tx_hash":"3XkcVBhriNPKaEhrZmCZyMFE1VECQa6wwD9nszSF1Wnb","sender_account_id":"syi216.testnet","wait_until":"FINAL"}}'Vouch has its own page because testnet.nearblocks.io stopped indexing on 27 Sep 2026, so it can't show newer transactions.