---
# System prepended metadata

title: Cross-Contract-Hello-Js Example

---

# Cross-Contract-Hello-Js Example 

## Overview 

This example contains a NEAR Javascript Smart Contract that accepts a donation of X amount of NEAR and donates that money to an assigned beneficiary. This example demonstrates how to utilize a NEAR SDK collection (UndorderMaps and Vectors to be specific), to store and track information on-chain using the Javascript SDK 

## Installation 

Run the following to clone the repo 

```javascript
git clone https://github.com/near-examples/cross-contract-hello-js.git
```

Once Installed run the following to enter the directory and install the dependencies 
```javascript
cd donation-js && yarn
```

or

```javascript
cd donation-js && npm i
```


## Building the Contract 

