Linkdrops allow users to distribute assets and onboard people to Web3 apps through a simple web link.They work by storing assets and linking AccessKeys to them. The AccessKeys are then distributed to users in the form of web links. These links take users to a website that automatically uses the keys to call the claim method in the linkdrop contract.In order for a contract to be considered a Linkdrop-contract it has to follow the NEP-452 standard. The NEP-452 explains the minimum interface required to be implemented, as well as the expected functionality.
NEP-452 is the blueprint for all linkdrop contracts on NEAR. It defines a common set of rules and functions that the contract MUST implement to be considered a linkdrop contract.
Notice that the NEP-452 defines the interface and expected behavior of a linkdrop contract, but it does not dictate how the internal logic should be implementedDifferent linkdrop contracts can have different internal implementations while still adhering to the NEP-452 standard
Returns information about a specific linkdrop key, including the amount of NEAR tokens assigned to it, the receiver ID, and whether the key has been claimed
Allows a user to claim the assets associated with a specific key. The function transfers the NEAR tokens, NFTs, and FTs assigned to the provided account_id, which MUST exist prior to calling this method.
⚠️ Users need to call this method signing the transaction with the linkdrop key they received.
Allows a user to create a new account and claim the assets associated with a specific key. The function creates the new account with the provided new_account_id and transfers the NEAR tokens, NFTs, and FTs assigned to it.
⚠️ Users need to call this method signing the transaction with the linkdrop key they received.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"NEAR Docs","colors":{"primary":"#1fb858","light":"#1fb858","dark":"#1fb858"},"logo":{"light":"https://mintcdn.com/neardocs/qO2GD-gji1aakHqN/assets/logo.svg?fit=max\u0026auto=format\u0026n=qO2GD-gji1aakHqN\u0026q=85\u0026s=fe9551b1c3085e39a97965b2886dad4a","dark":"https://mintcdn.com/neardocs/qO2GD-gji1aakHqN/assets/logo_rev.svg?fit=max\u0026auto=format\u0026n=qO2GD-gji1aakHqN\u0026q=85\u0026s=1455d1ccc3385495e8b52e6657ce8c84"},"favicon":"https://mintcdn.com/neardocs/qO2GD-gji1aakHqN/assets/favicon.svg?fit=max\u0026auto=format\u0026n=qO2GD-gji1aakHqN\u0026q=85\u0026s=ef64e8324f93ca4f703d8ebad5e32c53","api":{"openapi":"openapi.json","playground":{"display":"interactive"},"examples":{"defaults":"all","languages":["bash","javascript","python"]}},"appearance":{"default":"system","strict":false},"navbar":{"links":[{"icon":"wallet","href":"https://wallet.near.org/","label":"Wallets"},{"icon":"search","href":"https://explorer.near.org/","label":"Explorers"},{"icon":"layout-grid","href":"https://nearcatalog.xyz/","label":"NEAR Catalog"}]},"search":{"prompt":"Search docs..."},"seo":{"metatags":{"google-site-verification":"x36GvqeIYFjDAl2NNFM-83XykcMYMLRY6f9lgUZbDpA"}},"fonts":{"family":"Inter"},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","codeblocks":{"theme":{"light":"github-light","dark":"github-dark"}},"latex":true},"integrations":{"ga4":{"measurementId":"G-TMG0M3DPNW"}},"contextual":{"options":["copy","claude","cursor"],"display":"header"},"interaction":{"drilldown":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"neardocs","hasAudioNarration":false,"actualSubdomain":"neardocs","customDomains":["docs.near.org"],"gitSource":{"type":"github","owner":"near","repo":"docs","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad5ff8e21be4a46d2d37dfe","collectionId":"671d9528-60d8-440f-b01a-e7dce24c1ca6","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad5ff8e21be4a46d2d37dfe"},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6ad5ff8e21be4a46d2d37dfe","clientVersion":"0.0.3894","searchFilterCounts":[{"language":"default","tag":"RPC","count":47},{"language":"default","tag":"Smart Contracts","count":43},{"language":"default","tag":"Building Smart Contracts","count":29},{"language":"default","tag":"Protocol","count":23},{"language":"default","tag":"Tokens \u0026 Primitives","count":22},{"language":"default","tag":"Home","count":17},{"language":"default","tag":"Concepts","count":17},{"language":"default","tag":"Tutorials","count":16},{"language":"default","tag":"Multi-Chain","count":15},{"language":"default","tag":"Web3 Apps","count":15}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-branches-v2-autocommit","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-branches-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"teamspace","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"client-snapshot-docs-config","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":":root{--explain-card-bg:#f1f5f9;--explain-card-active-bg:#eef2ff;--explain-card-border:#c7d2fe}.dark{--explain-card-bg:#161b22;--explain-card-active-bg:#21262d;--explain-card-border:transparent}"},{"filePath":"custom.css","content":".home-code code{max-height:300px;overflow-y:auto}"}],"page":{"pagePath":"primitives/linkdrop/standard","slug":"/primitives/linkdrop/standard","pageMetadata":{"title":"The Standard","icon":"link","description":"Learn how Linkdrops are defined on NEAR","href":"/primitives/linkdrop/standard"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Learn how Linkdrops are defined on NEAR\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,blockquote:`blockquote`,code:`code`,em:`em`,hr:`hr`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading,OptimizedImage,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Linkdrops allow users to distribute assets and onboard people to Web3 apps through a simple web link.`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/neardocs/qO2GD-gji1aakHqN/assets/docs/primitives/linkdrop.png?fit=max\u0026auto=format\u0026n=qO2GD-gji1aakHqN\u0026q=85\u0026s=634ec69091789625815aad818c36b87a`,alt:`Linkdrop`,\"data-og-width\":`1950`,width:`1950`,\"data-og-height\":`531`,height:`531`,\"data-path\":`assets/docs/primitives/linkdrop.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/neardocs/qO2GD-gji1aakHqN/assets/docs/primitives/linkdrop.png?w=280\u0026fit=max\u0026auto=format\u0026n=qO2GD-gji1aakHqN\u0026q=85\u0026s=0e27ee2ea29ed3092d05d03115fea1c4 280w, https://mintcdn.com/neardocs/qO2GD-gji1aakHqN/assets/docs/primitives/linkdrop.png?w=560\u0026fit=max\u0026auto=format\u0026n=qO2GD-gji1aakHqN\u0026q=85\u0026s=ad57e944528ce26e1faad6973c222844 560w, https://mintcdn.com/neardocs/qO2GD-gji1aakHqN/assets/docs/primitives/linkdrop.png?w=840\u0026fit=max\u0026auto=format\u0026n=qO2GD-gji1aakHqN\u0026q=85\u0026s=8bd89e524266299c3fd6e8311b976072 840w, https://mintcdn.com/neardocs/qO2GD-gji1aakHqN/assets/docs/primitives/linkdrop.png?w=1100\u0026fit=max\u0026auto=format\u0026n=qO2GD-gji1aakHqN\u0026q=85\u0026s=6891e7584bf589831417d403c99bb54a 1100w, https://mintcdn.com/neardocs/qO2GD-gji1aakHqN/assets/docs/primitives/linkdrop.png?w=1650\u0026fit=max\u0026auto=format\u0026n=qO2GD-gji1aakHqN\u0026q=85\u0026s=f9903facbe5afc9f9eb59a61cb6cad31 1650w, https://mintcdn.com/neardocs/qO2GD-gji1aakHqN/assets/docs/primitives/linkdrop.png?w=2500\u0026fit=max\u0026auto=format\u0026n=qO2GD-gji1aakHqN\u0026q=85\u0026s=dd9deeedb90377a648b8acc87a9339aa 2500w`}),`\n`,_jsxs(_components.p,{children:[`They work by storing assets and linking `,_jsx(_components.a,{href:`/protocol/accounts-contracts/access-keys`,children:`AccessKeys`}),` to them. The `,_jsx(_components.code,{children:`AccessKeys`}),` are then distributed to users in the form of web links. These links take users to a website that automatically uses the keys to call the `,_jsx(_components.code,{children:`claim`}),` method in the `,_jsx(_components.code,{children:`linkdrop`}),` contract.`]}),`\n`,_jsxs(_components.p,{children:[`In order for a contract to be considered a Linkdrop-contract it has to follow the `,_jsx(_components.a,{href:`https://github.com/near/NEPs/blob/master/neps/nep-0452.md`,children:_jsx(_components.strong,{children:`NEP-452 standard`})}),`. The `,_jsx(_components.strong,{children:`NEP-452`}),` explains the `,_jsx(_components.strong,{children:`minimum interface`}),` required to be implemented, as well as the expected functionality.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`nep-452-linkdrop-standard`,children:`NEP-452 (Linkdrop Standard)`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://github.com/near/NEPs/blob/master/neps/nep-0452.md`,children:`NEP-452`}),` is the blueprint for all linkdrop contracts on NEAR. It defines a `,_jsx(_components.strong,{children:`common set of rules`}),` and `,_jsx(_components.strong,{children:`functions`}),` that the contract MUST implement to be considered a linkdrop contract.`]}),`\n`,_jsxs(Tip,{children:[_jsxs(_components.p,{children:[`Notice that the NEP-452 defines the `,_jsx(_components.strong,{children:`interface`}),` and `,_jsx(_components.strong,{children:`expected behavior`}),` of a linkdrop contract, but it does not dictate how the internal logic should be implemented`]}),_jsx(_components.p,{children:`Different linkdrop contracts can have different internal implementations while still adhering to the NEP-452 standard`})]}),`\n`,_jsx(Heading,{level:`3`,id:`interface`,children:`Interface`}),`\n`,_jsxs(Heading,{level:`4`,id:`get_key_balance-read-only`,children:[_jsx(_components.code,{children:`get_key_balance`}),` (`,_jsx(_components.em,{children:`read-only`}),`)`]}),`\n`,_jsx(_components.p,{children:`Allows to query the amount of NEAR tokens assigned to a specific linkdrop key`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`get_key_balance`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(key: string): string;`})]}),`\n`]})})}),`\n`,_jsx(`br`,{}),`\n`,_jsxs(Heading,{level:`4`,id:`get_key_information-read-only`,children:[_jsx(_components.code,{children:`get_key_information`}),` (`,_jsx(_components.em,{children:`read-only`}),`)`]}),`\n`,_jsx(_components.p,{children:`Returns information about a specific linkdrop key, including the amount of NEAR tokens assigned to it, the receiver ID, and whether the key has been claimed`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`interface`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` NFTData`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` contract_id`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` string`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` token_id`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` string`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`interface`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` FTData`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` contract_id`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` string`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E36209`,\"--shiki-dark\":`#FFAB70`},children:` amount`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`:`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` string`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`get_key_information`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(key: string): { required_gas: string, yoctonear: string, nft_list: NFTData[], ft_list: FTData[] };`})]}),`\n`]})})}),`\n`,_jsx(`br`,{}),`\n`,_jsx(Heading,{level:`4`,id:`claim`,children:_jsx(_components.code,{children:`claim`})}),`\n`,_jsxs(_components.p,{children:[`Allows a user to claim the assets associated with a specific key. The function transfers the NEAR tokens, NFTs, and FTs assigned to the provided `,_jsx(_components.code,{children:`account_id`}),`, which MUST exist prior to calling this method.`]}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.p,{children:[`⚠️ Users need to call this method signing the transaction with the `,_jsx(_components.strong,{children:`linkdrop key they received`}),`.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`claim`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(account_id: string): boolean;`})]}),`\n`]})})}),`\n`,_jsx(`br`,{}),`\n`,_jsx(Heading,{level:`4`,id:`create_account_and_claim`,children:_jsx(_components.code,{children:`create_account_and_claim`})}),`\n`,_jsxs(_components.p,{children:[`Allows a user to `,_jsx(_components.strong,{children:`create a new account`}),` and `,_jsx(_components.strong,{children:`claim the assets`}),` associated with a specific key. The function creates the new account with the provided `,_jsx(_components.code,{children:`new_account_id`}),` and transfers the NEAR tokens, NFTs, and FTs assigned to it.`]}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.p,{children:[`⚠️ Users need to call this method signing the transaction with the `,_jsx(_components.strong,{children:`linkdrop key they received`}),`.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`create_account_and_claim`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`(new_account_id: string, new_public_key: string): `}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`Promise`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`boolean`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`>`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:`;`})]}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"github-dark"}},"config":{},"pageMetadata":{"title":"The Standard","icon":"link","description":"Learn how Linkdrops are defined on NEAR","href":"/primitives/linkdrop/standard"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"NEP-452 (Linkdrop Standard)","slug":"nep-452-linkdrop-standard","depth":2,"children":[{"title":"Interface","slug":"interface","depth":3,"children":[]},{"title":"get_key_balance (read-only)","slug":"get_key_balance-read-only","depth":4,"children":[]},{"title":"get_key_information (read-only)","slug":"get_key_information-read-only","depth":4,"children":[]},{"title":"claim","slug":"claim","depth":4,"children":[]},{"title":"create_account_and_claim","slug":"create_account_and_claim","depth":4,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/neardocs/86bd1b8645a68f87/gleap.js","/_mintlify/custom/neardocs/12aaa8206e84cdb3/scripts/patch-openapi.js"],"subdomain":"neardocs","siteName":"NEAR Docs","title":"The Standard - NEAR Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-03-24T14:25:00.260Z","originalFileLocation":"primitives/linkdrop/standard.mdx"},"headHtml":"\u003cmeta data-mint-head name=\"description\" content=\"Learn how Linkdrops are defined on NEAR\">\u003cmeta data-mint-head name=\"application-name\" content=\"NEAR Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/neardocs/jx3X3HW4FX2vbKtn/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/neardocs/jx3X3HW4FX2vbKtn/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/neardocs/jx3X3HW4FX2vbKtn/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/neardocs/jx3X3HW4FX2vbKtn/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/neardocs/jx3X3HW4FX2vbKtn/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/neardocs/jx3X3HW4FX2vbKtn/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/neardocs/jx3X3HW4FX2vbKtn/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/neardocs/jx3X3HW4FX2vbKtn/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/neardocs/jx3X3HW4FX2vbKtn/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"The Standard - NEAR Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Learn how Linkdrops are defined on NEAR\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"NEAR Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.near.org/primitives/linkdrop/standard\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"The Standard - NEAR Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Learn how Linkdrops are defined on NEAR\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/neardocs/jx3X3HW4FX2vbKtn/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"NEAR Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1fb858\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"x36GvqeIYFjDAl2NNFM-83XykcMYMLRY6f9lgUZbDpA\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.near.org/primitives/linkdrop/standard\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/primitives/linkdrop/standard.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.near.org/#organization\",\"name\":\"NEAR Docs\",\"url\":\"https://docs.near.org\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/neardocs/qO2GD-gji1aakHqN/assets/logo.svg?fit=max\u0026auto=format\u0026n=qO2GD-gji1aakHqN\u0026q=85\u0026s=fe9551b1c3085e39a97965b2886dad4a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.near.org#website\",\"name\":\"NEAR Docs\",\"url\":\"https://docs.near.org\",\"publisher\":{\"@id\":\"https://docs.near.org/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.near.org/primitives/linkdrop/standard#webpage\",\"url\":\"https://docs.near.org/primitives/linkdrop/standard\",\"name\":\"The Standard\",\"description\":\"Learn how Linkdrops are defined on NEAR\",\"dateModified\":\"2026-03-24T14:25:00.260Z\",\"isPartOf\":{\"@id\":\"https://docs.near.org#website\"},\"breadcrumb\":{\"@id\":\"https://docs.near.org/primitives/linkdrop/standard#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.near.org/primitives/linkdrop/standard#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"NEAR Docs\",\"item\":\"https://docs.near.org\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The Standard\",\"item\":\"https://docs.near.org/primitives/linkdrop/standard\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.near.org/primitives/linkdrop/standard#article\",\"headline\":\"The Standard\",\"name\":\"The Standard\",\"description\":\"Learn how Linkdrops are defined on NEAR\",\"url\":\"https://docs.near.org/primitives/linkdrop/standard\",\"mainEntityOfPage\":{\"@id\":\"https://docs.near.org/primitives/linkdrop/standard#webpage\"},\"dateModified\":\"2026-03-24T14:25:00.260Z\",\"publisher\":{\"@id\":\"https://docs.near.org/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.near.org#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"NEAR Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"NEAR Docs","nav":{"global":null,"tabs":[{"tab":"Home","icon":"house","pages":[{"title":"Home","href":""}]},{"tab":"Protocol","icon":"layers","pages":[{"title":"Protocol","href":"/protocol/network/architecture"}]},{"tab":"Smart Contracts","icon":"file-badge","pages":[{"title":"Smart Contracts","href":"/smart-contracts/what-is"}]},{"tab":"Web3 Apps","icon":"terminal","pages":[{"title":"Web3 Apps","href":"/web3-apps/what-is"}]},{"tab":"Multi-Chain","icon":"link-2","pages":[{"title":"Multi-Chain","href":"/chain-abstraction/what-is"}]},{"tab":"Tokens \u0026 Primitives","icon":"coins","groups":[{"group":" ","pages":[{"title":"What are Primitives?","sidebarTitle":"Introduction","icon":"info","href":"/primitives/what-is"}]},{"group":"Fungible Tokens (FT)","pages":[{"title":"The Standard","icon":"circle-dollar-sign","href":"/primitives/ft/standard"},{"title":"Using FTs","icon":"circle-dollar-sign","href":"/primitives/ft/ft"},{"title":"Creating a FT Contract","icon":"circle-dollar-sign","href":"/primitives/ft/sdk-contract-tools"}]},{"group":"Non-Fungible Tokens (NFT)","pages":[{"title":"The Standard","icon":"image","href":"/primitives/nft/standard"},{"title":"Using NFTs","icon":"image","href":"/primitives/nft/nft"},{"title":"Creating a NFT Contract","icon":"image","description":"Learn how to create a non-fungible token (NFT) using Contract Tools package","href":"/primitives/nft/sdk-contract-tools"}]},{"group":"Linkdrops","pages":[{"title":"The Standard","icon":"link","href":"/primitives/linkdrop/standard"},{"title":"Using Linkdrops","icon":"link","description":"Learn about linkdrops following NEP-452 standard - distribute assets and onboard users to Web3 apps through simple web links using access keys and the Keypom platform.","href":"/primitives/linkdrop/linkdrop"}]},{"group":"Governance","pages":[{"title":"Validator Staking","icon":"lock","href":"/protocol/network/staking"},{"title":"Decentralized Autonomous Organizations","icon":"landmark","href":"/primitives/dao"}]},{"group":"DeFi","pages":[{"title":"Oracles","icon":"trending-up","href":"/primitives/oracles"},{"title":"Decentralized Exchanges (DEX)","icon":"trending-up","href":"/primitives/dex"},{"title":"Tokenized Vaults","icon":"trending-up","href":"/primitives/tokenized-vaults"}]},{"group":"Off-chain Compute","pages":[{"title":"Off-chain Compute","href":"/primitives/off-chain-compute/what-is"},{"title":"OutLayer","href":"/primitives/off-chain-compute/outlayer"}]},{"group":"Identity","pages":[{"title":"Decentralized Identifiers (DIDs)","icon":"fingerprint","href":"/primitives/didnear"}]},{"group":"Social","pages":[{"title":"Social","icon":"users","href":"/primitives/social"}]},{"group":"Lockup Contracts","pages":[{"title":"Introduction","icon":"clock","href":"/primitives/lockup/introduction"},{"title":"Lockup Contracts","icon":"clock","href":"/primitives/lockup/lockup"}]},{"group":"Liquid Staking","pages":[{"title":"Using Liquid Staking","icon":"droplets","href":"/primitives/liquid-staking/liquid-staking"},{"title":"Deploying Your Own Contract","icon":"droplets","href":"/primitives/liquid-staking/deploy-your-own-contract"}]}]},{"tab":"Data Infra","icon":"database","pages":[{"title":"Data Infra","href":"/data-infrastructure/what-is"}]},{"tab":"Integrations","icon":"plug","pages":[{"title":"Integrations","href":"/integrations/exchange-integration"}]},{"tab":"RPC","icon":"server","pages":[{"title":"RPC","href":"/api/rpc/introduction"}]}]},"title":"The Standard - NEAR Docs","buildId":"dpl_8LJVMfxYNq6LJkohTrn2iyWT8umj","deploymentId":"dpl_8LJVMfxYNq6LJkohTrn2iyWT8umj","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-D9lJgLSo.js","PlusIcon-C1lem43w.js","lightbox-handle-r17bVUz3.js"]}